Title: PHP Fatal error: Uncaught TypeError: &#8230;
Last modified: June 30, 2018

---

# PHP Fatal error: Uncaught TypeError: …

 *  [Tanner](https://wordpress.org/support/users/tannerchung/)
 * (@tannerchung)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-3/)
 * [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 7 years, 11 months ago by [Tanner](https://wordpress.org/support/users/tannerchung/).
    -  This topic was modified 7 years, 11 months ago by [James Huff](https://wordpress.org/support/users/macmanx/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [yehudah](https://wordpress.org/support/users/yehudah/)
 * (@yehudah)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-3/#post-10454170)
 * 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.
 *  [despazzito](https://wordpress.org/support/users/despazzito/)
 * (@despazzito)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-3/#post-10481936)
 * 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: [http://www.dobleimpacto.cl](http://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 7 years, 10 months ago by [despazzito](https://wordpress.org/support/users/despazzito/).
 *  [Surenderk](https://wordpress.org/support/users/surenderk/)
 * (@surenderk)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-3/#post-11000984)
 * 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.
 *  [Surenderk](https://wordpress.org/support/users/surenderk/)
 * (@surenderk)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-3/#post-11001228)
 * `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.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [Surenderk](https://wordpress.org/support/users/surenderk/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-3/#post-11001228)
 * Status: not resolved