We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3232
    • 380 Posts
    So after working out all of my other problems I think I came across a bug.

    If you forget your password and request the activation key, when you plug in the activation key and your new password, then click the activation button I get the following fatal error:

    Fatal error: Call to a member function invokeEvent() on a non-object in /home/user/location/to/assets/snippets/webloginpe/webloginpe.class.php on line 3054


    It turns out that it does indeed update the password, but you get this ugly white screen with an error.

    Any anyone else experienced this?

      • 6551
      • 11 Posts
      I had the same problem, the "global $modx;" is missing from the OnWebChangePassword function in webloginpe.class.php - line 3046 :

      function OnWebChangePassword($internalKey, $username, $newPassword)
      	{
      		global $modx;
      		$parameters = array(
      			'internalKey'	=> $internalKey,
      			'username'		=> $username,
      			'password'		=> $newPassword
      			);
              $modx->invokeEvent('OnWebChangePassword', $parameters);
      	}
      
        • 3232
        • 380 Posts
        Thanks, that did the trick