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. :)
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to reset SSH port back to default port 22?

In some situations most of us may come across a problem that we are able to log into the WHM but...

How to setup the root login alert notification email?

Its very important to keep a check on your servers and who logs into the server, From security...

How to enable Open SSL on WHM?

Before enabling open SSL, you can check whether it is already enabled on your server. Please fire...

How to install mod_pagespeed on WHM?

'mod_pagespeed' is module of Apache which is nothing but plugin which is used for compressing the...

How to enable Hot Link Protection in cPanel?

To avoid other sites to use your website's bandwidth, you can enable the hot link protection....

Powered by WHMCompleteSolution