Error on Concrete CMS 9.1.3
Permalink Browser Info Environment
After updateing to CMS 9.1.3, we get the following error:
/webdata/ecc-hsk/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"
Can you provide a bugfix on this?
/webdata/ecc-hsk/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"
Can you provide a bugfix on this?
Type: | Pre-Sale |
---|---|
Status: | Resolved |
Thanks alot!
When filtering without «trash» i get this error ...
Doctrine \ DBAL \ Exception \ InvalidFieldNameException
An exception occurred while executing 'SELECT p.cID FROM Pages p LEFT JOIN PageSearchIndex psi ON p.cID = psi.cID LEFT JOIN PageTypes pt ON p.ptID = pt.ptID INNER JOIN Collections c ON p.cID = c.cID INNER JOIN CollectionVersions cv ON p.cID = cv.cID LEFT JOIN CollectionSearchIndexAttributes csi ON c.cID = csi.cID WHERE (p.cID IN(2488,2200,886,550,2412,2042,2301,2303,2302,2195,2018,1678,1187,2175,1688,2181,2899,2015,2637,2773,1941,2429,2434,2769,2778,2929)) AND ((pp.cPath NOT LIKE "%/!trash%" OR pp.cPath IS NULL)) AND (p.cPointerID < 1) AND (p.cIsTemplate = 0) AND (cv.cvID = (select max(cvID) from CollectionVersions where cID = cv.cID)) ORDER BY p.cDisplayOrder asc LIMIT 10': SQLSTATE[42S22]: Column not found: 1054 Unknown column 'pp.cPath' in 'where clause'
When filtering without «trash» i get this error ...
Doctrine \ DBAL \ Exception \ InvalidFieldNameException
An exception occurred while executing 'SELECT p.cID FROM Pages p LEFT JOIN PageSearchIndex psi ON p.cID = psi.cID LEFT JOIN PageTypes pt ON p.ptID = pt.ptID INNER JOIN Collections c ON p.cID = c.cID INNER JOIN CollectionVersions cv ON p.cID = cv.cID LEFT JOIN CollectionSearchIndexAttributes csi ON c.cID = csi.cID WHERE (p.cID IN(2488,2200,886,550,2412,2042,2301,2303,2302,2195,2018,1678,1187,2175,1688,2181,2899,2015,2637,2773,1941,2429,2434,2769,2778,2929)) AND ((pp.cPath NOT LIKE "%/!trash%" OR pp.cPath IS NULL)) AND (p.cPointerID < 1) AND (p.cIsTemplate = 0) AND (cv.cvID = (select max(cvID) from CollectionVersions where cID = cv.cID)) ORDER BY p.cDisplayOrder asc LIMIT 10': SQLSTATE[42S22]: Column not found: 1054 Unknown column 'pp.cPath' in 'where clause'
Hi there,
This is now fixed in version 0.9.7 and backwards compatible with ConcreteCMS version 8 and below too. Apparently they made a change in version 9, which broke this part...
Kind regards
Ramon
This is now fixed in version 0.9.7 and backwards compatible with ConcreteCMS version 8 and below too. Apparently they made a change in version 9, which broke this part...
Kind regards
Ramon
Thanks alot!
This should now be fixed. Please use version 0.9.6 to have this working on version 9!
Kind regards
Ramon