AbanteCart Community
Shopping Cart Operations => Support => General Support => Topic started by: fathira on April 03, 2017, 03:35:33 AM
-
i suxesfully updated yesterday abantecart 1.29 to 1.210 . admin panel working perfectly store front error see error
see crome
The mynamecom page isn’t working
mynamecom is currently unable to handle this request.
HTTP ERROR 500
see server error log
[03-Apr-2017 01:50:49 America/Chicago] PHP Fatal error: Cannot unset string offsets in /home/xxxxx/public_html/storefront/model/catalog/manufacturer.php on line 67
change to code manufacturer.php 67 unset($data['limit']); to change #unset($data['limit']); (supported google and hosting provider)
store front working ok but one error log warning see blow
may be this not related update
2017-04-03 2:14:21 - warning: AbanteCart core v.1.2.10 Illegal string offset 'limit' in <b>/home/xxxxxx/public_html/storefront/model/catalog/manufacturer.php</b> on line <b>83</b>
-
it's a strange error. Looks like your php working in the strict mode...
Can you replace your file with attached and check?
-
hi abolabo
removed storefront/model/catalog/manufacturer.php and upload your attachment storfrond working fine no issue . server error log good no issue but one warning error in error log page see blow
2017-04-03 9:06:16 - warning: AbanteCart core v.1.2.10 Illegal string offset 'start' in <b>/home/xxxx/public_html/storefront/model/catalog/manufacturer.php</b> on line <b>54</b>
this warning started after seo booster extension installation (sorry i forgot that this extension first installed in abantecart 1. 2.9 )1.2.9 and 1.2.10 same warning . i asking extension maker his side see blow
Illegal string is not an error. PHP warnings are nothing to worry about on a site most of the time. However, we can fix this if you provide us your php version and explain how to reproduce the problem, step by step.
Have a nice day
My php version 7 varnish cache supported sharing server and configure cloud flare . My cache driver used APCU
4 or 6 warning /hour in error warning page
please share any idea for this problem solving
thanks for your support
-
mm.. you can try to replace
$data['start'] = (int)$data['start'];
with this
$data['start'] = !isset($data['start']) ? 0 : (int)$data['start'];
in line 54
-
abolabo thanks for your help
i successfully edited manufacture.php delete old code and write your code
1.2.10 Illegal string offset 'start' in this warning solved
thanks
-
So this fixes the problem I've been having?
2017-04-16 13:36:22 - warning: AbanteCart core v.1.2.8 Illegal string offset 'limit' in <b>/home/digitalt2016/public_html/cbto.us/storefront/model/catalog/manufacturer.php</b> on line <b>83</b>
http://forum.abantecart.com/index.php/topic,5035.msg22305.html#msg22305
Still getting a error with manufacturer.php and you all said that the code should reset to 0. Still getting error but it doesn't effect the performance of the site.
-
So this fixes the problem I've been having?
2017-04-16 13:36:22 - warning: AbanteCart core v.1.2.8 Illegal string offset 'limit' in <b>/home/digitalt2016/public_html/cbto.us/storefront/model/catalog/manufacturer.php</b> on line <b>83</b>
http://forum.abantecart.com/index.php/topic,5035.msg22305.html#msg22305
Still getting a error with manufacturer.php and you all said that the code should reset to 0. Still getting error but it doesn't effect the performance of the site.
try to replace file public_html/core/lib/listing.php
with this
https://github.com/abantecart/abantecart-src/blob/a17c139fa510d8bf51b228835bfb664896fc0da4/public_html/core/lib/listing.php