Support

Home Forums Community Forum Does Event Espresso work with PHP 7.0

Does Event Espresso work with PHP 7.0

Posted: August 27, 2019 at 8:35 am


Shelly DeStasio

August 27, 2019 at 8:35 am

I upgraded to PHP 7.0 in order for my current version of WordPress to work.
When I did, the site crashed due to Event Espresso.
I tried upgrading to Event Espresso 4 Decaf, and had a crash, as well.

Is there a way I can make Event Espresso work in my WordPress site with PHP 7.0?


Shelly DeStasio

August 27, 2019 at 9:36 am

Here is the Fatal Error Message:

Fatal error: Uncaught Error: Call to a member function init_caps() on null in /home2/cchhudson/public_html/wp-content/plugins/event-espresso-core-reg_2/core/EE_System.core.php:181 Stack trace: #0 /home2/cchhudson/public_html/wp-includes/class-wp-hook.php(286): EE_System->load_espresso_addons(”) #1 /home2/cchhudson/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #2 /home2/cchhudson/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #3 /home2/cchhudson/public_html/wp-content/plugins/event-espresso-core-reg_2/core/EE_Bootstrap.core.php(140): do_action(‘AHEE__EE_Bootst…’) #4 /home2/cchhudson/public_html/wp-includes/class-wp-hook.php(286): EE_Bootstrap::load_espresso_addons(”) #5 /home2/cchhudson/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(true, Array) #6 /home2/cchhudson/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #7 /home2/cchhudson/public_html/wp-settings.php(394): do_action(‘plugins_loaded’) #8 /home2/cchhudson/public_ht in /home2/cchhudson/public_html/wp-content/plugins/event-espresso-core-reg_2/core/EE_System.core.php on line 181


Tony

  • Support Staff

August 27, 2019 at 1:28 pm

Hi there,

Event Espresso 4 is compatible with PHP7+

Which version of EE4 is the site currently running? The line numbers above don’t match up with the current versions.

Also, may I ask why you’re using PHP7.0 and not 7.3?

7.0 if now end of life, so you’re going through the trouble of updating to a versio that is already out of support. If you going to update I recommend doing so to the latest version available if possible.


Shelly DeStasio

August 28, 2019 at 6:04 am

Thank, Tony!
I did upgrade my PHP to 7.1, which is the highest my host service provides, currently.

I am using EE3. Version 4.8.29.p
So, the fatal error message refers to that build.
I tried Activating again, with the same error.

When I downgrade to Version 3.1.37.8.P, it seems to work fine in my WordPress site.

I had seen another thread saying that EE doesn’t work “with the server when it has Opache or APC activated”.

I don’t seem to have an extension option with my host at HostGator to adjust the cache.

Please let me know if there is anything else I can do to move forward, as I would like to continue to use the latest version of EE3 for my site.

Thank you very much for the assistance!


Tony

  • Support Staff

August 28, 2019 at 6:20 am

Thing is, those errors are from EE4.

So you’ve mentioned you’re using EE3 but then the version that’s throwing the errors is EE4 (which is actually a totally separate system from EE3).

The latest version of EE3 is v3.1.37.14.P and that version works fine with PHP7

The latest version of EE4 is v4.10.0.p and that version works fine with PHP7.

So may I ask, are you looking to use the latest version of EE3 or EE4?


Shelly DeStasio

August 28, 2019 at 6:48 am

I do have access to the php.ini editor, but don’t see where I can disable the bytecode caching, or Opcache.


Shelly DeStasio

August 28, 2019 at 7:43 am

Yeah, I guess the UX is a little confusing at to what system I am using.
So, it must be EE4, Version 4.8.29.p
And this is what is triggering the error message.

I did try loading the EE4 Decaf, thinking that was the EE4 version, and got a Maintenance issue, etc.

Thank for the clarity!
Unfortunately, with upgrading the PHP from 5.4 to 7.1, I am not able to get past the error message.


Tony

  • Support Staff

August 28, 2019 at 9:55 am

If you go to Dashboard -> Plugins you can see which version of Event Espresso you have active

EE3 – https://monosnap.com/file/uFuWHjcQSL3kVvIpWAbK1EaNL61K8H

EE4 – https://monosnap.com/file/AYYf66ApCEk3zxi6mKIoxILjIPnB6l

EE4 entering maintenance mode is not an error, its telling you your data needs to be migrated to use that version of EE4, which will happen with both the latest version of EE4 regular or EE4 Decaf.

EE4 Decaf is the ‘free’ version of EE4, its basically a simplified version of EE4.

EE4 Regular is the ‘full’ version which you have access to with a support license.

If your running EE3 and just want to update to the latest version of EE3 you can do that but note that we no longer add features to EE3 and will eventually stop supporting it (not for a while yet).

You also have the option to switch to EE4, but it’s a completely different system to EE3 and not ‘just an update to EE3’. EE4 migrates your EE3 data over so you shouldn’t lose anything, but it is a completely different set up to EE3 so its something to be aware of before switching over.

The site linked to your license key from 2015 was running EE3 earlier, now it doesn’t appear to be running any version?


Shelly DeStasio

August 28, 2019 at 11:37 am

Thank you, Tony,

Here is the Plugin version I am using: Version 4.8.29.p

Event Espresso
Activate | Delete

Manage your events from your WordPress dashboard. Reduce your admin, reduce your costs make your life easier! | Support

Version 4.8.29.p | By Event Espresso | Visit plugin site

I tried to activate it again on my site, and I still get the ‘Fatal Error’ message referenced in the original post.


Josh

  • Support Staff

August 28, 2019 at 1:13 pm

Hi,

Version 4.8.29.p is very old and is not compatible with PHP 7. The newer versions (4.9+ and 4.10+) of Event Espresso 4 are compatible with PHP 7+.

You could download the decaf version like you did before and that will be compatible with PHP 7, you’ll just need to follow the prompts to update the database when it goes into Maintenance Mode. The database update is necessary and not an issue.


Shelly DeStasio

August 28, 2019 at 6:59 pm

Hi Josh,
Well, that worked great, and seemed almost too easy!
Thank you to you and Tony for the excellent assistance in helping me resolve this issue.
I sure appreciate it!

The support post ‘Does Event Espresso work with PHP 7.0’ 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.

If you would like help from the Event Espresso staff, then please purchase a support license right now so you can create a support topic in our premium support forums.

Status: closed

Updated by  Shelly DeStasio 3 weeks, 1 day ago ago

Topic Tags

Notifications

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