Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default 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.

    Code:
    PHP Warning:  Illegal string offset 'versionMajor' in /public_html/admin/includes/classes/VersionServer.php on line 77
    The return is an error string
    Code:
    string(56) "{"error":"Couldn't resolve host 'ping.zen-cart.com'[6]"}"
    instead of the expected array
    Code:
    array(7) { ["versionMajor"]=> string(1) "1"......
    Or is there an off switch I didn't find yet?
    Dave
    Always forward thinking... Lost my mind!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Illegal string offset 'versionMajor'

    Your "off switch" for local/offline development is in /admin/includes/local/skip_version_check.ini, line 2.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Illegal string offset 'versionMajor'

    Quote Originally Posted by DrByte View Post
    Your "off switch" for local/offline development is in /admin/includes/local/skip_version_check.ini, line 2.
    And the file name says it all..

    Thanks..
    Dave
    Always forward thinking... Lost my mind!

 

 

Similar Threads

  1. v151 Illegal string offset 'id' in moneyorder.php
    By d0ugparker in forum General Questions
    Replies: 1
    Last Post: 3 Aug 2017, 05:07 AM
  2. Illegal string offset 'id' in order.php
    By marcopolo in forum General Questions
    Replies: 16
    Last Post: 25 Jul 2015, 04:31 PM
  3. Replies: 4
    Last Post: 12 Nov 2014, 08:42 PM
  4. v153 Illegal string offset 'id' in order.php
    By jeking in forum General Questions
    Replies: 0
    Last Post: 5 Sep 2014, 07:32 PM
  5. v151 PHP Warning: Illegal string offset 'id'
    By Nettric in forum Bug Reports
    Replies: 3
    Last Post: 30 May 2014, 06:53 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR