opcache breaking phpmyadmin loading

  • | 166 points

    To reproduce issue:

    • activate opcache (PHP>extensions>opcache)
    • load phpmyadmin

    Fatal error: Uncaught Error: Class 'PhpMyAdmin\MoTranslator\Loader' not found in C:\laragon\etc\apps\phpMyAdmin\phpMyAdmin-\libraries\common.inc.php:96 Stack trace: #0 C:\laragon\etc\apps\phpMyAdmin\phpMyAdmin-\index.php(27): require_once() #1 {main} thrown in C:\laragon\etc\apps\phpMyAdmin\phpMyAdmin-\libraries\common.inc.php on line 96

    • deactivate opcache: phpmyadmin loading OK

    Config: Windows 10 + Laragon 4.0.15 + Quick add for phpmyadmin (even if the same occurs when manually copying files)


  • | 84 points

    I am not sure if my post will be helpful for you.

    I just resolved mine with these:

    1. Uninstall composer
    2. Install latest PHP Version 7.4.11 - https://windows.php.net/downloads/releases/php-7.4.11-Win32-vc15-x64.zip
    3. Reinstall composer and select the new PHP Version 7.4 for the path during composer installation.
    4. Restart windows.

    Tested everything works fine for me after this. Then I enabled opCache last.

    Hope this helps.

Log in to reply

Looks like your connection to Laragon was lost, please wait while we try to reconnect.