Post by WinDrop88 » Fri Oct 14, 2022 4:29 am

Hi All,

Getting an error when I try to install a test version of opencart v4 on my local machine.
I'm using PHP Version 8.0.13 and I've also tried to use PHP 8.1.0 however despite all the extensions enabled I'm still getting mbstring related error.

The module is enabled and everything is loading fine and showing up in phpinfo() but I get this error
Fatal error: Uncaught Error: Call to undefined function Opencart\System\Helper\Utf8\mb_internal_encoding() in D:\Sites\VHost1\system\helper\utf8.php:3 Stack trace: #0 D:\Sites\VHost1\system\startup.php(63): require_once() #1 D:\Sites\VHost1\install\index.php(39): require_once('D:\\Sites\\VHost1...') #2 {main} thrown in D:\Sites\VHost1\system\helper\utf8.php on line 3

Could anyone advise please?

I'm using latest OpenCart version
PHP 8.0.13 and PHP 8.1.0 tested - same issue on both
As per the error, I'm running this on Windows within an WampServer build (can't see that being a problem tho?)

Thanks.

Newbie

Posts

Joined
Fri Oct 14, 2022 4:17 am

Post by ADD Creative » Fri Oct 14, 2022 7:30 pm

Make sure your PHP has the mbstring extension enabled.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by WinDrop88 » Sun Oct 16, 2022 5:57 pm

Sorry for the delay in replying.
The module is enabled and is showing up in phpinfo()

Newbie

Posts

Joined
Fri Oct 14, 2022 4:17 am

Post by bhallak » Wed Dec 21, 2022 7:21 pm

In my case, opencart 4 installation problem ...\system\helper\utf8.php solved by editing php.ini on my localhost server:

in php.ini enable the following by removing ";":
mbstring.internal_encoding =
extension=curl
extension=gd
extension=mbstring
extension=openssl

good luck.

User avatar
Newbie

Posts

Joined
Thu Aug 08, 2019 3:28 am
Location - Lebanon
Who is online

Users browsing this forum: No registered users and 2 guests