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 2016-06-13 15:33:44

gh69
Member
Registered: 2014-08-18
Posts: 26

something went wrong message

Hallo me again,
when i am logged in in Backlight this Message appears under my Site

Something went wrong

Unexpected error: Undefined index: type in Album.php on line 1064

Last edited by gh69 (2016-06-13 15:54:49)

Offline

#2 2016-06-13 16:13:34

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

Re: something went wrong message

That's a little embarrassing.  Our code has a fix for this on line 1065 of Album.php.  Line 1064 should have been deleted.
We'll remove the old line in a future update.  If you're happy to edit Album.php to fix this, do so by removing the first of these two lines:

		return $this->data[Album::$FIELD_TYPE];
		return $this->getTemplateSetting(Album::$FIELD_TYPE);

They are lines 1064 and 1065 of backlight/publisher/application/models/Album.php

Offline

#3 2016-06-13 18:30:15

tonesshots
Member
Registered: 2012-11-22
Posts: 43

Re: something went wrong message

Ben. I read this and thought I would get ahead a bit and so I made the change which actually broke my site. I could not see any of my albums so I restored line 1064 and it began to work normally again. Hope this is helpful input. Tony P

Last edited by tonesshots (2016-06-13 18:30:38)

Offline

#4 2016-06-13 18:30:32

gh69
Member
Registered: 2014-08-18
Posts: 26

Re: something went wrong message

thank you, that helped

Offline

#5 2016-06-13 19:12:49

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

Re: something went wrong message

My apologies.  The correct line should be this:

		return $this->getValue(Album::$FIELD_TYPE);

The full chunk of code at that point should read:

	function getType()
	{
		return $this->getValue(Album::$FIELD_TYPE);
	}

Offline

#6 2016-06-13 19:52:59

tonesshots
Member
Registered: 2012-11-22
Posts: 43

Re: something went wrong message

For info I have now also made this change and my site appears to continue working fine as before.
Tony P

Offline

Board footer

Powered by FluxBB