Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
I'm getting the following message when attempting to add a photo to the cart, after updating both backlight and the cart to the lastest versions (1.2 & 4.1).
Unexpected error: Undefined index: products in AjaxController.php on line 136
How to fix?
Thanks,
Frank
Last edited by Frank (2017-07-01 10:08:51)
Offline
DISREGARD....
Solved by clicking "Reset the customer's cart in this browser".
Offline
I'll look into this. Can you provide a link where we can see the error and steps to reproduce the problem?
Offline
I'm glad it's solved, but it still sounds like an error. Can you reply to my comment above?
Offline
Hi Ben,
Sorry for the delay in replying. I don't know if I can reproduce the error but here are the steps, in my case, that produced it the first time.
I followed the directions given to update Backlight to v1.2. Next I followed the directions to upgrade Cart to v4.1. When I tested the cart, it erred. I flushed the cache again and tried a number of things. Finally, I returned to the Cart upgrade instructions and tried clicking the link to reset the customer's cart and the problem resolved. I'd be happy to provide you with backend credentials to my site if you still would like to poke around.
Thanks,
Frank
Offline
Hi Frank, thanks for the steps to reproduce. I'll give that a go. I've looked in the code to see how it may happen, and the scenario isn't apparent from the code. The issue is that the products list doesn't exist, but the code suggests it always exists, and is a list of zero or more items.
Offline
Pages: 1