opencart - Notice: Error: Could not load language module/magnorcms! in //system/library/language.php on line 39 -
i have installed opencart theme , can watch here:
taswikdz.com
but have error in header
notice: error: not load language module/magnorcms! in //system/library/language.php on line 39
files here:
module/magnorcms.php
<?php class controllermodulemagnorcms extends controller { protected function index($setting) { $this->language->load('module/magnorcms'); $this->data['heading_title'] = sprintf($this->language->get('heading_title'), $this->config->get('config_name')); $get_lan_id = $this->config->get('config_language_id'); $this->data['magnorcms_header'] = html_entity_decode(isset($setting['headertitle'][$get_lan_id]) ? $setting['headertitle'][$get_lan_id] : '' , ent_quotes, 'utf-8'); $this->data['message'] = html_entity_decode(isset($setting['description'][$get_lan_id]) ? $setting['description'][$get_lan_id] : '' , ent_quotes, 'utf-8'); if (file_exists(dir_template . $this->config->get('config_template') . '/template/module/magnorcms.tpl')) { $this->template = $this->config->get('config_template') . '/template/module/magnorcms.tpl'; } else { $this->template = 'default/template/module/magnorcms.tpl'; } $this->render(); } } ?>
library/language.php
<?php class language { private $default = 'english'; private $directory; private $data = array(); public function __construct($directory) { $this->directory = $directory; } public function get($key) { return (isset($this->data[$key]) ? $this->data[$key] : $key); } public function load($filename) { $file = dir_language . $this->directory . '/' . $filename . '.php'; if (file_exists($file)) { $_ = array(); require($file); $this->data = array_merge($this->data, $_); return $this->data; } $file = dir_language . $this->default . '/' . $filename . '.php'; if (file_exists($file)) { $_ = array(); require($file); $this->data = array_merge($this->data, $_); return $this->data; } else { trigger_error('error: not load language ' . $filename . '!'); // exit(); } } } ?>
here, have add custom module in store. so, language file missing module in site source. not available custom module language file in default opencart source.
most probable reason can missing 1 of following file in source:
catalog/language/your-language-folder/module/magnorcms.php
you need add magnorcms.php
file. and, try.
Comments
Post a Comment