Shortcode Issue

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.
Viewing 11 posts - 16 through 26 (of 26 total)
  • Author
    Posts
  • #1266882
    Barry
    Member

    OK, 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!

    #1267539
    Jason Frey
    Participant

    The 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.

    #1267581
    Barry
    Member

    Sure – 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.

    #1267728
    Jason Frey
    Participant

    This reply is private.

    #1268594
    Barry
    Member

    Thanks 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?

    #1268766
    Jason Frey
    Participant

    As you stated in your response, yes I deactivated all plugins except Event Calendar and Event Calendar PRO, including Yoast.

    #1268838
    Barry
    Member

    OK — 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.

    #1268869
    Jason Frey
    Participant

    I 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?

    #1269082
    Barry
    Member

    One 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!

    #1269401
    Jason Frey
    Participant

    This actually resolved the issue!

    Excellent! Thank you so much!

    #1269485
    Barry
    Member

    Stoked 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.

Viewing 11 posts - 16 through 26 (of 26 total)
  • The topic ‘Shortcode Issue’ is closed to new replies.