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-04 02:13:34

tomf
Member
Registered: 2013-07-23
Posts: 7

Something went wrong Unexpected error: Undefined variable:

This error shows up on the bottom of my web page after doing some edits and additions on the Menu Set.

~ Tomf

Something went wrong
Unexpected error: Undefined variable: logged_in in 95-page-1.1.1-1-82-menu_47-83-content-1.2.0-6-13-admin.view.template on line 166
Please report error at http://community.theturninggate.net

Offline

#2 2017-07-04 07:30:00

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

Re: Something went wrong Unexpected error: Undefined variable:

Hi Tomf, can you email me the file 95-page-1.1.1-1-82-menu_47-83-content-1.2.0-6-13-admin.view.template found under backlight/data/designer/cache so that I can look into this?

Offline

#3 2017-07-06 08:34:40

tomf
Member
Registered: 2013-07-23
Posts: 7

Re: Something went wrong Unexpected error: Undefined variable:

Emailed the file.

thanks,


~ Tommy

Offline

#4 2017-07-07 08:21:03

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

Re: Something went wrong Unexpected error: Undefined variable:

Thanks Tommy.  This is an issue with the Okapi Page module.  We'll need to update this.  For my own reference, the fix is to add the $logged_in = ... line in the following in modules/standard-page/dynamic/view/page.php

		$is_private = $album->passwordEnabled();
	}

	$logged_in = isset($logged_in) ? $logged_in : false;
</thp>

<body class="<?php echo $this->getProductSuite(); ?><?php echo $type ? ' type-'.$type : ''; ?><thp>echo $slug ? ' slug-'.$slug : '';</thp><thp>echo $is_private ? ' private-album ' . ($logged_in ? 'logged-in' : 'logged-out') : '';</thp><?php echo $module__ui . $module_crg ?>" data-effect="<?php echo $model->value('page_layout.effect'); ?>" data-layout="<?php echo $model->value('page_layout.columns'); ?> <?php echo $model->value('page_layout.layout'); ?>">

Another fix is to make sure the embedded album is not password protected.  Is it?

Offline

#5 2017-07-08 04:57:41

tomf
Member
Registered: 2013-07-23
Posts: 7

Re: Something went wrong Unexpected error: Undefined variable:

Ah yes. The album set is password protected. I have actually password protected the highest level Album Set only, but not anything underneath it.  Did I do it the wrong way? I set the pw in the Lightroom Album Set.

Thanks,


~ Tommy

Offline

#6 2017-07-08 08:58:47

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

Re: Something went wrong Unexpected error: Undefined variable:

I don't think you did anything wrong.  Embedding password-protected albums is an edge case that probably doesn't work perfectly.

Offline

#7 2017-07-14 10:35:49

tomf
Member
Registered: 2013-07-23
Posts: 7

Re: Something went wrong Unexpected error: Undefined variable:

Thanks for the info and insight. This is not going to be a public site, only for my kids to see their childhood memories, so I'm not too worried about the error.


~ Tommy

Offline

Board footer

Powered by FluxBB