Jump to content

Login/Password-reset Problem


Christoph
 Share

Recommended Posts

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 645
Notice: Trying to get property of non-object in //wire/core/Pages.php on line 648
Notice: Trying to get property of non-object in //wire/core/Pages.php on line 657
Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 708
Notice: Trying to get property of non-object in //wire/core/Pages.php on line 708
Fatal 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

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();
  • Like 4
Link to comment
Share on other sites

  • 10 months later...

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 645
Notice: Trying to get property of non-object in //wire/core/Pages.php on line 648
Notice: Trying to get property of non-object in //wire/core/Pages.php on line 657
Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 708
Notice: Trying to get property of non-object in //wire/core/Pages.php on line 708
Fatal 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 by Greg Lercher
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...