Post by Majna » Sun Sep 29, 2019 9:33 pm

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

Active Member

Posts

Joined
Sat Jul 22, 2017 8:00 pm

Post by by mona » Sun Sep 29, 2019 9:49 pm

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

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


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by Majna » Sun Sep 29, 2019 10:15 pm

by mona wrote:
Sun Sep 29, 2019 9:49 pm
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
Thank you for your help.

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.

Active Member

Posts

Joined
Sat Jul 22, 2017 8:00 pm

Post by by mona » Sun Sep 29, 2019 10:46 pm

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 ?

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


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by cyclops12 » Sun Sep 29, 2019 11:12 pm

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

Code: Select all

$data['lastname'] = $user_info['lastname'];
Add underneath

Code: Select all

$data['username'] = $user_info['username'];
Refresh caches and no more error 8)

Looks like something they forgot to add into the code as it was in previous versions

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by Majna » Wed Oct 02, 2019 1:58 am

by mona wrote:
Sun Sep 29, 2019 10:46 pm
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 ?
I solved it. I uninstall last installed extension. Then it work.

Active Member

Posts

Joined
Sat Jul 22, 2017 8:00 pm
Who is online

Users browsing this forum: No registered users and 28 guests