• Tanner

    (@tannerchung)


    [30-Jun-2018 04:14:36 UTC] PHP Fatal error: Uncaught TypeError: Argument 2 passed to Google_Http_MediaFileUpload::__construct() must be an instance of Psr\Http\Message\RequestInterface, instance of Google_Http_Request given, called in ../wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanGmailApiModuleZendMailTransport.php on line 211 and defined in ../wp-content/plugins/post-smtp/Postman/Postman-Mail/google-api-client/vendor/google/apiclient/src/Google/Http/MediaFileUpload.php:76
    Stack trace:
    #0 ../wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanGmailApiModuleZendMailTransport.php(211): Google_Http_MediaFileUpload->__construct(Object(Google_Client), Object(Google_Http_Request), ‘message/rfc822’, ‘X-Mailer: Postm…’, true, 1048576)
    #1 ../wp-content/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Mail/Transport/Abstract.php(348): PostmanGmailApiModuleZendMailTransport->_sendMa in ../wp-content/plugins/post-smtp/Postman/Postman-Mail/google-api-client/vendor/google/apiclient/src/Google/Http/MediaFileUpload.php on line 76

    Not completely sure where this happened.. wondering if you could give me some insight.

    • This topic was modified 6 years, 8 months ago by Tanner.
    • This topic was modified 6 years, 8 months ago by James Huff.
Viewing 4 replies - 1 through 4 (of 4 total)
  • can you give more info?

    when did this happen?
    what did you try to send?

    check the email log.

    paste the diagnostic test here too.

    Hello, same problem here. This is what i find in /var/log/apache2/error.log (Apache2)

    [Mon Jul 09 20:31:23.429965 2018] [:error] [pid 12762] [client 165.227.209.124:36752] PHP Fatal error: Uncaught TypeError: Argument 2 passed to Google_Http_MediaFileUpload::__construct() must be an instance of Psr\\Http\\Message\\RequestInterface, instance of Google_Http_Request given, called in /var/www/html/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanGmailApiModuleZendMailTransport.php on line 211 and defined in /var/www/html/wp-content/plugins/post-smtp/Postman/Postman-Mail/google-api-client/vendor/google/apiclient/src/Google/Http/MediaFileUpload.php:76\nStack trace:\n#0 /var/www/html/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanGmailApiModuleZendMailTransport.php(211): Google_Http_MediaFileUpload->__construct(Object(Google_Client), Object(Google_Http_Request), 'message/rfc822', 'X-Mailer: Postm...', true, 1048576)\n#1 /var/www/html/wp-content/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Mail/Transport/Abstract.php(348): PostmanGmailApiModuleZendMailTransport->_sendMail()\n#2 /var/www/html/wp-content/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Mail.php(1199): Postman_Zend_Ma in /var/www/html/wp-content/plugins/post-smtp/Postman/Postman-Mail/google-api-client/vendor/google/apiclient/src/Google/Http/MediaFileUpload.php on line 76, referer: https://www.dobleimpacto.cl/wp-cron.php?doing_wp_cron=1531167403.9302868843078613281250

    Can’t find any other info. When i look into Post SMTP log, i only see sent mails, and nothing close to [Mon Jul 09 20:31:23.429965 2018].

    The diagnostic Test:
    HostName: https://www.dobleimpacto.cl
    OS: Linux bancaetica 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64
    PHP: Linux 7.0.30-0ubuntu0.16.04.1 C
    PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=Yes, allow_url_fopen=Yes, mcrypt=Yes, zlib_encode=Yes
    WordPress: 4.9.7 es_ES UTF-8
    WordPress Theme: Betheme Child
    WordPress Plugins: Advanced TinyMCE Configuration, iThemes Security, BuddyPress, Contact Form 7, Disable Real MIME Check, Duplicate Post, Export Plugins and Templates, Force Regenerate Thumbnails, Gabfire Widget Pack, Google Analytics Dashboard for WP (GADWP), Gravity Forms CSS Ready Class Selector, Gravity Forms, GravityView – Advanced Filter Extension, GravityView – A-Z Filters Extension, GravityView – DataTables Extension, GravityView, Image Widget, WPBakery Page Builder, Central Color Palette, Lightweight Social Icons, Button Widget by Loomisoft, Post SMTP, Q2W3 Fixed Widget, Slider Revolution, Shortcode in Menus, Gravity Form Shortcode, Styler for Gravity Forms, Styles & Layouts Gravity Forms, Team Members PRO, The Events Calendar, TinyMCE Advanced, Composium – WP Bakery Page Builder Extensions Addon, UpdraftPlus – Backup/Restore, Use Any Font, Widget CSS Classes, Widgets in Menu for WordPress
    WordPress wp_mail Filter(s): wp_staticize_emoji_for_email
    WordPress phpmailer_init Action(s): wpcf7_phpmailer_init
    Postman: 1.8.9
    Postman Sender Domain (Envelope|Message): dobleimpacto.cl | dobleimpacto.cl
    Postman Prevent Message Sender Override (Email|Name): No | No
    Postman Active Transport: Gmail API (https:oauth2://www.googleapis.com:443)
    Postman Active Transport Status (Ready|Connected): Yes | Yes
    Postman Deliveries (Success|Fail): 2114 | 1

    Thank you for your time ??

    • This reply was modified 6 years, 7 months ago by despazzito.

    Hi,

    I am getting same error while using Social login with Signin with Google option and using Post SMTP plugin with Gmail API to send emails from website.

    Fatal error: Uncaught TypeError: Argument 2 passed to Google_Http_MediaFileUpload::__construct() must be an instance of Psr\Http\Message\RequestInterface, instance of Google_Http_Request given, called in /home/example.com/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanGmailApiModuleZendMailTransport.php on line 211 and defined in /home/example.com/wp-content/plugins/post-smtp/Postman/Postman-Mail/google-api-client/vendor/google/apiclient/src/Google/Http/MediaFileUpload.php:76 Stack trace: #0 /home/example.com/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanGmailApiModuleZendMailTransport.php(211): Google_Http_MediaFileUpload->__construct(Object(Google_Client), Object(Google_Http_Request), 'message/rfc822', 'Content-Type: t...', true, 1048576) #1 /home/example.com/wp-content/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Mail/Transport/Abstract.php(348): PostmanGmailApiModuleZendMailTransport->_sendMail() #2 /home/example.com in /home/example.com/wp-content/plugins/post-smtp/Postman/Postman-Mail/google-api-client/vendor/google/apiclient/src/Google/Http/MediaFileUpload.php on line 76

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Fatal error: Uncaught TypeError: …’ is closed to new replies.