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

Hello,

 

I don't understand the bug resolved with //

 

Could you explain ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

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