AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: JerryPF on March 18, 2017, 09:41:40 PM

Title: Illegal string offset 'extensions'
Post by: JerryPF 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.
Title: Re: Illegal string offset 'extensions'
Post by: abantecart 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
Title: Re: Illegal string offset 'extensions'
Post by: abolabo on March 20, 2017, 03:27:25 AM
also check this https://github.com/abantecart/abantecart-src/commit/8faa0df7e488f5ad4dd6835ade2ed865d323b3f4

or just replace your file with this https://raw.githubusercontent.com/abantecart/abantecart-src/8faa0df7e488f5ad4dd6835ade2ed865d323b3f4/public_html/admin/controller/pages/tool/package_installer.php