Post by elenichee » Wed Jun 03, 2015 8:08 pm

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.

Attachments

IMG_2151.PNG

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.

Newbie

Posts

Joined
Wed Jun 25, 2014 10:52 am

Post by IP_CAM » Thu Jun 04, 2015 12:51 am

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/

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.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by elenichee » Thu Jun 04, 2015 11:59 am

Hi,

Thanks for your reply.

The text separator is as follows:-

$_['text_separator'] = ' » ';

Seems like the double right angle quote.

Is this a problem?

Newbie

Posts

Joined
Wed Jun 25, 2014 10:52 am

Post by elenichee » Thu Jun 04, 2015 6:26 pm

I've also tried turning register_globals off but it doesn't seem to solve the problem either. :(

Does anyone have any other ideas?

Newbie

Posts

Joined
Wed Jun 25, 2014 10:52 am

Post by IP_CAM » Fri Jun 05, 2015 2:30 am

Probably language related, those lines are all language and cookie/session related, in the default v.1.5.6.x index.php
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.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by ADD Creative » Fri Jun 05, 2015 7:52 pm

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

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by elenichee » Wed Jul 08, 2015 11:18 am

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
Hi Add Creative,

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!

Newbie

Posts

Joined
Wed Jun 25, 2014 10:52 am
Who is online

Users browsing this forum: No registered users and 19 guests