?
avatar joeforjoomla
joeforjoomla
7 Jul 2020

Steps to reproduce the issue

Enable PHP OpCache on the server

Install an extension that uses the new service provider architecture

Expected result

As soon as the extension is installed it works normally

Actual result

Classes are not auto loaded and found by the PHP process.
For example the main \Extension\NameComponent.php file and related class Vendorname\Component\Componentname\Administrator\Extension\ComponentnameComponent that is loaded in the services.php file is not found and an error occurs.

After a few seconds the OpCache refreshes and reloading the page the component starts to work normally.

System information (as much as possible)

Linux server
PHP 7.4
OpCache enabled

Additional comments

The problem does not happen when PHP OpCache is disabled
Probably this should be a release blocker.

avatar joeforjoomla joeforjoomla - open - 7 Jul 2020
avatar joomla-cms-bot joomla-cms-bot - change - 7 Jul 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 7 Jul 2020
avatar joeforjoomla
joeforjoomla - comment - 7 Jul 2020

image

avatar PhilETaylor
PhilETaylor - comment - 8 Jul 2020

Probably just needs a opcache_reset(); somewhere after the install completes right ?

avatar joeforjoomla
joeforjoomla - comment - 8 Jul 2020

Yes @PhilETaylor, indeed an opcache_reset(); after the install completes would solve the problem.

avatar PhilETaylor
PhilETaylor - comment - 8 Jul 2020
avatar joeforjoomla joeforjoomla - change - 8 Jul 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-07-08 11:56:00
Closed_By joeforjoomla
avatar joeforjoomla joeforjoomla - close - 8 Jul 2020
avatar joeforjoomla
joeforjoomla - comment - 8 Jul 2020

Closing as we have PR

Add a Comment

Login with GitHub to post a comment