When I run my website I am geting the following error
HTTP ERROR 500
Error log
2019-09-29 13:22:56 - PHP Notice: Undefined variable: username in /home/sitename/public_html/login/view/template/common/column_left.tpl on line 5
Can anybody help me please...
HTTP ERROR 500
Error log
2019-09-29 13:22:56 - PHP Notice: Undefined variable: username in /home/sitename/public_html/login/view/template/common/column_left.tpl on line 5
Can anybody help me please...
HTTP ERROR 500 is a general error
undefined variable means username has not been defined somewhere it should have been
/login/ is not standard opencart ..
so I suggest you look at something that is related to something that has to do with the login folder not being a admin folder and/or something to do with a new extension which added something to the left menu
undefined variable means username has not been defined somewhere it should have been
/login/ is not standard opencart ..
so I suggest you look at something that is related to something that has to do with the login folder not being a admin folder and/or something to do with a new extension which added something to the left menu
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Thank you for your help.by mona wrote: ↑Sun Sep 29, 2019 9:49 pmHTTP ERROR 500 is a general error
undefined variable means username has not been defined somewhere it should have been
/login/ is not standard opencart ..
so I suggest you look at something that is related to something that has to do with the login folder not being a admin folder and/or something to do with a new extension which added something to the left menu
mysite/login was working for me because I changed /admin to /login before 6 months. The error started today. Could you give me some more ideas.
something you did today?
did you add an extension recently ?
have you checked what is on line 5 of column-left and followed that backwards ?
did you add an extension recently ?
have you checked what is on line 5 of column-left and followed that backwards ?
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
I found this happens when you add an image in your user settings.
To get round this error you need to goto admin/controller/common/column_left.php and find around line 15
Add underneath
Refresh caches and no more error 
Looks like something they forgot to add into the code as it was in previous versions
To get round this error you need to goto admin/controller/common/column_left.php and find around line 15
Code: Select all
$data['lastname'] = $user_info['lastname'];
Code: Select all
$data['username'] = $user_info['username'];

Looks like something they forgot to add into the code as it was in previous versions
Who is online
Users browsing this forum: No registered users and 28 guests