Home Forums Event Espresso Premium Fatal error after installing plugin

Fatal error after installing plugin

Posted: July 10, 2018 at 6:31 pm


July 10, 2018 at 6:31 pm

I just purchased Event Espresso to use with the LearnPress plugin. I tried adding my first event through Event Espresso and got this error:
Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /home/hellolan/public_html/wp-content/plugins/event-espresso-core-reg/core/domain/entities/DbSafeDateTime.php on line 3

Any help on this issue will be great. Thanks


  • Support Staff

July 10, 2018 at 8:43 pm

The first thing to check would be to check any PHP files on the server that have been recently edited, and if they have, were they converted to UTF8 with BOM? Or are there any spaces before the opening PHP tag?

I’m not sure why it would only affect that one file, but that’s the common cause of that error, which isn’t a common error that happens with Event Espresso.

Another thing to try which can rule out a plugin conflict would be to temporarily deactivate all other plugins, then try adding an event again.

The support post ‘Fatal error after installing plugin’ 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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 8 months, 2 weeks ago ago

Topic Tags


This topic is: not resolved
Do NOT follow this link or you will be banned from the site!