• Hello,
    The plugin Instagram Feed gives me a warning once updating to PHP 5.4. This is the message:

    warning: sprintf(): Too few arguments in …/plugins/instagram-feed/inc/admin/actions.php on line 1175

    What could be happening?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Hey Fernando,

    Is it possible that you are using a translation file with the plugin? What language is your WordPress site using? Does changing the language for a moment prevent the error?

    We can dig into it but wanted to see if our suspicion is correct.

    Thanks!

    – Craig

    Thread Starter Fernando Díaz Gascón

    (@ferchup)

    The site uses WPML. The language is spanish (ES). I cannot change the language because I have to change it in WPML and I prefer not to change the settings of the plugin (it is an e-commerce operative site and I try not to change the configuration).

    Talking with a programmer, he told me to change this line (the line with the error):

    <p><b style’font-weight: 700;’>” . sprintf( __( ‘Exclusive offer!%s We don\’t run promotions very often, but for a limited time we\’re offering %s60%% off%s our Pro version to all users of our free Instagram Feed plugin.’, ‘instagram-feed’ ), ‘</b> ‘, ‘<b style=”font-weight: 700;”>’, ‘</b>’ ) . “</p>

    to this line:

    <p><b style’font-weight: 700;’>” . sprintf( __( ‘Exclusive offer!%1$s We don\’t run promotions very often, but for a limited time we\’re offering %2$s60%% off%3$s our Pro version to all users of our free Instagram Feed plugin.’, ‘instagram-feed’ ), ‘</b> ‘, ‘<b style=”font-weight: 700;”>’, ‘</b>’ ) . “</p>

    and the error does not appear again. But I’m afraid that in the next update, the error appears again.

    Thank you very much

    Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Hey Fernando,

    Glad that fixes the problem! We haven’t had this come up before but if this change does not cause any additional problems, we can implement it in the future.

    Thanks,

    Craig

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning sprintf’ is closed to new replies.