upgrade to 8.1 and now get a rescanAreaPermissionsChain()

Permalink
My C5 8.1 site runs fine on the front end but when I log in and try to create a new page or adjust the attributes of an existing page I get an error

"Call to a member function rescanAreaPermissionsChain() on null"

I've seen that the code is reffering to global areas...

And the debug is pointing to this script as the issue

public_html/updates/concrete5-8.1.0/concrete/src/Area/GlobalArea.php

* @return Area
*/
public function create($c, $arHandle)
{
$db = Loader::db();
Stack::getOrCreateGlobalArea($arHandle);
$db->Replace('Areas', array('cID' => $c->getCollectionID(), 'arHandle' => $arHandle, 'arIsGlobal' => 1), array('arHandle', 'cID'), true);
$this->refreshCache($c);
$area = self::get($c, $arHandle);
$area->rescanAreaPermissionsChain();

return $area;
}

/**
* @return string
*/
public function getAreaDisplayName()
{
return t('Sitewide %s', parent::getAreaDisplayName());

I think its my global areas... I need to make a call to roll the site back in the next couple of days any thoughts

Thanks

Rob

bitpacket
 
bitpacket replied on at Permalink Reply
bitpacket
Okay

I just did a test and removed the global areas as well as content blocks display

ie: comment out $a->display($c);

and the template works...

are their any changes in the way w should be setting up custom templates for C8?
suitosha replied on at Permalink Reply
Hello ,
I also encountered a similar problem.

I checked mysql table 'Areas' , then discovered that the key is not set.

I set key again referring to what is working normally , it worked.

Since I was migrating databases several times before the problem occurred, the detailed cause is unknown, but it may be that keys may be removed when I migrate databases.

I hope it will be a hint for your problem solving.