Support

Home Forums Event Espresso Premium EE3 and PHP version

EE3 and PHP version

Posted: April 2, 2019 at 3:46 am

Viewing 8 reply threads


Elaine Wildash

April 2, 2019 at 3:46 am

Hi,

Can you let me know what version of PHP can be run with EE3?

I tried updating PHP 7.2 and started to get a memcache issue:

Warning: session_start(): Cannot find save handler ‘memcache’ – session startup failed in /var/sites/d/domainname.co.uk/public_html/wp-content/plugins/espresso-multiple/espresso-multi-registration.php on line 77

Warning: session_start(): Cannot start session when headers already sent in /var/sites/d/domainname.co.uk/public_html/wp-content/plugins/event-espresso/espresso.php on line 80

Can you advise?

Thanks,

Elaine


Tony

  • Support Staff

April 2, 2019 at 7:39 am

Hi Elaine,

You can use PHP7.2 with EE3, but you’ll need to disable memcache and memcached (pretty much all caching so I’d recommend also disabling opcache).

You host will usually provide you with an options page where you can enable/disable those features.


Josh

  • Support Staff

April 2, 2019 at 7:42 am

Hi,

PHP 7.2 is OK to use with Event Espresso 3, the warning related to memcache is a session/memcache issue. You could make a change to the espresso-multiple plugin to work around that issue.

In the espresso-multiple/espresso-multi-registration.php file, on line 77, it has this:
session_start();

You can change it to this:
if (session_status() === PHP_SESSION_NONE){session_start();}

Also, if the PHP warnings are being displayed (as opposed to just showing up in the PHP error logs) then it’s also advised to edit the wp-config.php file so WP_DEBUG is set to false.


Elaine Wildash

April 2, 2019 at 7:46 am

Hi,

Thanks for your answers.

Does this mean I don’t need to disable memcache and memcached tec that I can leave as is and just make the changes to espresso-multiple/espresso-multi-registration.php file and wp-config.php.

Does EE3 need memcache. I have a vague recollection that memcache was used?

Thanks,

Elaine


Josh

  • Support Staff

April 2, 2019 at 7:51 am

It’s best to not use memcache when using a plugin like EE3. EE3 does not need or use memecache.


Elaine Wildash

April 2, 2019 at 8:01 am

Hi Josh,

I made the changes to the file espresso-multiple/espresso-multi-registration.php, wp-config.php WP_DEBUG as already set to false.

I now get Warning: session_start(): Cannot find save handler ‘memcache’ – session startup failed in /var/sites/d/domainname.co.uk/public_html/wp-content/plugins/event-espresso/espresso.php on line 80

Do I also need to disable memcache?

Thanks,

Elaine


Josh

  • Support Staff

April 2, 2019 at 8:07 am

Yes, that’s what Tony mentioned to do earlier.


Elaine Wildash

April 2, 2019 at 9:14 am

Hi,

Thanks. I think that solved the issue.

I see some text in the footer:

<!–Event Espresso Template Files:

then a list of files.

Is this normal?

Thanks,

Elaine


Josh

  • Support Staff

April 2, 2019 at 9:39 am

It’s an indication that the original template files from /event-espresso/templates were copied over to /wp-content/uploads/espresso/templates. If you’re using customized versions of those files, then expected to see a list of files in the html comment in the footer.

If the files were simply copied over to that location but no customizations were made to those files, it’s advised to remove those files from the /wp-content/uploads/espresso/templates location.

Viewing 8 reply threads

The support post ‘EE3 and PHP version’ 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