Home › Forums › Calendar Products › Events Calendar PRO › tribe_events_the_notices is not working
- This topic has 7 replies, 4 voices, and was last updated 9 years, 1 month ago by
Daan.
-
AuthorPosts
-
February 15, 2017 at 6:22 am #1235153
Daan
ParticipantHello,
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,
ArnoFebruary 15, 2017 at 6:15 pm #1237439Brook
ParticipantHowdy 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
February 28, 2017 at 4:53 am #1246800Daan
ParticipantHello 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,
ArnoFebruary 28, 2017 at 10:27 am #1247100Brook
ParticipantHowdy 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
February 28, 2017 at 11:50 pm #1247461Daan
ParticipantBrook,
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.
March 3, 2017 at 12:06 pm #1249213Brook
ParticipantHowdy 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
March 25, 2017 at 9:35 am #1260007Support Droid
KeymasterHey 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 -
This reply was modified 9 years, 2 months ago by
-
AuthorPosts
- The topic ‘tribe_events_the_notices is not working’ is closed to new replies.
