Title: PHP Warning: sprintf() &#8211; error on page
Last modified: August 22, 2016

---

# PHP Warning: sprintf() – error on page

 *  Resolved [acri](https://wordpress.org/support/users/acri/)
 * (@acri)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-warning-sprintf-error-on-page/)
 * Hi Joe,
    Getting a error on my calendar page. I have a large Multisite running
   on my own dedicated server running latest php version. Issue only Only happening
   on ONE of the 70+ sites. It is not a theme issue as another site using the theme
   is NOT showing the error code.
 * Warning: sprintf(): Argument number must be greater than zero in /home XXXXXXX/
   wp-content/plugins/my-calendar/my-calendar-templates.php on line 677
 * The calendar is still appearing. I re-set permalinks – deactivated and re-activated
   the plugin. Went through the my_calendar settings. Toggled through them all.Picked
   the light my_calendar css. Reset the theme to 2014. All to no avail.Please advise
 * [https://wordpress.org/plugins/my-calendar/](https://wordpress.org/plugins/my-calendar/)

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

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-warning-sprintf-error-on-page/#post-5592497)
 * I’m guessing that this is the only site that has an event that’s recurring monthly?
   That’s what that code is about. I’m not in the office right now, but I’ll look
   at this tomorrow.
 *  Thread Starter [acri](https://wordpress.org/support/users/acri/)
 * (@acri)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-warning-sprintf-error-on-page/#post-5592503)
 * No they all have huge amounts of recurring events. Just a strange issue. I bought
   your helpful PDF handout and it really helped me understand the set up better,
   however I could not figure out what was causing the scripting error.
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-warning-sprintf-error-on-page/#post-5592555)
 * So, more information – this is specifically in the calculations for the template
   tag {recurs} — is this the only site you’re using this template tag on?
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-warning-sprintf-error-on-page/#post-5592560)
 * Can you actually look at line 677 of that file and tell me what you see on it?
   I’m just not seeing the issue, so I want to verify that the code you have matches
   the code I have.
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-warning-sprintf-error-on-page/#post-5592562)
 * Ack, nevermind! I found the issue; I had ‘%$1s’ instead of ‘%1$s’.
 * Easy to miss…
 *  Thread Starter [acri](https://wordpress.org/support/users/acri/)
 * (@acri)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-warning-sprintf-error-on-page/#post-5592575)
 * Just updated the sites php error is gone….Great!
    Really like the advanced functionality
   removing the Host/Author Field, adding events currently happening option. Going
   to test the rss import to see if it works with other feeds rather than just yahoo.
   So additionally if you set the events to expire after happening will the cpt 
   generated be deleted making the site DB smaller? Always an issue with Multisite
   🙂 Thanks for making such an awesome and comprehensive tool. Now if we could 
   just remove some of the advertising in the dash…. it does confuse the site admins.
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-warning-sprintf-error-on-page/#post-5592576)
 * I think you’re referring to the ‘link expiration’ item – that only makes any 
   link you’ve added to the event expire, nothing else.
 * You can remove the advertising – just take away the permission ‘mc_view_help’
   in the permissions manager.
 *  Thread Starter [acri](https://wordpress.org/support/users/acri/)
 * (@acri)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-warning-sprintf-error-on-page/#post-5592577)
 * Lovely Joe Thank you!

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

The topic ‘PHP Warning: sprintf() – error on page’ is closed to new replies.

 * ![](https://ps.w.org/my-calendar/assets/icon-256x256.png?rev=1097576)
 * [My Calendar - Accessible Event Manager](https://wordpress.org/plugins/my-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/my-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-calendar/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [acri](https://wordpress.org/support/users/acri/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/php-warning-sprintf-error-on-page/#post-5592577)
 * Status: resolved