That looks like a code action issue. You're trying to access email of an object that doesn't have email on it. Looks like line 13 of your custom code. Suggest checking your email actions to see which could be doing this.PHP Notice: Trying to get property 'email' of non-object in .../components/com_comprofiler/plugin/user/plug_cbautoactions/library/CBAutoActions.php(148) : eval()'d code on line 13
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Sorry, I meant to say to check your code actions trying to access email.I don't use email auto actions at all
It's erroring because the object you're accessing seams to sometimes not be an object at all or at least not an object you're expecting. You'd need to find which auto action is doing this then provide what trigger it's acting on and likely also the code you're trying to execute.The implication here may be that someone doesn't have an email address in their account (or it is invalid).
Copy your code to an editor that shows line number. Line 13 is where the error is happening.I wondered about the line 13 reference.
onAfterUserConfirmation does provide a user object as var1.I have wondered if that event provides access to the profile of the $user (as if they are logged in and active)
Please Log in or Create an account to join the conversation.
onAfterUserConfirmation does provide a user object as var1.
Please Log in or Create an account to join the conversation.
$user is set by CB Auto Actions and will always be a user object so it's save to use as long as your code doesn't override $user with something else.I just changed the event to onAfterUserConfirm. Was that a mistake? Before that change I was using just $user->field (and still am). Will this work with onAfterUserConfirm or should I switch back to onAfterUserConfirmation and use the $var1 (or whatever the syntax is)?
Please Log in or Create an account to join the conversation.