Latest Version - PHP Fatal error: Call to a member function, Line 94, theme-login
I'm getting the following error in my Error Log:
PHP Fatal error: Call to a member function add() on a non-object in /home6/specibb3/public_html/techwhirl/
wp-content/themes/jobroller/includes/theme-login.php on line 94 -- I don't know much PHP or I'd try to recommend a fix.
The code from 92 - 109
// If cookies are disabled we can't log in even with a valid user+pass
if ( isset($_POST['testcookie']) && empty($_COOKIE[TEST_COOKIE]) )
$errors->add('test_cookie', __('Cookies are blocked or not supported by your browser. You must enable cookies to continue.','appthemes'));
if ( isset($_GET['loggedout']) && TRUE == $_GET['loggedout'] )
$message = __('You are now logged out.','appthemes');
elseif ( isset($_GET['registration']) && 'disabled' == $_GET['registration'] )
$errors->add('registerdisabled', __('User registration is currently not allowed.','appthemes'));
elseif ( isset($_GET['checkemail']) && 'confirm' == $_GET['checkemail'] )
$message = __('Check your email for the confirmation link.','appthemes');
elseif ( isset($_GET['checkemail']) && 'newpass' == $_GET['checkemail'] )
$message = __('Check your email for your new password.','appthemes');
elseif ( isset($_GET['checkemail']) && 'registered' == $_GET['checkemail'] )
$message = __('Registration complete. Please check your e-mail.','appthemes');
Thanks for your help,
al