Mystery block error after upgrading to 5.5
Permalink
In the 'homepage' page type I have:
which when the render() is called generates this error:
"PHP Fatal error: Call to a member function getBlockTypeID() on a non-object in www/test.surefyre.com/updates/concrete5.5.1/concrete/blocks/page_list/controller.php on line 140"
It was always fine in 5.4.x, can anyone shed any light on this?
Cheers
G
<?php $bt = BlockType::getByHandle('page_list'); $bt->controller->num = 4; $bt->controller->orderBy = 'chrono_desc'; $bt->controller->cParentID = 0; $bt->controller->cThis = 0; $bt->controller->paginate = 0; $bt->controller->displayAliases = 1; $bt->controller->ctID = 9; $bt->controller->rss = 1; $bt->controller->rssTitle = 'Warwick Tweetup Newsfeed'; $bt->controller->rssDescription = 'Latest News from Warwick TweetUp'; $bt->controller->truncateSummaries = 1; $bt->controller->truncateChars = 128; $bt->controller->displayFeaturedOnly = 0;
Viewing 15 lines of 18 lines. View entire code block.
which when the render() is called generates this error:
"PHP Fatal error: Call to a member function getBlockTypeID() on a non-object in www/test.surefyre.com/updates/concrete5.5.1/concrete/blocks/page_list/controller.php on line 140"
It was always fine in 5.4.x, can anyone shed any light on this?
Cheers
G
I'm seeing the same issue -- setting
in the Page List block setup generates a Fatal Error. Unfortunately, setting the value to 0 does NOT work for me, as it (correctly) turns off the display of the rss feed icon, but I would like to have it available. Anyone have thoughts on this?
$pl->controller->rss = 1;
in the Page List block setup generates a Fatal Error. Unfortunately, setting the value to 0 does NOT work for me, as it (correctly) turns off the display of the rss feed icon, but I would like to have it available. Anyone have thoughts on this?
I ended up setting '$bt->controller->rss = 0;' which was previously 1 before the upgrade and it's happy. Strangely it still outputs an RSS icon, too.
If anyone has any understanding of what's going on here I'd be interested to hear it. It seems to be working for now so I'll leave it as it is...
G