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
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
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
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
thank you, that helped
Offline
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
For info I have now also made this change and my site appears to continue working fine as before.
Tony P
Offline
Pages: 1