• evasion81

    (@evasion81)


    When choosing to send email I wasn’t receiving. Checking the debug information it shows this error:

    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/devichef/public_html/wp-content/plugins/import-users-from-csv-with-meta/importer.php on line 365

    Commenting this line out fixes it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Javier Carazo

    (@carazo)

    @evasion81

    Which version are you using?

    Could you show me the exact line? Maybe in last version not the same

    $body_mail = str_replace( "**username**", $username, $body_mail );

    Thanks.

    Thread Starter evasion81

    (@evasion81)

    Hi,
    Sorry it is this line for me:

    $body_mail = str_replace( "**passwordreseturl**", network_site_url( 'wp-login.php?action=rp&key=' . $key . '&login=' . rawurlencode( $user_login ), 'login' ), $body_mail );

    • This reply was modified 8 years ago by evasion81.
    Plugin Author Javier Carazo

    (@carazo)

    @evasion81

    This is really strange. $key should be WP_Error for create this problem. I have just added a conditional to prevent it but yes, the sentence won’t work.

    I have been seeing the code of generating the key and I don’t know why an update can raise this problem.

    Anyway, conditional is added and problem fixed.

    Thread Starter evasion81

    (@evasion81)

    Hi Javier,

    Thanks so much for fixing this. ??

    Stewart

    Plugin Author Javier Carazo

    (@carazo)

    Thanks to you for using it and please, do not forget to donate or review it, we cannot help everyone for free and we need your support!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error and plugin failing’ is closed to new replies.