My site was working fine from last 2 3 months but now it shows 500 Server error message. Then I saw the error.log
file it says that
PHP Fatal error: Call to undefined function utf8_substr() in public_html/catalog/model/tool/image.php on line 11
And the code at the given location is:
$new_image = 'cache/' . utf8_substr($filename, 0, utf8_strrpos($filename, '.')) . '-' . $width . 'x' . $height . '.' . $extension;
Then I thought may be its because of cache and then I cleared the cache and still gets the same error message. I was looking for solution on google and I found few solution like Clearing cache
, Check if startup.php
or utf8.php
is missing or not but file is on the correct place. It is on production env and site is down from last two days.
Please tell me a solution for this problem.
I'm running Opencart version 2.0.3.1
Thanks in advance