Hi,
I’m getting this error :
Fatal error : Uncaught TypeError: mb_internal_encoding() expects parameter 1 to be string, null given in /var/www/html/project_name/config/bootstrap.php:345.
I have this code there:
mb_internal_encoding(Configure::read('App.encoding'));
The code Configure::read('App.encoding')
returns null
I’m using CAKEPHP 4.3 and PHP 7.2
Thanks!
Hello,
I fix it.
I was missing the configuration attributes inside app.php:
'App' => [
'namespace' => 'App',
'encoding' => env('APP_ENCODING', 'UTF-8'),
'defaultLocale' => env('APP_DEFAULT_LOCALE', 'en_US'),
'defaultTimezone' => env('APP_DEFAULT_TIMEZONE', 'UTC'),
'base' => false,
'dir' => 'src',
'webroot' => 'webroot',
'wwwRoot' => WWW_ROOT,
//'baseUrl' => env('SCRIPT_NAME'),
'fullBaseUrl' => false,
'imageBaseUrl' => 'img/',
'cssBaseUrl' => 'css/',
'jsBaseUrl' => 'js/',
'paths' => [
'plugins' => [ROOT . DS . 'plugins' . DS],
'templates' => [ROOT . DS . 'templates' . DS],
'locales' => [RESOURCES . 'locales' . DS],
],
],
Thanks!