Fatal error: Uncaught Error: Undefined constant "MB_OVERLOAD_STRING" Topic is solved
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
-
- Joomla! Fledgling
- Posts: 2
- Joined: Mon Feb 15, 2021 4:36 pm
Fatal error: Uncaught Error: Undefined constant "MB_OVERLOAD_STRING"
Fatal error: Uncaught Error: Undefined constant "MB_OVERLOAD_STRING" in /var/www/libraries/vendor/joomla/string/src/phputf8/utf8.php:38 Stack trace: #0 /var/www/libraries/vendor/composer/autoload_real.php(66): require() #1 /var/www/libraries/vendor/composer/autoload_real.php(56): composerRequire205c915b9c7d3e718e7c95793ee67ffe() #2 /var/www/libraries/vendor/autoload.php(7): ComposerAutoloaderInit205c915b9c7d3e718e7c95793ee6 7ffe::getLoader() #3 /var/www/libraries/cms.php(36): require('...') #4 /var/www/installation/application/framework.php(39): require_once('...') #5 /var/www/installation/application/bootstrap.php(17): require_once('...') #6 /var/www/installation/index.php(29): require_once('...') #7 {main} thrown in /var/www/libraries/vendor/joomla/string/src/phputf8/utf8.php on line 38
how to fix this error?
ubuntu 20.04
nginx
php 8.0.2
how to fix this error?
ubuntu 20.04
nginx
php 8.0.2
-
- Joomla! Explorer
- Posts: 262
- Joined: Sun Dec 28, 2014 9:30 am
- Location: Stavanger, Norway
Re: Fatal error: Uncaught Error: Undefined constant "MB_OVERLOAD_STRING"
What version of Joomla is it you are trying to install?
It does not look like latest 3.9.24
It does not look like latest 3.9.24
-
- Joomla! Fledgling
- Posts: 2
- Joined: Mon Feb 15, 2021 4:36 pm
- DeeEmm
- Joomla! Apprentice
- Posts: 33
- Joined: Fri Mar 04, 2011 4:36 am
- Contact:
Re: Fatal error: Uncaught Error: Undefined constant "MB_OVERLOAD_STRING"
Looks to be an error in /libraries/vendor/joomla/string/src/phputf8/utf8.php
MB_OVERLOAD_STRING is depreciated as of php8.0
MB_OVERLOAD_STRING is depreciated as of php8.0
- toivo
- Joomla! Master
- Posts: 17421
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: Fatal error: Uncaught Error: Undefined constant "MB_OVERLOAD_STRING"
The line number of the PHP fatal error indicates that the version of Joomla is earlier than 3.9.23.
In Joomla 3.9.23 the line 38, where the error in your version occurred, is actually the start of the following comment about the subsequent lines of code that address the removal, not just deprecation, of the constant MB_OVERLOAD_STRING in PHP 8:
Code: Select all
/*
* Joomla modification - As of PHP 8, the `mbstring.func_overload` configuration has been removed and the
* MB_OVERLOAD_STRING constant will no longer be present, so this check only runs for PHP 7 and older
* See https://github.com/php/php-src/commit/331e56ce38a91e87a6fb8e88154bb5bde445b132
* and https://github.com/php/php-src/commit/97df99a6d7d96a886ac143337fecad775907589a
* for additional references
*/
Toivo Talikka, Global Moderator
- DeeEmm
- Joomla! Apprentice
- Posts: 33
- Joined: Fri Mar 04, 2011 4:36 am
- Contact:
Re: Fatal error: Uncaught Error: Undefined constant "MB_OVERLOAD_STRING"
I have the same error and I'm on 3.9.24
- toivo
- Joomla! Master
- Posts: 17421
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: Fatal error: Uncaught Error: Undefined constant "MB_OVERLOAD_STRING"
@DeeEmm, something must have gone wrong in the Joomla update. Go to Extensions - Joomla! Update, click Check for Updates and re-install the Joomla core files from the update package.
Toivo Talikka, Global Moderator
- DeeEmm
- Joomla! Apprentice
- Posts: 33
- Joined: Fri Mar 04, 2011 4:36 am
- Contact:
Re: Fatal error: Uncaught Error: Undefined constant "MB_OVERLOAD_STRING"
Thanks. Now working okay with php 8