Undefined constant "www_root"

Hi there

I´m using Passbolt for a while now, but since few days it doesnt work.

The check via

sudo -u www-data bash -c “/var/www/html/passbolt/bin/cake passbolt healthcheck --verbose” returns

PHP Fatal error: Uncaught Error: Undefined constant “www_root” in /var/www/html/passbolt/config/app.php:53
Stack trace:
#0 /var/www/html/passbolt/vendor/cakephp/cakephp/src/Core/Configure/Engine/PhpConfig.php(89): include()
#1 /var/www/html/passbolt/vendor/cakephp/cakephp/src/Core/Configure.php(333): Cake\Core\Configure\Engine\PhpConfig->read()
#2 /var/www/html/passbolt/config/bootstrap.php(57): Cake\Core\Configure::load()
#3 /var/www/html/passbolt/vendor/cakephp/cakephp/src/Http/BaseApplication.php(172): require_once(‘…’)
#4 /var/www/html/passbolt/src/Application.php(131): Cake\Http\BaseApplication->bootstrap()
#5 /var/www/html/passbolt/vendor/cakephp/cakephp/src/Console/CommandRunner.php(195): App\Application->bootstrap()
#6 /var/www/html/passbolt/vendor/cakephp/cakephp/src/Console/CommandRunner.php(133): Cake\Console\CommandRunner->bootstrap()
#7 /var/www/html/passbolt/bin/cake.php(12): Cake\Console\CommandRunner->run()
#8 {main}

  • thrown in /var/www/html/passbolt/config/app.php on line 53*

PHP is 8.0.20 and the OS is debian 11
passbolt is “full” installed - no docker.

Any hints?

Hi @logg.sar :wave: and welcome to passbolt community forum :handshake:

In your config/app.php on line 53, do you have www_root in lowercase ? If I have a look at passbolt_api/app.default.php at master · passbolt/passbolt_api · GitHub it is WWW_ROOT in uppercase.


@_jc Thank you for having me.

I can´t remember changing the value, but it was wrong.
I took the easy way and used the default-file and aded my changes.

Thank you.