gdfemia
September 28, 2023, 12:15am
1
Website URL
gdfemia.com.ar
(please specify the URL of the site on which you are experiencing the problem)
Error Message
Esta página no funciona
La página gdfemia.com.ar no puede procesar esta solicitud ahora.
HTTP ERROR 500
(please share the FULL error message you see, if applicable)
Other Information
(other information and details relevant to your question)
Today it stopped working on its own, until yesterday it was working
gdfemia
September 28, 2023, 1:11am
2
Fatal error : Uncaught Error: Undefined constant “MB_OVERLOAD_STRING” in /home/vol15_5/epizy.com/epiz_31481034/htdocs/libraries/vendor/joomla/string/src/phputf8/utf8.php:38 Stack trace: #0 /home/vol15_5/epizy.com/epiz_31481034/htdocs/libraries/vendor/composer/autoload_real.php(66): require() #1 /home/vol15_5/epizy.com/epiz_31481034/htdocs/libraries/vendor/composer/autoload_real.php(56): composerRequire205c915b9c7d3e718e7c95793ee67ffe(‘2fb9d6f23c8e8fa…’, ‘/home/vol15_5/e…’) #2 /home/vol15_5/epizy.com/epiz_31481034/htdocs/libraries/vendor/autoload.php(7): ComposerAutoloaderInit205c915b9c7d3e718e7c95793ee67ffe::getLoader() #3 /home/vol15_5/epizy.com/epiz_31481034/htdocs/libraries/cms.php(36): require(‘/home/vol15_5/e…’) #4 /home/vol15_5/epizy.com/epiz_31481034/htdocs/administrator/includes/framework.php(18): require_once(‘/home/vol15_5/e…’) #5 /home/vol15_5/epizy.com/epiz_31481034/htdocs/administrator/index.php(40): require_once(‘/home/vol15_5/e…’) #6 {main} thrown in /home/vol15_5/epizy.com/epiz_31481034/htdocs/libraries/vendor/joomla/string/src/phputf8/utf8.php on line 38
HELP
Hi gdfemia,
The constant MB_OVERLOAD_STRING has been removed since PHP 8, however you can redefine this const somewhere in a commonly included file as:
if(!defined('MB_OVERLOAD_STRING')){
define('MB_OVERLOAD_STRING', 2);
}
You should also note that this is not the only constant that appears in the old version of PHP as it’s used with an extension mbstring. Since you have no control over the PHP version here on the free hosting, you might need to consider updating your application. The above solution merely solves the syntactical errors and helps you get things running, but never achieves a real solution if you do not have a compatible version.
For a complete list of such mbstring-related constants and done the safest way:
if(!defined('MB_OVERLOAD_MAIL')){
define('MB_OVERLOAD_MAIL', 1);
}
if(!defined('MB_OVERLOAD_STRING')){
define('MB_OVERLOAD_STRING', 2);
}
if(!defined('MB_OVERLOAD_REGEX')){
define('MB_OVERLOAD_REGEX', 4);
}
if(!defined('MB_CASE_UPPER')){
define('MB_CASE_UPPER', 0);
}
if(!defined('MB_CASE_LOWER')){
define('MB_CASE_LOWER', 1);
}
if(!defined('MB_CASE_TITLE')){
define('MB_CASE_TITLE', 2);
}
if(!defined('MB_CASE_FOLD')){
define('MB_CASE_FOLD', 3);
}
if(!defined('MB_CASE_LOWER_SIMPLE')){
define('MB_CASE_LOWER_SIMPLE', 5);
}
if(!defined('MB_CASE_UPPER_SIMPLE')){
define('MB_CASE_UPPER_SIMPLE', 4);
}
if(!defined('MB_CASE_TITLE_SIMPLE')){
define('MB_CASE_TITLE_SIMPLE', 6);
}
if(!defined('MB_CASE_FOLD_SIMPLE')){
define('MB_CASE_FOLD_SIMPLE', 7);
}
if(!defined('MB_ONIGURUMA_VERSION')){
define('MB_ONIGURUMA_VERSION', '5.9.6');
}
Cheers!
5 Likes
system
Closed
October 5, 2023, 1:27am
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.