Post by malc » Wed Oct 05, 2011 7:12 am

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

New member

Posts

Joined
Thu Aug 12, 2010 2:15 am

Post by uksitebuilder » Wed Oct 05, 2011 5:38 pm

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

Code: Select all

'description' => mb_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
change to

Code: Select all

'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by malc » Wed Oct 05, 2011 6:56 pm

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

New member

Posts

Joined
Thu Aug 12, 2010 2:15 am

Post by uksitebuilder » Wed Oct 05, 2011 7:09 pm

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.

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by malc » Wed Oct 05, 2011 8:04 pm

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

New member

Posts

Joined
Thu Aug 12, 2010 2:15 am

Post by ADRIANPOZO » Fri Oct 14, 2011 8:57 am

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

Newbie

Posts

Joined
Fri Oct 14, 2011 8:30 am

Post by gmedia01 » Sat Sep 01, 2012 4:30 am

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

find

Code: Select all

'description' => mb_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
change to

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

New member

Posts

Joined
Sun Aug 26, 2012 4:49 am

Post by gmedia01 » Tue Sep 04, 2012 12:16 am

Hello??

New member

Posts

Joined
Sun Aug 26, 2012 4:49 am
Who is online

Users browsing this forum: No registered users and 6 guests