Call to undefined function get_debug_type
-
After updating Post SMTP from 4.0.2 to 4.0.4 on a site still running PHP 7.4, sending emails via the Gmail API triggers a 500 Internal Server Error and hangs on the “Send a Test Email” screen.
Rolling back to 4.0.2 resolved the issue immediately.
it looks like the updated Guzzle library is calling
get_debug_type(), which doesn’t exist in PHP 7.4.Here’s the server error log:
PHP Fatal error: Uncaught Error: Call to undefined function get_debug_type() in …/wp-content/plugins/post-smtp/Postman/Postman-Mail/libs/vendor_prefixed/guzzlehttp/psr7/src/MessageTrait.php:71
Stack trace:
#0 …/wp-content/plugins/post-smtp/Postman/Postman-Mail/libs/vendor_prefixed/google/apiclient/src/Http/MediaFileUpload.php(234): PostSMTP\Vendor\GuzzleHttp\Psr7\Request->withHeader()
#1 …/wp-content/plugins/post-smtp/Postman/Postman-Mail/libs/vendor_prefixed/google/apiclient/src/Http/MediaFileUpload.php(225): PostSMTP\Vendor\Google\Http\MediaFileUpload->fetchResumeUri()
#2 …/wp-content/plugins/post-smtp/Postman/Postman-Mail/libs/vendor_prefixed/google/apiclient/src/Http/MediaFileUpload.php(104): PostSMTP\Vendor\Google\Http\MediaFileUpload->getResumeUri()Any chance you can add a fallback for
get_debug_type()in the next update so plugin still works on PHP 7.4?Thanks
You must be logged in to reply to this topic.