Fatal error Call to a member function isLogged() o

2019-09-02 23:59发布

问题:

After migrating my website from one hosting server to another I am getting the following error in my admin page, which does not open.

Fatal error: Call to a member function isLogged() on null in /webcorp1/www/corpusers/s/a/satvikorganic.com/vqmod/vqcache/vq2-catalog_model_catalog_product.php on line 96

回答1:

Have been working on an opencart site and have had the same issue, turns out I had naively copied the same paths from my front end config file into the admin config.php file. The following variables need to have the admin folder specified and cant be the same as the front end paths:

define('DIR_APPLICATION', 'YOURPATH/admin/');

define('DIR_LANGUAGE', 'YOURPATH/admin/language/');

define('DIR_TEMPLATE', 'YOURPATH/admin/view/template/');



回答2:

  1. Make sure that both config files (admin and root) are updated with the server path
  2. Rerun your vQmod install script http://domain.com/vqmod/install/
  3. Clear vQmod cache
  4. Clear Opencart system cache