Title: Warning sprintf
Last modified: July 21, 2020

---

# Warning sprintf

 *  [Fernando Díaz Gascón](https://wordpress.org/support/users/ferchup/)
 * (@ferchup)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/warning-sprintf-6/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-sprintf-6%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Craig at Smash Balloon](https://wordpress.org/support/users/craig-at-smash-balloon/)
 * (@craig-at-smash-balloon)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/warning-sprintf-6/#post-13152459)
 * 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](https://wordpress.org/support/users/ferchup/)
 * (@ferchup)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/warning-sprintf-6/#post-13154441)
 * 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 Contributor [Craig at Smash Balloon](https://wordpress.org/support/users/craig-at-smash-balloon/)
 * (@craig-at-smash-balloon)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/warning-sprintf-6/#post-13157042)
 * 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.

 * ![](https://ps.w.org/instagram-feed/assets/icon-256x256.png?rev=2700807)
 * [Smash Balloon Social Photo Feed – Easy Social Feeds Plugin](https://wordpress.org/plugins/instagram-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/instagram-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/instagram-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/instagram-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/instagram-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/instagram-feed/reviews/)

## Tags

 * [sprintf](https://wordpress.org/support/topic-tag/sprintf/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 3 replies
 * 2 participants
 * Last reply from: [Craig at Smash Balloon](https://wordpress.org/support/users/craig-at-smash-balloon/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/warning-sprintf-6/#post-13157042)
 * Status: not resolved