tribe_is_recurring_event is called incorrect

Home Forums Calendar Products Events Calendar PRO tribe_is_recurring_event is called incorrect

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1183917
    Jacob
    Participant

    Hi

    I get this error when trying to access a single_event

    “Notice: tribe_is_recurring_event is called incorrect. You need to pass a post ID or use it in the loop. etc…. ”

    I also get this warning wheni try to get system information from the settings screen:
    Warning: sprintf(): Too few arguments in /hsphere/local/home/nijathy/jaxweb.dk/dianalunddk/wp-content/plugins/the-events-calendar/src/admin-views/tribe-options-display.php on line 51

    Please help

    Regards Jacob Thygesen

    #1183973
    Jacob
    Participant

    It seems that “the loop” is getting af post-0 before it reads the actual event-post, when i look at the generated html

    #1184102
    Andras
    Keymaster

    Hello Jacob,

    Thanks for going Pro and welcome to the forums! I’m sorry about this issue you are having. Let me try to help you out with this one.

    Are you also getting the errors is you deactivate all plugins and leave only the Modern Tribe ones active? Would be best to run a full test for conflicts based on this: https://theeventscalendar.com/knowledgebase/testing-for-conflicts/

    Also, can you point me to the single event page where that is happening? Is it a single event or an instance of a recurring event?

    Thanks and cheers,
    Andras

    #1184781
    Jacob
    Participant

    I have tried unplugging all other plugins – and it is still persisting. It is both happening for single and reccuring events. The page is http://jaxweb.dk/dianalunddk/arrangement/sebastian-skore-safarishow/

    I hvae also tried to return to your standard single-event.php and not using the custom single-event.php for the theme.

    #1185488
    Andras
    Keymaster

    Hi Jacob,

    Thanks for running the test. Apart from deactivating the plugins, did you also try switching the theme to a default like twentysixteen ?

    If you still get the error with twentysixteen then we can dig further. If you don’t get the error with it, then there’s something fishy in the theme you are using. Check if there is any customization using the tribe_is_recurring_event function. Disable that and check if that fixes it.

    Here’s an idea for the second error that you get on the admin. It could be a translation that did not include the placeholders like %s or %d. To fix this you can do the following:

    Quick:

    • Switch your WordPress language to English and check if you still get the error. If not, the read further. If you still get the error in English, then let me know.

    Long:

    • find your translation files here wp-content\plugins\the-events-calendar\lang\and here wp-content\plugins\events-calendar-pro\lang\
    • Open the .po files with PoEdit
    • Choose Catalog > Update from POT file
    • Browse for the .pot file in the respective folders above
    • Check if the translations are correct with special attention to the %s, %d and similar ones

    Let me know the results and we’ll take it further from there, if needed.

    One more thing I discovered, it seems you are using the same slug for events and event. That could also cause issues, I recommend changing one of those under Events > Settings > General tab.

    Cheers,
    Andras

    #1195889
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘tribe_is_recurring_event is called incorrect’ is closed to new replies.