Support

Home Forums Event Espresso Premium Fatal Error

Fatal Error

Posted: July 12, 2021 at 2:29 pm

Viewing 6 reply threads


kwamea@mst.edu

July 12, 2021 at 2:29 pm

I’m using WordPress 5.7.2 with EE 4. I get a fatal error each time I activate Event Espresso and it shuts down the whole website. I get many error warnings (copied the first 3 below) similar to these:

Deprecated: Required parameter $file follows optional parameter $dismissible in /home/qqaia2opdixy/public_html/wp-content/plugins/event-espresso-core-reg/core/services/notices/NoticesContainer.php on line 92

Deprecated: Required parameter $func follows optional parameter $dismissible in /home/qqaia2opdixy/public_html/wp-content/plugins/event-espresso-core-reg/core/services/notices/NoticesContainer.php on line 92

Deprecated: Required parameter $line follows optional parameter $dismissible in /home/qqaia2opdixy/public_html/wp-content/plugins/event-espresso-core-reg/core/services/notices/NoticesContainer.php on line 92

Any help will be appreciated. I’m hosting an event and people are waiting to register.

Thanks.


Tony

  • Support Staff

July 12, 2021 at 3:00 pm

Hi there,

Looks like you are using PHP8, does your host give you the option to switch to PHP7? If so, switch over and whatever error is being thrown should stop.

However, we’ll need the fatal error being thrown on the site to troubleshoot this, can you add that in a reply? (You can set the rely private so only EE staff can view it if preferred).

The deprecated notices won’t cause the site to go down, they basically mean “This isn’t correct, right now it works but should be fixed”. We have an open ticket to address the PHP8 deprecated notices in a future version of EE.


kwamea@mst.edu

July 12, 2021 at 3:15 pm

This reply has been marked as private.


Tony

  • Support Staff

July 12, 2021 at 4:22 pm

Thank you for the stack trace.

I’ve created a ticket for this and we are currently investigating the cause.


Tony

  • Support Staff

July 12, 2021 at 6:13 pm

Hi there,

We’ve identified the cause of this and released an update to Event Espresso to prevent it from happening.

You’ll need to update EE4 core before activating, to do that download 4.10.13.p from your account page and then install it via Dashboard -> Plugins -> Add new –< Upload plugin (as you already have EE4 install it'll ask if you want to replace it, select to do so). https://eventespresso.com/wiki/how-to-upgrade-event-espresso/#ee4-manual-update

That should fix the above issue.


kwamea@mst.edu

July 13, 2021 at 1:33 pm

The update works but now I have these errors displaying on the page I have the short code on. is there a way to supress these so they don’t display?

Deprecated: Required parameter $datetime_value follows optional parameter $what in /home/qqaia2opdixy/public_html/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Base_Class.class.php on line 1572

Deprecated: Required parameter $fieldname follows optional parameter $what in /home/qqaia2opdixy/public_html/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Base_Class.class.php on line 1572

Deprecated: Required parameter $remaining follows optional parameter $ticket_price in /home/qqaia2opdixy/public_html/wp-content/plugins/event-espresso-core-reg/modules/ticket_selector/TicketDetails.php on line 165


Tony

  • Support Staff

July 14, 2021 at 10:35 am

Ok, so a couple of things to note here.

If those notices are being displayed on the page, then you server is set to display errors, which is great for development/testing but not so great for production.

Is this a live or development site?

If a live site, check your site’s wp-config.php file and see if WP_DEBUG is enabled (set to TRUE), if so, disable it, you don’t want warnings/notices/error displayed on the site.

Second, you mentioned you have PHP7 on the server, but the Deprecated notices you are posting above are from PHP8:

https://php.watch/versions/8.0/deprecate-required-param-after-optional

So are you sure the site is running on PHP7?

You can check in Dashboard -> Event Espresso -> Maintenance -> System Information

Search for ‘php_version’ on that page.

Viewing 6 reply threads

The support post ‘Fatal Error’ 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.

Event Espresso