Error Call to a member function getPageTemplateID() on null
Permalink Browser Info Environment
When I try to install a theme with content I receive error message:
Clean c5 without content, and also with content - problem is the same.
Call to a member function getPageTemplateID() on null
/home2/btcmarke/public_html/cu/concrete/src/Page/Type/Type.php
774. $ptAllowedPageTemplates,
$ptIsInternal,
$ptLaunchInComposer,
$ptDisplayOrder,
$ptIsFrequentlyAdded,
$siteTypeID,
$pkgID,
)
);
$ptID = $db->Insert_ID();
if ($ptAllowedPageTemplates != 'A') {
foreach ($templates as $pt) {
if (!is_object($pt)){
$pt = PageTemplate::getByHandle($pt);
}
$db->Execute(
'insert into PageTypePageTemplates (ptID, pTemplateID) values (?, ?)',
array(
$ptID,
$pt->getPageTemplateID(),
)
);
}
}
Clean c5 without content, and also with content - problem is the same.
Call to a member function getPageTemplateID() on null
/home2/btcmarke/public_html/cu/concrete/src/Page/Type/Type.php
774. $ptAllowedPageTemplates,
$ptIsInternal,
$ptLaunchInComposer,
$ptDisplayOrder,
$ptIsFrequentlyAdded,
$siteTypeID,
$pkgID,
)
);
$ptID = $db->Insert_ID();
if ($ptAllowedPageTemplates != 'A') {
foreach ($templates as $pt) {
if (!is_object($pt)){
$pt = PageTemplate::getByHandle($pt);
}
$db->Execute(
'insert into PageTypePageTemplates (ptID, pTemplateID) values (?, ?)',
array(
$ptID,
$pt->getPageTemplateID(),
)
);
}
}
Type: | Ticket |
---|---|
Status: | Archived |
The theme should be installed with core sample contents. So plz first install a fresh instance of c5 in full content, then install the theme.
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.