Support » Plugin: MailPoet Newsletters (Previous) » Fatal PHP error Adding A User

  • Resolved Jeffrey Schutzman

    (@jeffpyebrookcom)


    Fatal error at user.php line 183
    if( $subscriber_exists_already['status'] == 1 ){

    Testing subscriber_exists_already as an array, but it is an object?

    Here is a debug screenshot with the variable contents https://cl.ly/12302e0D443N

Viewing 3 replies - 1 through 3 (of 3 total)
  • Wysija

    (@wysija)

    What’s PHP version running on your website?

    Thread Starter Jeffrey Schutzman

    (@jeffpyebrookcom)

    Php 7

    I found a temporary workaround. The error happens on the second call to adding a user because the return type is being set to object somewhere in the previous get model call. It is never restored to array for subsequent calls.

    My hack is to explicitly set the returned type property in the structure to array just prior to adding the user.

    Wysija

    (@wysija)

    Cool, glad you found that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal PHP error Adding A User’ is closed to new replies.