Opencart致命错误:致电会员

时间:2015-02-17 09:30:33

标签: fatal-error

我有一个问题,我几天都无法解决。我正在尝试使用opencart 1.5.6.1从一台服务器迁移到另一台服务器,并且在尝试进入管理员时总是遇到同样的错误,frontpage运行良好..

  

致命错误:在第50行的...... / public_html / catalog / controller / common / header.php中的非对象上调用成员函数getFirstName()

header.php第50行

$this->data['text_logged'] = sprintf($this->language->get('text_logged'), $this->url->link('account/account', '', 'SSL'), $this->customer->getFirstName(), $this->url->link('account/logout', '', 'SSL'));

我已尝试过的内容:  从服务器到服务器重复文件几次  rewrittn admin / config.php和config.php几次

在标题php中。第50行将$this->customer->getFirstName()更改为$this->customer->getFirstName() 修改了config.php的用户权限... 什么都没有帮助,我仍然得到同样的错误。 请帮忙 ! :)

1 个答案:

答案 0 :(得分:-1)

我不知道怎么做var_dump($ this-> customer):)。 我不明白为什么同一个网站在一台服务器上完美地工作,但当我用filezilla将其所有内容复制到另一台服务器时,编辑config.php文件,导入数据库,首页工作正常,但管理员没有我总是得到同样的错误。也许我在搬到另一台服务器时做错了什么?