Enable PHP OpCache on the server
Install an extension that uses the new service provider architecture
As soon as the extension is installed it works normally
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.
Linux server
PHP 7.4
OpCache enabled
The problem does not happen when PHP OpCache is disabled
Probably this should be a release blocker.
Labels |
Added:
?
|
Probably just needs a opcache_reset();
somewhere after the install completes right ?
Yes @PhilETaylor, indeed an opcache_reset(); after the install completes would solve the problem.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-07-08 11:56:00 |
Closed_By | ⇒ | joeforjoomla |
Closing as we have PR