Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Illegal string offset 'extensions'  (Read 3581 times)

Offline JerryPF

  • Newbie
  • *
  • Posts: 7
  • Karma: +2/-0
    • View Profile
Illegal string offset 'extensions'
« on: March 18, 2017, 09:41:40 PM »
Hi there,

I'm using AbanteCart 1.2.9 and PHP 7.1.3 on a Linux server.

I haven't installed any extension.
When I try to install an extension, using "Install extension", extension upload, after I select the local .tar.gz file and press "Continue", all I see is a blank screen, instead of the extension agreement text.

The AbanteCart System Error log is showing the below lines:
warning: AbanteCart core v.1.2.9 Illegal string offset 'extensions' in <b>/var/www/html/AbanteCart-129/admin/controller/pages/tool/package_installer.php</b> on line <b>540</b>

AbanteCart core v.1.2.9 Cannot use string offset as an array in <b>/var/www/html/AbanteCart-129/admin/controller/pages/tool/package_installer.php</b> on line <b>540</b>

The HTTP error log shows no errors about this at all.

I've searched this forum for solutions but could not find anything about this.

Has anyone had this error before, and found a solution to this problem?
Please let me know.

Thanks for your help.

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4359
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Illegal string offset 'extensions'
« Reply #1 on: March 19, 2017, 01:56:00 PM »
What you posted is a warning and should not cause your issue, but you can try the fix here:

https://github.com/abantecart/abantecart-src/commit/e70cf663ad489dcc6fb59462411f4f1e86714b6e

If this does not help, check apache log ("The HTTP error log shows no errors about this at all.") Is this apache log you checked?

Blank page usually indicates PHP crash. You can try to enable PHP error to be shown to the screen:

Code: [Select]
In php.ini

error_reporting = E_ALL
display_errors = 1
display_startup_errors = 1
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod