Totally Zenned
- Join Date:
- Dec 2007
- Location:
- Payson, AZ
- Posts:
- 1,075
- Plugin Contributions:
- 7
When offline: Illegal string offset 'versionMajor'
ZC1.5.5f new install development
xampp
- Apache 2.4.25
- PHP 7.1.1
- MariaDB 10.1.21
More of a annoyance, then a bug.. If you're in development or for some reason zen-cart is not pingable, $newVersionInfo returns a string and not an array! The results is error logs with php warnings of Illegal string offset.
PHP Warning: Illegal string offset 'versionMajor' in /public_html/admin/includes/classes/VersionServer.php on line 77
The return is an error string string(56) "{"error":"Couldn't resolve host 'ping.zen-cart.com'[6]"}" instead of the expected array ```
array(7) { ["versionMajor"]=> string(1) "1"......
Or is there an off switch I didn't find yet?
Dave
Always forward thinking... Lost my mind!