Page 1 of 1

Error, help

Posted: Tue Jun 23, 2015 6:59 pm
by Knight.Vision
Warning: array_key_exists(): The first argument should be either a string or an integer in /index.php on line 138. I've done nothing to edit main file, why does this come up and how do I fix it?

Re: Error, help

Posted: Tue Jun 23, 2015 7:52 pm
by pm-netti
Knight.Vision wrote:Warning: array_key_exists(): The first argument should be either a string or an integer in /index.php on line 138. I've done nothing to edit main file, why does this come up and how do I fix it?
This is language array error.
Are your languages to status "Enabled"?
You can do this test in index.php line 137:

Code: Select all

print_r($languages);

Re: Error, help

Posted: Tue Jun 23, 2015 8:10 pm
by Knight.Vision
Hey,

Thanks for the reply. I just upgraded to 2.0.3 and its now on line 142. Is that the same thing? If it isn't enabled, how do I enable it?

Re: Error, help

Posted: Tue Jun 23, 2015 8:22 pm
by pm-netti
Knight.Vision wrote:Hey,

Thanks for the reply. I just upgraded to 2.0.3 and its now on line 142. Is that the same thing? If it isn't enabled, how do I enable it?
Are you previous version 1.4.x? It upgrade can change language status to '0'.
You go to admin > system > localisation > languages > edit and change "Status" to "Enabled"

Re: Error, help

Posted: Tue Jun 23, 2015 8:40 pm
by Knight.Vision
No. 2.0.2.0, and it was already enabled. I have one langauage there at the moment and it was already enabled.

Re: Error, help

Posted: Tue Jun 23, 2015 9:06 pm
by pm-netti
Knight.Vision wrote:No. 2.0.2.0, and it was already enabled. I have one langauage there at the moment and it was already enabled.
Are you updated all files to version 2.0.3.1?

Re: Error, help

Posted: Tue Jun 23, 2015 9:06 pm
by Knight.Vision
Yup. All except config

Re: Error, help

Posted: Tue Jun 23, 2015 9:16 pm
by pm-netti
Knight.Vision wrote:Yup. All except config
Can you check thing?

Re: Error, help

Posted: Tue Jun 23, 2015 9:26 pm
by Knight.Vision
pm-netti wrote:
Knight.Vision wrote:Yup. All except config
Can you check thing?
what thing and how?

Re: Error, help

Posted: Tue Jun 23, 2015 11:53 pm
by pm-netti
Knight.Vision wrote:
pm-netti wrote:
Knight.Vision wrote:Yup. All except config
Can you check thing?
what thing and how?
I assume that you are an ordinary person :)
It is known that ordinary human memory can not always rely on.

Can you upload (again) all version 2.0.3.1 files to server
/catalog
/system
/index.php

You can also do it print_r test to line 140-141 (before error message line).

Re: Error, help

Posted: Wed Jun 24, 2015 3:49 am
by Knight.Vision
Redid the upgrade, problem still exists at line 138 how do I do the print_r test?

Re: Error, help

Posted: Wed Jun 24, 2015 3:03 pm
by pm-netti
Knight.Vision wrote:Redid the upgrade, problem still exists at line 138 how do I do the print_r test?

You can do, add this test text in /index.php line 137:

Code: Select all

print_r($languages);
print_r($_SESSION);

Re: Error, help

Posted: Wed Jul 08, 2015 4:38 am
by Knight.Vision
Not really sure why, but the problem was due to some strange server setting that the server did without informing me. Got fixed. Thanks.

New issue though.

Undefined variable: entry_captcha in /catalog/view/theme/cloud/template/account/return_form.tpl on line 156

Re: Error, help

Posted: Wed Aug 19, 2015 8:34 pm
by pnair50
Undefined variable: entry_captcha in /catalog/view/theme/cloud/template/account/*.tpl (applies to all files in that folder. Your custom theme is missing files after upgrade to new version of opencart.

Fix is Simple:(backup first)

Copy the template folder from your default theme folder over to the "your theme" Folder this will fix the issue.