Jump to content

Recommended Posts

Vroeg mij af als iemand deze foutmelding kan toelichten.

 

Ik gebruik prestashop 1.6.1.3,  en op het moment dat ik de analytics module inschakel.

gaat de site offline. 

 

als ik de debug aan zet, krijg ik vervolgens dit te zien:

Fatal error: Call to a member function isRegisteredInHook() on boolean in /customers/b/d/0/httpd.www/modules/ganalytics/ganalytics.php on line 451

 

op line 451 van ganalytics vind ik dit terug:

/**
     * hook home to display generate the product list associated to home featured, news products and best sellers Modules
     */
    public function isModuleEnabled($name)
    {
        if (version_compare(_PS_VERSION_, '1.5', '>='))
            if(Module::isEnabled($name))
            {
                $module = Module::getInstanceByName($name);
                return $module->isRegisteredInHook('home');
            }
            else
                return false;
        else
        {
            $module = Module::getInstanceByName($name);
            return ($module && $module->active === true);
        }
    }

    /**

 

Het zegt mij helemaal niks..  iemand een idee hoe ik dit kan oplossen?

Share this post


Link to post
Share on other sites

Het lijkt erop dat de ganalytics  module is niet correct geïnstalleerd. Probeer het te verwijderen en opnieuw te installeren.

 

It seems the ganalytics module isn't properly installed. Try to uninstall it and install again.

Share this post


Link to post
Share on other sites

OK, so there is a problem with the code. It needs a direct action in your shop.

Share this post


Link to post
Share on other sites

Not really resolved.. i have the line 451 turned out with \\

No error anymore, the site stays online. And Analytics works

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More