Post by Knight.Vision » Tue Jun 23, 2015 6:59 pm

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?

New member

Posts

Joined
Sun Feb 08, 2015 6:02 am

Post by pm-netti » Tue Jun 23, 2015 7:52 pm

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);

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by Knight.Vision » Tue Jun 23, 2015 8:10 pm

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?

New member

Posts

Joined
Sun Feb 08, 2015 6:02 am

Post by pm-netti » Tue Jun 23, 2015 8:22 pm

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"

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by Knight.Vision » Tue Jun 23, 2015 8:40 pm

No. 2.0.2.0, and it was already enabled. I have one langauage there at the moment and it was already enabled.

New member

Posts

Joined
Sun Feb 08, 2015 6:02 am

Post by pm-netti » Tue Jun 23, 2015 9:06 pm

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?

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by Knight.Vision » Tue Jun 23, 2015 9:06 pm

Yup. All except config

New member

Posts

Joined
Sun Feb 08, 2015 6:02 am

Post by pm-netti » Tue Jun 23, 2015 9:16 pm

Knight.Vision wrote:Yup. All except config
Can you check thing?

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by Knight.Vision » Tue Jun 23, 2015 9:26 pm

pm-netti wrote:
Knight.Vision wrote:Yup. All except config
Can you check thing?
what thing and how?

New member

Posts

Joined
Sun Feb 08, 2015 6:02 am

Post by pm-netti » Tue Jun 23, 2015 11:53 pm

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).

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by Knight.Vision » Wed Jun 24, 2015 3:49 am

Redid the upgrade, problem still exists at line 138 how do I do the print_r test?

New member

Posts

Joined
Sun Feb 08, 2015 6:02 am

Post by pm-netti » Wed Jun 24, 2015 3:03 pm

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);

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by Knight.Vision » Wed Jul 08, 2015 4:38 am

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

New member

Posts

Joined
Sun Feb 08, 2015 6:02 am

Post by pnair50 » Wed Aug 19, 2015 8:34 pm

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.

Newbie

Posts

Joined
Wed Aug 19, 2015 8:31 pm
Who is online

Users browsing this forum: No registered users and 9 guests