Notice (8): Trying to get property 'titre_general' of non-object [APP/Controller/PropertiesController.php, line 273]
Warning (512): Unable to emit headers. Headers sent in file=/var/www/vhosts/tekaimmo.fr/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php line=988 [CORE/src/Http/ResponseEmitter.php, line 71]
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/tekaimmo.fr/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php:988) [CORE/src/Http/ResponseEmitter.php, line 168]
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/tekaimmo.fr/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php:988) [CORE/src/Http/ResponseEmitter.php, line 197]
Error: substr() expects parameter 1 to be string, null given

substr() expects parameter 1 to be string, null given 📋

TypeError
Toggle Vendor Stack Frames
        $property $properties->first();
        //On définit le titre de la page ainsi que le layout
        $this->set('title'substr($property->titre_general040));
        $this->set('description'$property->texte_web);
        $this->set('robots'"index, nofollow");
        $this->viewBuilder()->setLayout('property');
Error in: ROOT/src/Controller/PropertiesController.php, line 273

If you want to customize this error message, create templates/Error/error500.php