Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2013
    Location
    MN
    Posts
    9
    Plugin Contributions
    0

    Default PHP Warning: Illegal string offset 'id'

    I have searched the forum and am just not finding the needed fix. Zen Cart 1.5.1 and recently needed to upgrade from PHP 5.3.x TO 5.5.12 and am receiving the following PHP errors when :

    Code:
    PHP Warning:  Illegal string offset 'id' in ..\includes\classes\shipping.php on line 32
    PHP Warning:  Illegal string offset 'id' in ..\includes\classes\shipping.php on line 32  //yes, this is the same as the first 
    PHP Warning:  Illegal string offset 'id' in ..\includes\modules\order_total\ot_shipping.php on line 41
    PHP Warning:  Illegal string offset 'id' in ..\estore\includes\modules\order_total\ot_shipping.php on line 41
    This is happening when a user logs in when a virtual item only (software download) is in the cart. In the item setup under, "Product is virtual:" I have, "Yes, skip shipping address" marked AND "Always Free Shipping:" set to "No, Normal Shipping Rules"

    Now, interesting thing is, when I change this to, "No, Shipping address Required"...I ONLY receive the following PHP error:

    Code:
    PHP Warning:  Illegal string offset 'title' in ..\includes\modules\pages\checkout_shipping\header_php.php on line 88
    If I change it back to, "Yes, skip shipping address" I get the original set of errors. I can navigate my store just fine, add/remove products just fine and do just about everything except check out with a virtual product...

    Environment:

    Zen Cart: 1.5.1
    PHP 5.5.12
    Platform: Server 2008 R2, IIS 7.5

    Update:

    I'm also getting the illegal string offset 'id' in many other php files on test orders with regular products as well

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

    Default Re: PHP Warning: Illegal string offset 'id'

    That's because v1.5.1 isn't compatible with your PHP 5.5 version.
    It's a bug only insomuch as v1.5.1 was written before PHP 5.5 ever existed.

    Version compatibility: http://www.zen-cart.com/content.php?...o-run-zen-cart
    About v1.5.3 and PHP 5.4, 5.5, 5.6: http://www.zen-cart.com/showthread.p...HP-5-4-5-5-5-6
    About v1.5.2-beta: http://www.zen-cart.com/showthread.p...ice-for-v1-5-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
    Sep 2013
    Location
    MN
    Posts
    9
    Plugin Contributions
    0

    Default Re: PHP Warning: Illegal string offset 'id'

    My apologies for wasting your time. Newer to ZC and just found these issues are being addressed in the upcoming releases. I did find the Github pulls that address all the files in question. I'll see if I can patch until the next version is released.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: PHP Warning: Illegal string offset 'id'

    Quote Originally Posted by Nettric View Post
    My apologies for wasting your time.
    No harm done.
    Quote Originally Posted by Nettric View Post
    Newer to ZC
    Welcome to the family :)
    Quote Originally Posted by Nettric View Post
    and just found these issues are being addressed in the upcoming releases.
    Thumbs up
    .

    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.

 

 

Similar Threads

  1. Illegal string offset 'id' in order.php
    By marcopolo in forum General Questions
    Replies: 16
    Last Post: 25 Jul 2015, 04:31 PM
  2. Replies: 9
    Last Post: 23 Mar 2015, 08:42 AM
  3. Replies: 4
    Last Post: 12 Nov 2014, 08:42 PM
  4. v151 PHP Warning: Illegal string offset 'r_error' in linkpoint_api.php
    By BGundlach in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 15 Sep 2014, 09:16 PM
  5. Replies: 1
    Last Post: 30 Sep 2013, 07:39 PM

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