tribe_events_the_notices is not working

Home Forums Calendar Products Events Calendar PRO tribe_events_the_notices is not working

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1235153
    Daan
    Participant

    Hello,

    I have installed the plugin correctly, if I am going to some event i get the message ‘Notice: tribe_events_the_notices is verouderd sinds versie 4.0.’ Where must I change this, I can’t find this.

    Maybe there are some other steps I must do?

    Greets,
    Arno

    #1237439
    Brook
    Participant

    Howdy Arno,

    It would be my pleasure to assist with this.

    It sounds like that one of your plugins, or perhaps even your theme, is not designed for the latest versions of The Events Calendar . Our first step will be to find out what is not working quite right, and from there hopefully we can find a simple fix. This guide walks you through how to test to see if this sort of conflict is happening, and then identify what is conflicting. Would you mind running through that for me when you have a few minutes? What are the results, so I can begin researching a fix?

    Cheers!

    – Brook

    #1246800
    Daan
    Participant

    Hello Brook,

    I have tested the plugin with the twentysixteen plugin and the problem is solved. How can I know what I must change on my own theme. This is a custom made theme and I am able to change some things.

    I would like to hear from you.

    Greets,
    Arno

    #1247100
    Brook
    Participant

    Howdy Arno,

    Thank you for narrowing that down. This problem should be easy to fix if you made the custom theme! In your theme, somewhere you are using the filter tribe_events_the_notices. This was deprecated in 4.0 in favor of tribe_the_notices. To fix this, in your theme’s code just find anywhere you used tribe_events_the_notices and replace it with tribe_the_notices.

    Does that make sense?

    Cheers!

    – Brook

    #1247461
    Daan
    Participant

    Brook,

    Thanx for your answer. That error is fixed. But when i scrolled down on the page I get some other error.

    /Applications/MAMP/htdocs/erp/wp-content/plugins/the-events-calendar/src/deprecated/TribeDateUtils.php is verouderd sinds versie 3.10. Gebruik in plaats daarvan Tribe__Date_Utils.

    Does it mean that i must change the next 3 rows:

    $time_format = get_option( ‘time_format’, TribeDateUtils::TIMEFORMAT );
    $start_ts = tribe_get_start_date( null, false, TribeDateUtils::DBDATEFORMAT );
    $end_ts = tribe_get_end_date( null, false, TribeDateUtils::DBDATEFORMAT );

    into

    $time_format = get_option( ‘time_format’, Tribe__Date_Utils::TIMEFORMAT );
    $start_ts = tribe_get_start_date( null, false, Tribe__Date_Utils::DBDATEFORMAT );
    $end_ts = tribe_get_end_date( null, false, Tribe__Date_Utils::DBDATEFORMAT );

    I looking forward to your answer.

    Greets,
    Arno

    • This reply was modified 9 years, 2 months ago by Daan.
    #1249213
    Brook
    Participant

    Howdy Arno,

    That is exactly it! Your changes should be all that’s needed to get rid of those errors.

    In order to make our plugin more consistent we renamed some of those old classes and filters, as you are seeing. Now all of our classes and filters share more or less the same naming structure, and hopefully our plugin is now easier for developers like yourself to learn and work with. So simple renaming your calls to these filters as you have done should be all that’s needed!

    Let me know if you need anything else. Cheers!

    – Brook

    #1260007
    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 7 posts - 1 through 7 (of 7 total)
  • The topic ‘tribe_events_the_notices is not working’ is closed to new replies.