?
avatar JensKirk
JensKirk
2 Nov 2015

Hi Joomla devs :-)

Using OpCache and upgrading extensions gives could give an 500 error on both frontend and backend but often it "just" gives strande PHP erros in the backend.

Here is my recommandation for the next version of Joomla.

Insert this code before the upgrade is started:

if (extension_loaded('Zend OPcache')) opcache_reset();

And perhaps also run the code above one more time just after upgrade.

I am manually doing it for my web clients that use OpCache on their sites.

OpCache is great and creates much faster pages but Joomla is not fully compatibable with it.

avatar JensKirk JensKirk - open - 2 Nov 2015
avatar JensKirk JensKirk - change - 5 Nov 2015
Title
Upgrading gives a 500 error when using OpCache
Upgrading gives an 500 error when using OpCache
avatar JensKirk
JensKirk - comment - 22 Feb 2016

Can anyone fix this issue that goes for all versions of Joomla?

avatar andrepereiradasilva
andrepereiradasilva - comment - 22 Feb 2016

@JensKirk consider making a pull request to solve the issue you're describing.
See https://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests

More info: https://docs.joomla.org/Portal:Joomla!_Code_Contributors

avatar mahagr
mahagr - comment - 22 Mar 2016

Issue #9515 has more detailed analysis on why the issue happens (also in Joomla Updater) and how to work around and/or fix it. Its a separate issue as its not using extension installer code, but happens for the same reason: because of the files change and depending on opcache settings, the change is not detected.

The solution is not to call opcache_reset(); before installation, but right after files have been copied.

avatar brianteeman
brianteeman - comment - 22 Mar 2016

I am closing this here so we have just one topic

avatar brianteeman brianteeman - change - 22 Mar 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-03-22 12:31:01
Closed_By brianteeman
avatar brianteeman brianteeman - close - 22 Mar 2016
avatar brianteeman brianteeman - close - 22 Mar 2016
avatar mahagr
mahagr - comment - 22 Mar 2016

Alright, I just need to remember to fix both of the issues then.. :)

Add a Comment

Login with GitHub to post a comment