Hi,
I've recently been seeing this issue when trying to access my website. I'm using Opencart 1.5.6.4.
"The page you requested cannot be found". (Please see attachment)
Unfortunately, this issue is intermittent and it seems to happen for no apparent reason.
When checking the error logs, I see this error message:-
PHP Warning: array_key_exists(): The first argument should be either a string or an integer in /hermes/bosnaweb05a/b327/username/public_html/website.com/index.php on line 171
Upon opening up index.php, I see this code on line 171:
if (isset($session->data['language']) && array_key_exists($session->data['language'], $languages) && $languages[$session->data['language']]['status']) {
$code = $session->data['language'];
} elseif (isset($request->cookie['language']) && array_key_exists($request->cookie['language'], $languages) && $languages[$request->cookie['language']]['status']) {
$code = $request->cookie['language'];
} elseif ($detect) {
$code = $detect;
} else {
$code = $config->get('config_language');
I have read that it could be a session issue and have reported this to iPage (our hosting provider) but they have no idea what is wrong or how to fix the issue.
I'm stuck and have no idea what else to do. It looks really bad on us as new customers are thinking that our website is intermittently down, when it actually isn't.
Could someone help please? Thanks so much in advance.
I've recently been seeing this issue when trying to access my website. I'm using Opencart 1.5.6.4.
"The page you requested cannot be found". (Please see attachment)
Unfortunately, this issue is intermittent and it seems to happen for no apparent reason.
When checking the error logs, I see this error message:-
PHP Warning: array_key_exists(): The first argument should be either a string or an integer in /hermes/bosnaweb05a/b327/username/public_html/website.com/index.php on line 171
Upon opening up index.php, I see this code on line 171:
if (isset($session->data['language']) && array_key_exists($session->data['language'], $languages) && $languages[$session->data['language']]['status']) {
$code = $session->data['language'];
} elseif (isset($request->cookie['language']) && array_key_exists($request->cookie['language'], $languages) && $languages[$request->cookie['language']]['status']) {
$code = $request->cookie['language'];
} elseif ($detect) {
$code = $detect;
} else {
$code = $config->get('config_language');
I have read that it could be a session issue and have reported this to iPage (our hosting provider) but they have no idea what is wrong or how to fix the issue.
I'm stuck and have no idea what else to do. It looks really bad on us as new customers are thinking that our website is intermittently down, when it actually isn't.
Could someone help please? Thanks so much in advance.
Attachments
IMG_2151.PNG (52.46 KiB) Viewed 3085 times
Last edited by elenichee on Wed Jul 08, 2015 11:19 am, edited 1 time in total.
the text_seperator CHARACTER is missing, in your breadcrumb-section, this may be a reason, it does not work.
It's a language related problem, check in your english.php of your language files, if text_seperator is defined correctly.
Ernie
bigmax.ch/os/
It's a language related problem, check in your english.php of your language files, if text_seperator is defined correctly.
Ernie
bigmax.ch/os/
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Probably language related, those lines are all language and cookie/session related, in the default v.1.5.6.x index.php
Ernie
Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
A few things to look into.
Ensure register globals is actually off. You may have to contact your host to do this. See http://forum.opencart.com/viewtopic.php ... 5&p=519965 and http://forum.opencart.com/viewtopic.php ... 31#p186731
Your index.php looks also looks to been modified. Line 171 in the 1.5.6.4 source does not match what you have posted. Could the source of the problem be the modifications.
https://github.com/opencart/opencart/bl ... x.php#L171
There have been other reports with the same problem with the same host iPage. Maybe try a different host.
https://github.com/opencart/opencart/issues/2716
Ensure register globals is actually off. You may have to contact your host to do this. See http://forum.opencart.com/viewtopic.php ... 5&p=519965 and http://forum.opencart.com/viewtopic.php ... 31#p186731
Your index.php looks also looks to been modified. Line 171 in the 1.5.6.4 source does not match what you have posted. Could the source of the problem be the modifications.
https://github.com/opencart/opencart/bl ... x.php#L171
There have been other reports with the same problem with the same host iPage. Maybe try a different host.
https://github.com/opencart/opencart/issues/2716
Hi Add Creative,ADD Creative wrote:A few things to look into.
There have been other reports with the same problem with the same host iPage. Maybe try a different host.
https://github.com/opencart/opencart/issues/2716
Thanks for your help. You were right - it is a hosting provider issue. I've switched hosting since and the issue is no longer happening. Hope this helps others as well!
Who is online
Users browsing this forum: No registered users and 19 guests