Problem with 'opcache_invalidate()' upgrading to 3.4

Hi everybody,

I’m trying to upgrade OJS to 3.4 from and always get a blank screen and when I check the logs I get this error:

‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function ElcoBvg\Opcache\opcache_invalidate() in /home/revistasmarcialpons/www/lib/pkp/lib/vendor/elcobvg/laravel-opcache/src/Store.php:216\nStack trace:\n#0 /home/revistasmarcialpons/www/lib/pkp/lib/vendor/elcobvg/laravel-opcache/src/Store.php(127): ElcoBvg\Opcache\Store->forget(‘da39a3ee5e6b4b0…’)\n#1 /home/revistasmarcialpons/www/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(99): ElcoBvg\Opcache\Store->get(‘da39a3ee5e6b4b0…’)\n#2 /home/revistasmarcialpons/www/lib/pkp/lib/vendor/elcobvg/laravel-opcache/src/Repository.php(22): Illuminate\Cache\Repository->get(‘PKP\\i18n\\Locale…’)\n#3 /home/revistasmarcialpons/www/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(419): ElcoBvg\Opcache\Repository->remember(‘PKP\\i18n\\Locale…’, Object(DateInterval), Object(Closure))\n#4 /home/revistasmarcialpons/www/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): Illum…’

And where the problem come and how we can solve it. Anyone has a clue?

Thanks in advance

Let me write a little up date, I’ve trying some times and always got the same process, I try a couple or three times and they get me a time out error and the next time they give me a blank page and when I check the error logs the show me the error in the first message.

Hi @nacho,

Judging from e.g. this thread, I suspect your host has disabled the opcache_invalidate function using the disable_functions PHP option. Check to see if that function is disabled in your PHP configuration, and if possible, enable it.

Alec Smecher
Public Knowledge Project Team

Hi @asmecher Thanks for the replay,

I ask the host before I posted the issue and they told me this function has been enable; anyway I had to go back to de 3.3 version as we had to publish some articles and OJS 3.3 so I can’t check it now as I had to downgrade the php version. I’ll try to upgrade OJS in the next days and I’ll post weather I success or not.


1 Like

This topic was automatically closed after 12 days. New replies are no longer allowed.