php - Opencart frond-end works well but admin returns blank page -
i confused opencart website, migrated website ftp server localhost using mamp couldn't work since /admin returns me black page. have checked php logs:
[23-jul-2015 12:48:16 europe/paris] php notice: undefined index: in /applications/mamp/htdocs/uta/admin/index.php on line 151 [23-jul-2015 12:48:16 europe/paris] php notice: undefined index: in /applications/mamp/htdocs/uta/admin/index.php on line 152 [23-jul-2015 12:48:16 europe/paris] php notice: undefined index: in /applications/mamp/htdocs/uta/admin/index.php on line 156 [23-jul-2015 12:48:16 europe/paris] php notice: undefined index: in /applications/mamp/htdocs/uta/admin/index.php on line 157 [23-jul-2015 12:48:16 europe/paris] php notice: undefined index: in /applications/mamp/htdocs/uta/system/library/translation.php on line 371 [23-jul-2015 12:48:16 europe/paris] php notice: undefined index: in /applications/mamp/htdocs/uta/system/library/translation.php on line 371 [23-jul-2015 12:48:16 europe/paris] php notice: undefined index: in /applications/mamp/htdocs/uta/system/library/translation.php on line 371 [23-jul-2015 12:48:16 europe/paris] php notice: undefined index: in /applications/mamp/htdocs/uta/system/library/translation.php on line 371
$config->set('config_language_id', $languages[$code]['language_id']); $config->set('config_admin_language', $languages[$code]['code']); $config->set('config_language_default', $languages['fr']['language_id']); // language $language = new language($languages[$config->get('config_admin_language')] ['directory']); $language->load($languages[$config->get('config_admin_language')]['filename']); $registry->set('language', $language);
private function loadfile($language_id, $filename) { $code = $this->languages[$language_id]['code']; $file = $this->lang_root . $code . '/' . $filename . $this->file_ext; if (file_exists($file)) { $_lang = array(); include $file; $this->translations[$filename][$language_id] = $_lang; } else { $this->translations[$filename][$language_id] = array(); } }
while pretty sure 2 config.php right configured, if not right, php log return me errors assume.
so there can give me hint notice means? , how /admin works well. thank in advance.
error_log(var_export($languages, true)) shows me:
array ( 'en' => array ( 'language_id' => '1', 'name' => 'english', 'code' => 'en', 'locale' => 'en_us.utf-8,en_us,en-gb,english', 'image' => 'gb.png', 'directory' => 'english', 'filename' => 'startup', 'sort_order' => '1', 'status' => '1', ), 'fr' => array ( 'language_id' => '2', 'name' => 'français', 'code' => 'fr', 'locale' => 'fr_ca.utf-8,fr_fr.utf-8,fr_ca,fr_fr,fr-fr,french', 'image' => 'fr.png', 'directory' => 'french', 'filename' => 'startup', 'sort_order' => '0', 'status' => '1', ), 'ru' => array ( 'language_id' => '3', 'name' => 'russian', 'code' => 'ru', 'locale' => 'ru,ru_ru,ru_ru.utf-8', 'image' => 'ru.png', 'directory' => 'russian', 'filename' => 'startup', 'sort_order' => '2', 'status' => '1', ), )
error_log(var_export($this->languages, true)) shows me:
array ( 1 => array ( 'code' => 'en', 'name' => 'english', 'img' => 'gb.png', 'id' => '1', ), 2 => array ( 'code' => 'fr', 'name' => 'français', 'img' => 'fr.png', 'id' => '2', ), 3 => array ( 'code' => 'ru', 'name' => 'russian', 'img' => 'ru.png', 'id' => '3', ), )
finally solved problem, seems due cookie , session problems.
Comments
Post a Comment