Home › Forums › Calendar Products › Events Calendar PRO › Shortcode Issue
- This topic has 26 replies, 3 voices, and was last updated 9 years ago by
Jason Frey.
-
AuthorPosts
-
April 7, 2017 at 6:26 pm #1266882
Barry
MemberOK, thanks for confirming.
Access to your site is great (though as a general rule, we do not log in to customer websites) — but it doesn’t allow me to see the root cause of the problem.
Would you be comfortable using Duplicator to share a snapshot of your site? It basically bundles up a copy of the database plus all plugins, etc, so I can review in more depth.
Let me know!
April 10, 2017 at 6:25 am #1267539Jason Frey
ParticipantThe website won’t allow me to package the files within Duplicator. It returns a 500 internal error.
I can add whomever to our repo, and submit the database files here, if that works.
April 10, 2017 at 7:04 am #1267581Barry
MemberSure – or simply create a zip of the entire site and include the database dump within that zip. Depending on the total size you may not be able to upload it to the forum, but you could alternatively make it available via Dropbox or sharing service of choice and link to it from a private post.
April 10, 2017 at 9:39 am #1267728Jason Frey
ParticipantThis reply is private.
April 11, 2017 at 4:53 pm #1268594Barry
MemberThanks for your patience, Jason.
The problem seems to me to relate to Yoast SEO – on deactivating that plugin, the problem is resolved and the event view is rendered. This seems inconsistent with your previous findings, though:
I’ve turned off everything except Event Calendar and Event Calendar PRO.
Before we go any further, can I ask you to confirm you did try deactivating Yoast SEO as part of the troubleshooting process?
April 12, 2017 at 6:14 am #1268766Jason Frey
ParticipantAs you stated in your response, yes I deactivated all plugins except Event Calendar and Event Calendar PRO, including Yoast.
April 12, 2017 at 8:01 am #1268838Barry
MemberOK — and if you try deactivating only Yoast at this point, do you find the problem is resolved? While I appreciate that may not be viable as a long term solution, I’m keen to ascertain if our experience is the same or not.
April 12, 2017 at 9:09 am #1268869Jason Frey
ParticipantI just tried disabling the plugin again, and for now you are correct it is working.
I wonder if it has to do with the site being ran on 5.6.2 and Yoast updated theirs for 7.1.
Any thoughts on what to do then for SEO?
April 12, 2017 at 12:28 pm #1269082Barry
MemberOne option could be to keep Yoast enabled and try some code like this to workaround the situation (it could be added to a custom plugin, for example):
function unregister_tribe_events_shortcode() { remove_shortcode( 'tribe_events' ); } function reregister_tribe_events_shortcode() { if ( ! class_exists( 'Tribe__Events__Pro__Main' ) ) { return; } $tribe_shortcodes = Tribe__Events__Pro__Main::instance()->shortcodes; add_shortcode( 'tribe_events', array( $tribe_shortcodes, 'tribe_events' ) ); } add_action( 'init', 'unregister_tribe_events_shortcode', 20 ); add_action( 'wp_head', 'reregister_tribe_events_shortcode', 5 );Alternatively, you could try a different SEO solution or even experiment with different settings provided by Yoast. The above might be sufficient by itself, though.
Let me know if it helps!
April 13, 2017 at 7:08 am #1269401Jason Frey
ParticipantThis actually resolved the issue!
Excellent! Thank you so much!
April 13, 2017 at 9:01 am #1269485Barry
MemberStoked to hear it, thanks for confirming 🙂
I’ll go ahead and close this topic, but if we can assist with anything else please don’t hesitate to open a new one and one of the team will be only too happy to help.
-
AuthorPosts
- The topic ‘Shortcode Issue’ is closed to new replies.
