Workaround

Step 1: Locate your OPcache configuration

To find OPcache configuration settings:

PHP OPcache settings are typically located either in php.ini or opcache.ini. The location might depend on your operating system and PHP version. The OPcache configuration file might have an [opcache] section or settings like opcache.enable.

Use the following guidelines to find it:

Apache web server:

For Ubuntu with Apache, OPcache settings are typically located in php.ini.

For CentOS with Apache or nginx, OPcache settings are typically located in /etc/php.d/opcache.ini

If not, use the following command to locate it:

sudo find / -name 'opcache.ini'

nginx web server with PHP-FPM: /etc/php5/fpm/php.ini

If you have more than one opcache.ini, modify all of them.

Step 2: Enable opcache.save_comments

Open your OPcache configuration file in a text editor.

Locate opcache.save_comments and uncomment it if necessary.

Make sure its value is set to 1.

Save your changes and exit the text editor.

Restart your web server:

Apache, Ubuntu: service apache2 restart

Apache, CentOS: service httpd restart

nginx, Ubuntu and CentOS: service nginx restart

Regenerate DI configuration and all missing classes that can be auto-generated: