error in inserting email to log
-
Hello,
I have a WordPress website with premium content, and the Payment flow is being interfered by a Postman Plugin error.
the error is on the line:
$this->logger->debug( sprintf( ‘Saved message #%s to the database’, $post_id ) );
with the error:
“PHP Recoverable fatal error: Object of class WP_Error could not be converted to string in <HomeDir>/wp-content/plugins/post-smtp/Postman/Postman-Email-Log/PostmanEmailLogService.php on line 148”
The reason for that error is that this line:
“$post_id = wp_insert_post( $my_post, true );”
returns WP_Error instead of the post ID, I suspect that this is an encoding problem(the $log->subject and $log->body contain Hebrew Characters).
How can this issue be resolved?
Your help is highly appreciated.
Rotem
- The topic ‘error in inserting email to log’ is closed to new replies.