Fatal error Call to a member function isLogged() on in OpenCart

与世无争的帅哥 提交于 2019-12-11 14:51:50

问题


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


来源:https://stackoverflow.com/questions/33628307/fatal-error-call-to-a-member-function-islogged-on-in-opencart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!