致命错误在OpenCart中调用成员函数isLogged() [英] Fatal error Call to a member function isLogged() on in OpenCart

查看:151
本文介绍了致命错误在OpenCart中调用成员函数isLogged()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将网站从一台托管服务器迁移到另一台托管服务器后,我的管理页面出现以下错误,该页面无法打开.

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

致命错误:在null中调用成员函数isLogged() /webcorp1/www/corpusers/s/a/satvikorganic.com/vqmod/vqcache/vq2-catalog_model_catalog_product.php 在第96行

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

推荐答案

一直在opencart网站上工作,并且遇到了相同的问题,结果我天真地将相同的路径从前端配置文件复制到了admin配置中.php文件.以下变量需要指定admin文件夹,并且不能与前端路径相同:

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_APPLICATION', 'YOURPATH/admin/');

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

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

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

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

这篇关于致命错误在OpenCart中调用成员函数isLogged()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆