Error on Concrete CMS 9.1.3
Permalink Browser Info Environment
After updateing to CMS 9.1.3, we get the following error:
/concrete/src/Page/Controller/DashboardPageController.php
{
return 'dashboard/navigation/breadcrumb';
}
/**
* {@inheritdoc}
*
* @see \Concrete\Core\Controller\AbstractController::on_before_render()
*/
public function on_before_render()
{
$pageTitle = $this->get('pageTitle');
if (!$pageTitle) {
$this->set('pageTitle', t($this->c->getCollectionName()));
}
$breadcrumb = $this->getBreadcrumb();
if (!$breadcrumb) {
$breadcrumb = $this->createBreadcrumb();
}
$_breadcrumb = $this->elementManager->get($this->getBreadcrumbElement(), [
'breadcrumb' => $breadcrumb
]);
$dbConfig = $this->app->make('config/database');
$this->set('showPrivacyPolicyNotice', !$dbConfig->get('app.privacy_policy_accepted'));
$this->set('token', $this->token);
$this->set('error', $this->error);
$this->set('_breadcrumb', $_breadcrumb);
}
/**
* Get the EntityManager instance (available after the on_start method has been called).
*
* @return \Doctrine\ORM\EntityManagerInterface|null
*/
public function getEntityManager()
{
return $this->entityManager;
}
Arguments
"Call to a member function get() on null"
/concrete/src/Page/Controller/DashboardPageController.php
{
return 'dashboard/navigation/breadcrumb';
}
/**
* {@inheritdoc}
*
* @see \Concrete\Core\Controller\AbstractController::on_before_render()
*/
public function on_before_render()
{
$pageTitle = $this->get('pageTitle');
if (!$pageTitle) {
$this->set('pageTitle', t($this->c->getCollectionName()));
}
$breadcrumb = $this->getBreadcrumb();
if (!$breadcrumb) {
$breadcrumb = $this->createBreadcrumb();
}
$_breadcrumb = $this->elementManager->get($this->getBreadcrumbElement(), [
'breadcrumb' => $breadcrumb
]);
$dbConfig = $this->app->make('config/database');
$this->set('showPrivacyPolicyNotice', !$dbConfig->get('app.privacy_policy_accepted'));
$this->set('token', $this->token);
$this->set('error', $this->error);
$this->set('_breadcrumb', $_breadcrumb);
}
/**
* Get the EntityManager instance (available after the on_start method has been called).
*
* @return \Doctrine\ORM\EntityManagerInterface|null
*/
public function getEntityManager()
{
return $this->entityManager;
}
Arguments
"Call to a member function get() on null"
Type: | Ticket |
---|---|
Status: | In Progress |
Ah, hold your horses. There is more to it, since a whole lot has changed and therefore searching blocks isn't working. I will have to dive in deeper at a later time, thought it would be just fixing this issue but unfortunately it was to optimistic.
Kind regards
Ramon
Kind regards
Ramon
Ok, thanks for your quick response and for looking at it.
Should be fixed with version 0.9.3.
Expect this to happen more often (in other Add-Ons) with version 9 of ConcreteCMS... Easy fix fortunately!
Kind regards
Ramon