Results 1 to 10 of 39

Threaded View

  1. #15
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: PHP 5.4 warnings: Illegal string offset

    Assuming there were no other code change dependencies in play,
    I tested the new code in the two github links posted above on a a ZC 1.51 shop:

    1. RE: https://github.com/zencart/zencart/c...2cb78fc86946c9

    Tested the code changes in twelve files on above github page

    After editing the twelve files, added virtual download products to shopping cart, then clicked "Go to Checkout", then observed the following error:

    https://domainname/shop/index.php?ma...ckout_shipping

    Error in Firefox: "The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete. This problem can sometimes be caused by disabling or refusing to accept cookies."

    I ensured Firefox was not blocking cookies, and indeed, checking out with download products in the cart worked before updating the twelve files. I observe the same result in IE.

    Had no issue checking out with physical products.

    2. In regards to the file update for tpl_checkout_shipping_default.php

    The github change code for the above file shows "$checked = FALSE;" as a pre-existing line of code.

    // set the radio button to be checked if it is the method chosen
    $checked = FALSE;

    however, this line does not already appear in the zc 1.51 stock file.

    And yet github does not show the line of code "$checked = FALSE;" as new
    (not displayed in green with a "+" symbol) indicating it should be added.

    I went ahead added that code line.


    3. Re: https://github.com/zencart/zencart/c...6deb80026d2886

    Employed the code changes in /includes/functions/sessions.php

    Following that, I observed the sessionid (zenid) was no longer appended to the shop URL while navigating through the shop (and user tracking mod logs showed the same).

    Observed no related error or warnings in either the server error log or zc logs.

    Reverting to the stock sessions.php, zenid was again employed.
    Last edited by Woodymon; 14 Nov 2013 at 02:43 PM.

 

 

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. v153 Illegal string offset 'id' in order.php
    By jeking in forum General Questions
    Replies: 0
    Last Post: 5 Sep 2014, 07:32 PM
  4. v151 PHP Warning: Illegal string offset 'id'
    By Nettric in forum Bug Reports
    Replies: 3
    Last Post: 30 May 2014, 06:53 AM
  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