googlepimcore

Debug Pimcore errors

The Pimcore log files are at /opt/bitnami/pimcore/var/logs/.

It is possible to activate the debug mode by following these steps:

  • Edit the /opt/bitnami/pimcore/var/config/debug-mode.php file as below:

      ...
      "active" => TRUE,
    
  • Edit the /opt/bitnami/php/etc/php-fpm.d/pimcore.conf file and replace the line below:

      env[PIMCORE_ENVIRONMENT] = prod
    

    With this:

      env[PIMCORE_ENVIRONMENT] = dev
    
  • Edit the apache/conf/vhosts/pimcore-vhost.conf and apache/conf/vhosts/pimcore-https-vhost.conf files and replace the line below:

      SetEnv PIMCORE_ENVIRONMENT prod
    

    With this:

      SetEnv PIMCORE_ENVIRONMENT dev
    
  • Restart Apache and PHP-FPM:

      $ sudo /opt/bitnami/ctlscript.sh restart apache
      $ sudo /opt/bitnami/ctlscript.sh restart php-fpm
    

The above steps will also make the Symfony toolbar visible at the bottom right corner of each page.

To deactivate the debug mode, revert the changes made to the above files and restart Apache and PHP-FPM.

Last modification February 9, 2023