Hi All
Just upgraded from 1.4.9.6 to 1.5.1.3.
All data and products seem to be OK.
However when I click on a category I get this error message.
Fatal error: Call to undefined function mb_substr() in htdocs\catalog\controller\product\category.php on line 191
This is a live site and any help would be very much appreciated.
Regards
malc
Just upgraded from 1.4.9.6 to 1.5.1.3.
All data and products seem to be OK.
However when I click on a category I get this error message.
Fatal error: Call to undefined function mb_substr() in htdocs\catalog\controller\product\category.php on line 191
This is a live site and any help would be very much appreciated.
Regards
malc
I have moved this to bugs forum and renamed
mbstring() php functions were removed from OC in 1.5.1.3, but this one file seems to still be using it.
Your server does not have mbstring() php module installed for PHP, hence you are getting this error.
Try the following fix:
open: catalog/controller/product/category.php
find
change to
mbstring() php functions were removed from OC in 1.5.1.3, but this one file seems to still be using it.
Your server does not have mbstring() php module installed for PHP, hence you are getting this error.
Try the following fix:
open: catalog/controller/product/category.php
find
Code: Select all
'description' => mb_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
Code: Select all
'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
Hi uksitebuilder
Thank you for your response I am really grateful- solved the problem.
I now have a further error message when I click on a product-
Notice: Error: Unknown column 'sort_order' in 'order clause'
Error No: 1054
SELECT * FROM _opproduct_image WHERE product_id = '49' ORDER BY sort_order ASC in \htdocs\system\database\mysql.php on line 49
Regards
malc
Thank you for your response I am really grateful- solved the problem.
I now have a further error message when I click on a product-
Notice: Error: Unknown column 'sort_order' in 'order clause'
Error No: 1054
SELECT * FROM _opproduct_image WHERE product_id = '49' ORDER BY sort_order ASC in \htdocs\system\database\mysql.php on line 49
Regards
malc
You need to make sure you followed the upgrade instructions fully as there are database upgrades to be done. One of which relates to your problem.
Hi uksitebuilder
Had forgotten to run the install upgrade after the beta upgrade.
All seems to be working fine now.
The help given on this forum to numb nuts like me is invaluable and very much appreciated.
Thank You again for your help.
Regards
malc
Had forgotten to run the install upgrade after the beta upgrade.
All seems to be working fine now.
The help given on this forum to numb nuts like me is invaluable and very much appreciated.
Thank You again for your help.
Regards
malc
thank you very much for the help, I'm a PHP beginner in the world and helped me a lot this forum, I'll be in touch, Adrian Pozo
opencart_v1.5.1.3.1
opencart_v1.5.1.3.1
uksitebuilder wrote:I have moved this to bugs forum and renamed
mbstring() php functions were removed from OC in 1.5.1.3, but this one file seems to still be using it.
Your server does not have mbstring() php module installed for PHP, hence you are getting this error.
Try the following fix:
open: catalog/controller/product/category.php
findchange toCode: Select all
'description' => mb_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
Code: Select all
'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
I replaced the Above, but it is giving me the same exact error as if I did nothing.
www.gmediatestsite01.com
Thanks!!
Chris
Who is online
Users browsing this forum: No registered users and 6 guests