Christoph Posted October 16, 2014 Share Posted October 16, 2014 I have a problem with login and password reset. I'm building a site on localhost and from one day to another the admin login failed. When I try to set a new password like this: $u = $users->get('admin'); $u->of(false); $u->pass = 'superSecretPassword'; $u->save(); I get this: Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 645Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 648Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 657Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 708Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 708Fatal error: Call to a member function numChildren() on a non-object in /…/wire/core/Pages.php on line 754 The site itself still works well, except the fact that I can't login into my admin anymore. I also tried other things described in the forums like deleting sessions and the likes. Non of them helped.Any ideas what did go wrong and how I can get back into admin?Thanks! Link to comment Share on other sites More sharing options...
arjen Posted October 16, 2014 Share Posted October 16, 2014 Are you absolutely sure your superuser is called admin? I think you can verify that in the database. Another option is creating a new superuser: $u = new User(); $u->name = "therealsuperuser"; $u->pass = "therealsuperuser123"; $u->addRole("superuser"); $u->addRole("guest"); // Don't know if this really is required $u->save(); 4 Link to comment Share on other sites More sharing options...
Christoph Posted October 16, 2014 Author Share Posted October 16, 2014 Hi Arjen, my username is different, just didn't post it, as I'm using it also on the online-site Creating a new superuser did the trick!Thanks a lot! Link to comment Share on other sites More sharing options...
Greg Lercher Posted August 19, 2015 Share Posted August 19, 2015 (edited) HI, After hours and hours of searching forums and Google I still have the same problem. I am getting the same error as Christoph did above, but I have full access to my admin area. Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 645Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 648Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 657Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 708Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 708Fatal error: Call to a member function numChildren() on a non-object in /…/wire/core/Pages.php on line 754 The sites works it just shows this error message on the home page. I do not see that the above error messages are effecting anything, they just show. Can anyone, please help me? Thanks in advance so much for any help!!!! Please forgive me for posting this in the “loginpassword-reset-problem” thread, but I thought since the error message is the same, it might help. Edited August 19, 2015 by Greg Lercher Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now