Hello, we are running the latest version of the Event Espresso plugin and we were encountering a php Fatal error. This was slowing the website and snowballing many other warnings to be logged.
I have fixed the erorr by setting a default value to the string variable of the function but I whish this will be included in your new release so we do not encounter the issue.
The error message:
[04-Apr-2024 00:05:07 UTC] PHP Fatal error: Uncaught TypeError: EventEspresso\core\services\shortcodes\ShortcodesManager::parseContentForShortcodes(): Argument #1 ($content) must be of type string, null given, called in /var/web/site/public_html/wp-content/plugins/event-espresso-core-reg/core/services/shortcodes/ShortcodesManager.php on line 205 and defined in /var/web/site/public_html/wp-content/plugins/event-espresso-core-reg/core/services/shortcodes/ShortcodesManager.php:226
The fix on wp-content/plugins/event-espresso-core-reg/core/services/shortcodes/ShortcodesManager.php:226
editing this line:
public function parseContentForShortcodes(string $content, WP_Post $post): bool
to this:
public function parseContentForShortcodes(string $content=”, WP_Post $post): bool
Thanks for letting us know. Will pass this to our developer for review.
have a wonderful day.
Viewing 1 reply thread
The support post ‘PHP Fatal Error encountered’ 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.