This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I was using BackendAuth with no issues at all till I had to clear my browser cache for some javascript loading issue I was facing. Upon entering the site now all I get is the following error: "Trying to get property 'login' of non-object"
The code I have been using is:
$un = BackendAuth::getUser()->login;
I have honestly made no other changes to anything but clear my cache and now regardless of what browser I use I receive this error. I have the provided the full error log which can be found at the following link: https://image.ibb.co/jrN9gn/1.png
Any help will be much appreciated! I am new to October CMS and currently using it for a university project so please keep any responses simple. Thanks!
To fix this issue it seems all I had to do was login to the backend. I don't understand how this fixed the issue could someone please explain?
1-2 of 2