Community Store installation

Permalink
I have been trying to install the Community Store add on to a website but I get an error relating to pageTemplateID() when installing.

I can see the Store in the dashboard following the installation error but the installation must be only partial as clicking on it brings up an error that the table CommunityStoreOrderSearchIndexAttributes does not exist.

I updated my site to v8.5.4 (from v8.4.3) and also updated php to v7.1 prior to installing.

Does anyone have any idea what the error may be relating to and how I might fix it? HAs anyone else had trouble installing community store on v8.5.4?

Thanks for your help.

 
mesuva replied on at Permalink Best Answer Reply
mesuva
This sounds like an issue raised once when it's installed into a site that doesn't have a 'full' page template in place. I don't think it was ever addressed as most sites have one in place.

Do you have a page _template_ on your site with the handle of 'full'?
If not, I'd try creating one, uninstalling community store and trying the installing again.
phowie74 replied on at Permalink Reply
Well that was straight forward!

Thanks so much for your swift response - I was using a custom theme which did not have a Full template. I have added a Full template and it worked perfectly first time!

Really looking forward to trying the store out so thanks so much for your help.

Thanks
Paul
mesuva replied on at Permalink Reply
mesuva
Great, I'll flag this on github as an issue for me to remember to look into at some point.
(maybe a check before install)
phowie74 replied on at Permalink Reply
I'm sure it is rare for people to remove/rename the Full template so even a mention in the documentation Installation requirements may well cover it.

Thanks again.
linuxoid replied on at Permalink Reply
linuxoid
I also had this problem before with my packages. So I started doing this:
private function installPageTypes($pkg)
{
    $page_type = PageType::getByHandle('classified');
    PageTemplate::getByHandle('full') ? $pt_full = PageTemplate::getByHandle('full') : $pt_full = PageTemplate::add('full', 'Full', 'full.png');
    PageTemplate::getByHandle('right_sidebar') ? $pt_right_sidebar = PageTemplate::getByHandle('right_sidebar') : $pt_right_sidebar = PageTemplate::add('right_sidebar', t('Right Sidebar'), 'right_sidebar.png');
    if (!is_object($page_type)) {
        $templates = array(
            $pt_full,
            $pt_right_sidebar,
        );
        PageType::add(
            array(
                'handle' => 'classified',
                'name' => t('Classified Page'),
                'defaultTemplate' => $pt_full,