0

我已经在我的购物车中安装了这个模块([ http://www.opencart.com/index.php?route=extension/extension/info&extension_id=11671][1])但是当我尝试编辑它输出的博客模块时我这些错误任何人都可以帮助我解决这个问题。谢谢

Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 146Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 148Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 154Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 160Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 166Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 167Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 169Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 202Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 204Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 206Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 207Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 208Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 209Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 210Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 211Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 213Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 214Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 219Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 227Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 242Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 243Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 244Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 245Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 246Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 265Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 267Notice: Indirect modification of overloaded property ControllerModuleBlog::$data has no effect in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 268
Fatal error: Call to undefined method ControllerModuleBlog::render() in C:\xampp\htdocs\chip\admin\controller\module\blog.php on line 276
4

1 回答 1

9

最后我找到了解决方案,希望它对我使用 2.0.0.0 模块仅支持 1.5.6.4 的人有所帮助

而且,如果您想使用任何模块或 1.5.6.4 版本的这个模块,那么您必须在模块文件中进行更改

eg. 
    $this->data['insert'] =
into

    $data['insert'] =

-------------------------------------------------------
    $this->language->load('module/blog'); 

 into

    $this->load->language('module/blog');

-------------------------------------------------------------
$this->template = 'module/blog/list.tpl';
        $this->children = array(
            'common/header',
            'common/footer'
        );

        $this->response->setOutput($this->render());

into

$data['header'] = $this->load->controller('common/header');
        $data['column_left'] = $this->load->controller('common/column_left');
        $data['footer'] = $this->load->controller('common/footer');


        $this->response->setOutput($this->load->view('module/blog/list.tpl', $data));
于 2014-10-11T07:48:36.120 回答