I have a group of students that have created a site and suddenly the home page broke down. It starts to render the page but halts without any message what so ever. I can access the login page dashboard etc, but when on any page that include the area it breaks the page and no admin bar shows at the top of the page. i've used Concrete5 for several years but never had this problem before. I've tried to bug-search and have currently found out that it looks like the page bails out when trying to render an autonav in a global header. I'm not sure if this is related to some bug reports in this forums, naming that global areas can cause problems if they have the same name in one template as a non-global template in another, but afaik they only used the default theme on their site. I'll try to dig deeper asap but I'm wondering if it is possible to clear all blocks from an area via db calls. 'cause if I comment out the area->display the page returns.
Any suggestions welcome!
There is some issues with the blocks. They show up sometimes, and sometimes not...
I logged the number and type of blocks in each area and found that one of the global areas had three blocks one content and two nivo-sliders. But nothing in that area showed up. I then removed the nivo-slider blocks by deinstalling the nivo-slider add-on. That made the page render in total again, but when in to some every second mode.
Every second time I reloaded the page it showed different content. I then removed every block that I could. Reloaded, removed, reloaded, removed, until nothing more showed up.
Then I finally started to add back some content. But when adding back content to one area a navigation (autonav) showed up in a another global area. I then tried to edit that autonav but gets "Fatal error: Call to a member function setBlockAreaObject() on a non-object in .../concrete/tools/edit_block_popup.php on line 15".
I then added a log line between the creation and displaying of the area:
$areaHeaderNav=new GlobalArea('Header Nav');Log::addEntry("Blocks in header nav: ".$areaHeaderNav->getTotalBlocksInArea($c));$areaHeaderNav->display($c);
If I reload my page the log says there is zero (0!) blocks in the area but when I display the area an auto-nav still shows up!
If I the remove the auto-nav it sometimes get temporarily removed (If I edit the page it usually shows up again at least after adding a new block anywhere on the page)
If I go into dashboard/blocks/stacks and look at the header nav stack it is empty.
My guess is that this might be the global / local area with same name problem. As I can see that my students have some other themes installed. (They are now using the greek yoghurt theme.)
To be continued...
Code
Post Reply
Delete Post
You are allowed to delete your post for 5 minutes after it's posted.
This website stores cookies on your computer. These cookies are used to improve
your website experience and provide more personalized services to you, both on this website and through
other media. To find out more about the cookies we use, see our Privacy Policy.
There is some issues with the blocks. They show up sometimes, and sometimes not...
I logged the number and type of blocks in each area and found that one of the global areas had three blocks one content and two nivo-sliders. But nothing in that area showed up. I then removed the nivo-slider blocks by deinstalling the nivo-slider add-on. That made the page render in total again, but when in to some every second mode.
Every second time I reloaded the page it showed different content. I then removed every block that I could. Reloaded, removed, reloaded, removed, until nothing more showed up.
Then I finally started to add back some content. But when adding back content to one area a navigation (autonav) showed up in a another global area. I then tried to edit that autonav but gets "Fatal error: Call to a member function setBlockAreaObject() on a non-object in .../concrete/tools/edit_block_popup.php on line 15".
I then added a log line between the creation and displaying of the area:
If I reload my page the log says there is zero (0!) blocks in the area but when I display the area an auto-nav still shows up!
If I the remove the auto-nav it sometimes get temporarily removed (If I edit the page it usually shows up again at least after adding a new block anywhere on the page)
If I go into dashboard/blocks/stacks and look at the header nav stack it is empty.
My guess is that this might be the global / local area with same name problem. As I can see that my students have some other themes installed. (They are now using the greek yoghurt theme.)
To be continued...