Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EmailLogService ErrorException: Object of class WP_Error could not be converted to string #49

Open
Kilbourne opened this issue Jun 14, 2019 · 0 comments

Comments

@Kilbourne
Copy link

The problem is here : https://github.com/yehudah/Post-SMTP/blob/dev/Postman/Postman-Email-Log/PostmanEmailLogService.php#L137-L148

If $post_id = wp_insert_post( $my_post, true ); return a WP_Error,then here is used as a string:
$this->logger->debug( sprintf( 'Saved message #%s to the database', $post_id ) );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant