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.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?
Are your languages to status "Enabled"?
You can do this test in index.php line 137:
Code: Select all
print_r($languages);
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?
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'.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?
You go to admin > system > localisation > languages > edit and change "Status" to "Enabled"
No. 2.0.2.0, and it was already enabled. I have one langauage there at the moment and it was already enabled.
what thing and how?pm-netti wrote:Can you check thing?Knight.Vision wrote:Yup. All except config
I assume that you are an ordinary personKnight.Vision wrote:what thing and how?pm-netti wrote:Can you check thing?Knight.Vision wrote:Yup. All except config

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).
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);
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 issue though.
Undefined variable: entry_captcha in /catalog/view/theme/cloud/template/account/return_form.tpl on line 156
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.
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.
Who is online
Users browsing this forum: No registered users and 9 guests