Community @ The Turning Gate

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.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2017-07-01 10:07:38

Frank
Member
Registered: 2016-05-16
Posts: 41

Backlight v1.2: undefined index error

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

#2 2017-07-01 10:15:34

Frank
Member
Registered: 2016-05-16
Posts: 41

Re: Backlight v1.2: undefined index error

DISREGARD....

Solved by clicking "Reset the customer's cart in this browser".

Offline

#3 2017-07-01 10:22:28

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Backlight v1.2: undefined index error

I'll look into this. Can you provide a link where we can see the error and steps to reproduce the problem?

Offline

#4 2017-07-01 10:23:15

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Backlight v1.2: undefined index error

I'm glad it's solved, but it still sounds like an error. Can you reply to my comment above?

Offline

#5 2017-07-02 06:03:58

Frank
Member
Registered: 2016-05-16
Posts: 41

Re: Backlight v1.2: undefined index error

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

#6 2017-07-02 07:50:08

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Backlight v1.2: undefined index error

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

Board footer

Powered by FluxBB