runnerjp Posted May 16, 2007 Share Posted May 16, 2007 hey guys... i get "Fatal error: Call to a member function on a non-object" in here else{ if($database->addNewUser($subuser, md5($subpass), $subemail)){ if(EMAIL_WELCOME){ $mailer->sendWelcome($subuser,$subemail,$subpass); <----this is where the error is :S } return 0; //New user added succesfully }else{ return 2; //Registration attempt failed } } } Quote Link to comment https://forums.phpfreaks.com/topic/51646-solved-fatal-error-call-to-a-member-function-on-a-non-object/ Share on other sites More sharing options...
taith Posted May 16, 2007 Share Posted May 16, 2007 means that "sendWelcome" isnt a function in that class... Quote Link to comment https://forums.phpfreaks.com/topic/51646-solved-fatal-error-call-to-a-member-function-on-a-non-object/#findComment-254414 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.