kidkaos77
Forum Replies Created
-
Here’s the url with the original workaround.
https://ww.wp.xz.cn/support/topic/error-after-upgrading-to-wp-6-0/#post-16150539
Just wanted to also clarify that the Tribe__Events__Template__Month call that @joneiseman mentioned is on the file that i mentioned earlier (/wordpress-seo/src/generators/schema/third-party/events-calendar-schema.php) in a function at the bottom of the page. By commenting out the tribe_is_month endif statements on the file you will stop the plugin from calling the deprecated Tribe__Events__Template__Month class, which should give you a temporary fix until the plugin is updated.
- This reply was modified 3 years, 7 months ago by kidkaos77.
I was having what seems to be the same issue. I did a little digging around in the plugin and found this in the yoast plugin at /wordpress-seo/src/generators/schema/third-party/events-calendar-schema.php.
**
* Adds our Event piece of the graph.
* Partially lifted from the ‘Tribe__JSON_LD__Abstract’ class.
*
* @see https://docs.theeventscalendar.com/reference/classes/tribe__json_ld__abstract/
* @return array Event Schema markup
*/
public function generate() {
$posts = [];if ( \is_singular( ‘tribe_events’ ) ) {
global $post;
$posts[] = $post;
}
elseif ( \tribe_is_month() ) {
$posts = $this->get_month_events();
}When you comment out the depreciated tribe_is_month “elseif” statement the site works perfectly for me. I would assume this might work for you as well but i would hope that the Yoast team makes an update for this soon as i dont normally recomend making edits to active plugins for obvious reasons.
- This reply was modified 3 years, 7 months ago by kidkaos77.