Author Topic: error 500 after updating  (Read 2800 times)

Offline fathira

  • Newbie
  • *
  • Posts: 27
  • Karma: +3/-1
    • View Profile
error 500 after updating
« 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>



Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1783
  • Karma: +248/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: error 500 after updating
« Reply #1 on: April 03, 2017, 06:21:13 AM »
it's a strange error. Looks like your php working in the strict mode...

Can you replace your file with attached and check?

“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline fathira

  • Newbie
  • *
  • Posts: 27
  • Karma: +3/-1
    • View Profile
Re: error 500 after updating
« Reply #2 on: April 03, 2017, 10:38:23 AM »
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

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1783
  • Karma: +248/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: error 500 after updating
« Reply #3 on: April 03, 2017, 11:45:31 AM »
mm.. you can try to replace
Code: [Select]
$data['start'] = (int)$data['start'];with this
Code: [Select]
$data['start'] = !isset($data['start']) ? 0 : (int)$data['start'];in line 54
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline fathira

  • Newbie
  • *
  • Posts: 27
  • Karma: +3/-1
    • View Profile
Re: error 500 after updating
« Reply #4 on: April 05, 2017, 07:54:44 AM »
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

Offline digitalt

  • Full Member
  • ***
  • Posts: 116
  • Karma: +20/-0
    • View Profile
Re: error 500 after updating
« Reply #5 on: April 16, 2017, 09:37:27 AM »
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.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1783
  • Karma: +248/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: error 500 after updating
« Reply #6 on: April 18, 2017, 02:13:04 AM »
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
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod