Hi!
Seeing all of the reports about the latest EE release.
I had serious issues too. I’ve resolved them all by modifying my code to handle the issues… they all seem to stem from the fact that the global $post variable is not available to the Event View so static function access can’t reach it.
At least that’s my hunch.
I was forced to update all get_event() calls to pass an explicit ID.
`
<?php
use EventEspresso\core\domain\entities\custom_post_types\EspressoPostType;
/**
* get_event
* attempts to retrieve an EE_Event object any way it can
*
* @param int|WP_Post $EVT_ID
* @return EE_Event|null
* @throws EE_Error
* @throws ReflectionException
*/
public static function get_event($EVT_ID = 0)
{
// international newspaper?
global $post; `
Thanks for sharing this. If it happen they’re some conflict, you can revert back to 5.0.17, here is the download link
thanks
Viewing 1 reply thread
The support post ‘Possible Namespace collision with global $post issue’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.