Fatal error: Call to undefined function utf8_substr()

While accessing Opencart site, I was getting error as 'Fatal error: Call to undefined function utf8_substr()'. This error is related to PHP extensions on the server. You should have enable the mbstring and iconv extesnions to fix it.


If you are geting the same error to your website then plesse follow below setps to enable the required extensions-
==========================================================
1. Login to WHM using root access
2.  Softwares >> EasyApache
3. Click on Customize Option in-front of the 'Currently Installed Packages.'
4. After that follow PHP Extensions
5. IN search box enter the name of required extension to be installed.
6. Click on Next button and follow the instrcutions  until it comes to  "Save and Build".
==========================================================
Once done then you can verify it using login to your server using SSH root access -
Fire 'php -m' command.
You will get the list of installed modules,check if the installed extension is listes or not.
You can check the specific extension using php -m | grep extension_name,.
For example -
==========================================================
[root@ ~]# php -m | grep mbstring
mbstring
==========================================================

That's it! It will fix your issue. :)

Was this answer helpful?

 Print this Article

Also Read

Your website needs to be publicly accessible to use Jetpack: site_inaccessible Error Details: The Jetpack server was unable to communicate with your site [HTTP 403].

I was getting the following error when connecting to the Wordpress native plugin Jetpack to...

How to install Let's Encrypt free SSL plugin on cPanel server?

Let's Encrypt plugin allows automated SSL certificate for those account which do not have valid...

Failed: Account Restore Failed: “clean: Cannot cleanup top level directory:

While restoring the full cPanel backup file in 'tar.gz' format from WHM >> Backup >>...

Database connection error (2): Could not connect to MySQL- Joomla Issue

While accessing the Joomla site I was getting the error as "Database connection error (2): Could...

How to resolve the issue of WordPress site which downloads PHP files instead of parsing after cPanel migration?

After migrating the WordPress site on the cPanel server, the website was not loading, it was...

Powered by WHMCompleteSolution