Jump to content

Notice: Undefined index error PS 1.7


innocuous

Recommended Posts

Hi

I upgraded from 1.6 to latest 1.7. everything is fine except that I am getting the following error on site. It is preventing me from logging in to admin also. 

Notice: Undefined index: locale in /home/public_html/classes/Language.php on line 627
 

You can see the error at www dot colorite dot in.

How can I fix this?

Thanks

Edited by innocuous
Title change (see edit history)
Link to comment
Share on other sites

Thanks! That seemed to fix the problem. Seems the DB upgrade did not go well in the auto upgrade module.

BUT now a new error crops up....


Warning: Invalid argument supplied for foreach() in /home/colorite/public_html/classes/Profile.php on line 174

 

The issue is that I cannot login to admin as it accepts the credentials but just closes the login form and stays on same page.

How do I fix this?

Thanks

Link to comment
Share on other sites

In the autoupgrade tmp directory, the log file ends with:

[2018-10-25 07:46:15] All files upgraded. Now upgrading database...
[2018-10-25 07:46:16] Migrating old setting file...
[2018-10-25 07:46:16] [INTERNAL] /home/colorite/public_html/vendor/symfony/symfony/src/Symfony/Component/Yaml/Parser.php line 42 - syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'

How do I fix this as I cannot even login to backend? I have many products so starting afresh is not possible.

 

Link to comment
Share on other sites

  • 2 years later...

I might have run into the same problem

Notice: Undefined index: _route in /customers/0/8/2/nettotruck.dk/httpd.www/src/PrestaShopBundle/Controller/Admin/CommonController.php on line 121

Returns a HTTP 500, but I can't figure out why. 

Happened when I moved a hook for a module - which I now have deleted. 

Link to comment
Share on other sites

  • 1 year later...
On 2/4/2021 at 8:30 AM, jrgrafisk said:

I might have run into the same problem

Notice: Undefined index: _route in /customers/0/8/2/nettotruck.dk/httpd.www/src/PrestaShopBundle/Controller/Admin/CommonController.php on line 121

Returns a HTTP 500, but I can't figure out why. 

Happened when I moved a hook for a module - which I now have deleted. 

enable the debug mode to see what is the error

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...