codebykat / wp-post-by-email

Post By Email plugin for WordPress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Post by email throws exception when imap is used.

chfw opened this issue · comments

Hi all:

Wordpress was used to create two sites (A, B) and both uses post-by-email. Site A is free for anyone to read; Site B is restricted for subscribed users via Active Directory. Now, post by email via site A works while post to site B does not work. Not working means the post stays in the email box and never gets published.

I attempted to click "Check now" button on site B and got these error logs:

  1. PHP Catchable fatal error: Argument 3 passed to Horde_Imap_Client_Exception_ServerResponse::__construct() must be an instance of Horde_Imap_Client_Interaction_Server, integer given, called in /var/www/html/wp-content/plugins/post-by-email/include/Horde/Imap/Client/Socket.php on line 3946 and defined in /var/www/html/wp-content/plugins/post-by-email/include/Horde/Imap/Client/Exception/ServerResponse.php on line 55, referer: http://....

on Site A, I don't get any error logs.

Any suggestion on how to debug this?

Just to let the rest of people know: I have put a line before 3946:

error_log(strval($server->token));

and the error is printed in /var/log/httpd/error_log

and got the error reason.

I strongly suggest that: this error is sent back to browser to inform WP ADMIN about it. OTHERWISE, Poor usability would let your user down!!

Thanks - this is probably a PHP version problem. What are the PHP versions of the two different sites?

(BTW, the error not being reported is likely the fault of your WordPress or PHP config. In general, errors are suppressed unless WP_DEBUG is enabled. I don't necessarily agree with that, as it tends to result in the confusing "white screen of death", which as you noted is not very user-friendly... but that's how WP is set up.)

commented

I am sorry that I have moved on from the issue. Thanks for your attention and time.