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 2018-09-21 13:02:23

ryankenner
Member
Registered: 2018-09-21
Posts: 5

Backlight 2: Shopping Cart Error

I added a product to the shopping cart without a problem.  However when i click on the cart icon and then select view cart, i get the following error message:

Unexpected error: Undefined variable: album in 95-include-2.0.0-1-34-menu_9-admin.view-1.template on line 562

please help

Offline

#2 2018-09-21 13:41:31

ryankenner
Member
Registered: 2018-09-21
Posts: 5

Re: Backlight 2: Shopping Cart Error

.

Last edited by ryankenner (2018-09-21 13:46:38)

Offline

#3 2018-09-21 13:54:35

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Backlight 2: Shopping Cart Error

I can’t offer any specific help, but if you can post a link to a cart enabled album it could help in troubleshooting.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#4 2018-09-21 14:29:09

ryankenner
Member
Registered: 2018-09-21
Posts: 5

Re: Backlight 2: Shopping Cart Error

The system is hosted locally and only has a local IP.... can't link to it. sad

I checked the cart log file and this is the error:

[21-Sep-2018 05:24:20] ERROR: Call to a member function getType() on unknown|#0 /Applications/MAMP/htdocs/backlight/modules/module-designer/application/helpers/CacheHelper.php(62): require_once()#1 /Applications/MAMP/htdocs/backlight/modules/module-designer/application/models/GenericEngine.php(575): CacheHelper::includeCachedFile('95-include-2.0....', Array)#2 /Applications/MAMP/htdocs/backlight/modules/module-designer/application/helpers/EngineFactory.php(174): GenericEngine->renderView('page', Object(EngineFactory))#3 /Applications/MAMP/htdocs/backlight/modules/module-framework/helpers/ViewHelper.php(14): EngineFactory->renderViewForApp('1', 'cart/cart', Array, Array, Array)#4 /Applications/MAMP/htdocs/backlight/modules/module-cart/application/controllers/CartController.php(796): ViewHelper::renderBacklightInclude('cart/cart', Array, '1', Array, Array)#5 /Applications/MAMP/htdocs/backlight/modules/module-cart/application/controllers/CartController.php(35): CartController->renderInclude('cart/cart', Array, '1')#6 /Applications/MAMP/htdocs/backlight/modules/module-framework/controllers/Controller.php(56): CartController->index()#7 /Applications/MAMP/htdocs/backlight/modules/module-framework/models/Dispatchable.php(135): Controller->dispatch(Array)#8 /Applications/MAMP/htdocs/backlight/modules/module-framework/Framework.php(73): Dispatchable->dispatch()#9 /Applications/MAMP/htdocs/backlight/index.php(32): Framework->route()#10 {main}|URL: /backlight/index.php

Offline

#5 2018-09-21 15:04:53

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

Re: Backlight 2: Shopping Cart Error

Can you find the file backlight/data/designer/cache/ 95-include-2.0.0-1-34-menu_9-admin.view-1.template via FTP and email it to me?

If that filename has changed since you first created this thread, then whatever the latest filename in the error is.  Also, *after you've sent it to me*, can you try clearing your template cache (Designe  > Templates > Clear Template Cache) and see if that resolves it?

Offline

#6 2018-09-21 15:51:05

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

Re: Backlight 2: Shopping Cart Error

Hi Ryan, thanks for the file.  Are you logged in as admin and using the Auto Refresh function? (enabled by clicking the refresh icon in the footer).
There's a bug there that I encountered a while ago but had not yet got a chance to look into.  Can you provide the URL of the page you're on when the error occurs, either here or via email?

Offline

#7 2018-09-21 15:51:47

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

Re: Backlight 2: Shopping Cart Error

Also, to make sure this isn't impacting your site users, please try that link in another browser or private window.

Offline

#8 2018-09-21 15:54:04

ryankenner
Member
Registered: 2018-09-21
Posts: 5

Re: Backlight 2: Shopping Cart Error

Disabling Auto Refresh (clicking on the button) worked.  I can now view the cart. smile

THANK YOU!!!!

Offline

Board footer

Powered by FluxBB