• Resolved acri

    (@acri)


    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://ww.wp.xz.cn/plugins/my-calendar/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    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

    (@acri)

    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

    (@joedolson)

    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

    (@joedolson)

    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

    (@joedolson)

    Ack, nevermind! I found the issue; I had ‘%$1s’ instead of ‘%1$s’.

    Easy to miss…

    Thread Starter acri

    (@acri)

    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

    (@joedolson)

    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

    (@acri)

    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.