Thank you.
Thanks,
Ray
So running Zen Cart v1.5.1, PHP 5.4
I made all of these changes and initially orders were going to a blank page upon confirmation.. I checked the error logs and I got errors about missing columns.. So I removed all the modified the blocks in the /includes/classes/order.php file which referred to these missing columns..
After that no more PHP 5.4 errors..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
DrByte
I am trying to get the posted fixes on this thread to work on a 1.5.1 cart with php 5.4. The errors still persist. I was going back over the files I worked on comparing to the posted fixes to see if I made a mistake. Looking at the order.php file and comparing to the github link
https://github.com/zencart/zencart/c...2cb78fc86946c9
and also this thread
http://www.zen-cart.com/showthread.p...ng-offset-cost
I noticed a difference in line 368 + on github
and thread 210291PHP Code:
'shipping_cost' => isset($_SESSION['shipping']['cost']) ? $_SESSION['shipping']['cost'] : 0,
which would be correct?PHP Code:
'shipping_cost' => (isset($_SESSION['shipping']['cost']) ? $_SESSION['shipping']['cost'] : 0),
Use the one on github; the one from the thread contains unnecessary parentheses.
Thanks for that.
I started from the beginning and uploaded just the patched /includes/classes/order.php file. The error message for the order.php file is gone now but was still getting
Warning: Illegal string offset 'id' in /home1/xxx/public_html/includes/modules/order_total/ot_shipping.php on line 41
Warning: Illegal string offset 'id' in /home1/xxx/public_html/includes/classes/shipping.php on line 32
(both of the above are unmodified files)
next I applied the patch to /includes/modules/order_total/ot_shipping.php on line 77
That left me with these latest errors
Warning: Illegal string offset 'id' in /home1/xxx/public_html/includes/modules/order_total/ot_shipping.php on line 41
Warning: Illegal string offset 'id' in /home1/xxx/public_html/includes/modules/order_total/ot_shipping.php on line 77
Warning: Illegal string offset 'id' in /home1/xxx/public_html/includes/classes/shipping.php on line 32
I went ahead with the patches for
/includes/modules/pages/checkout_shipping/header_php.php, starting around line 70:
/includes/modules/pages/checkout_payment/header_php.php (line 36):
/includes/modules/pages/checkout_confirmation/header_php.php (line 43):
didn't help. still getting the latest errors.
Because you didn't include the /includes/classes/order.php in your patches I tried restoring the order.php file to original and that brought back the orders error again. I put the patched file back again and am back to the latest 3 errors.
any ideas?
I just noticed this error today too, does anyone know if this affects whether or not a customer can checkout, I just now noticed it for the first time this morning.
I have this error;
3-Dec-2015 13:04:29 Europe/Zurich] PHP Warning: Illegal string offset 'id' in ....../catalog/includes/modules/payment/paypalwpp.php on line 200.
Showed up 4 times starting at 12,00 and so far the error shown is the last one.
Strange thing is nobody has used Paypal so far today on my site so what is triggering paypalwpp.php?
No Paypal error messages.
I am using v1.5.1 with the classic template
Anybody have an idea could be causing this?
Perhaps they "started" checkout but didn't complete ... hence no evidence of completing purchases yet.
Yes. ZC v1.5.1 is not compatible with PHP 5.4, and one of the symptoms of that is about 50 things that can trigger "Illegal string offset" errors.
Ref: https://www.zen-cart.com/content.php...o-run-zen-cart
You need to upgrade.
.
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.
Bookmarks