Support » Plugin: WP Mail SMTP by WPForms » PHP 7.1 Warnings

  • Resolved Christoph Bratschi

    (@cbratschi)


    After upgrading to the lastest plugin version today there are lots of warnings in the PHP log. We had to disable this plugin to get rid of all those errors.

    PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘WPMailSMTP\tgmpa_load_bulk_installer’ not found or invalid function name in /home/telebase/public_html/staging/cms/wp-includes/class-wp-hook.php on line 286

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Slava Abakumov

    (@slaffik)

    I’m using 7.1 locally and don’t have such problems.
    Which PHP version are you using? I assume 7.1.

    Can you clear PHP OPcache?

    Plugin Author Slava Abakumov

    (@slaffik)

    This function is defined in /src/TGMPA.php file, line 3151.

    Plugin Author Jared Atchison

    (@jaredatch)

    Hey Christoph,

    When you get a chance would you mind reaching out to us at https://wpforms.com/contact so we can get some additional details from you? Just click the “Complete A Form” button (https://cl.ly/2u2D1q470K1r) and put in a general inquiry and we’ll find it. In your message please link to this page.

    We’ve had a few isolated reports of this error, however we have not been able to replicate the issue in of our tests. This leads us to believe it’s like something specific with the environment (eg caching, configuration, or similar).

    Once we get some more details from you, we can see about investigating getting this resolved.

    Thanks!

    xfoxx

    (@xfoxx)

    It’s the google-api-php-client in the new update, don’t know what you’ve done, but you’ve broken everyone’s site

    Plugin Author Jared Atchison

    (@jaredatch)

    Please ignore the above. The error that the OP is encountering has absolutely nothing to do with the Google API.

    xfoxx

    (@xfoxx)

    It is the apiclient , it’s your buggy version of it, and it’s conflicting and spreading with other plugins that use apiclient too. When I delete your plugin it’s fine.

    “makeCredentials() must be an instance of Psr\\Http\\Message\\StreamInterface, array given” Is the problem. Haven’t coded it properly.

    [Thu Jun 28 22:09:29.145826 2018] [proxy_fcgi:error] [pid 6457:tid x] [client x] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: Argument 2 passed to Google\\Auth\\CredentialsLoader::makeCredentials() must be an instance of Psr\\Http\\Message\\StreamInterface, array given, called in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Client.php on line 1085 and defined in

    /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-stateless/lib/Google/vendor/google/auth/src/CredentialsLoader.php:115\nStack trace:\n#0

    /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Client.php(1085): Google\\Auth\\CredentialsLoader::makeCredentials(‘https://www.goo…’, Array)\n#1

    /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Client.php(364): Google_Client->createApplicationDefaultCredentials()\n#2 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Client.php(796): Google_Client->authorize()\n#3 /opt/bitnami…\n’, referer: https://x.com/wp-admin/index.php

    • This reply was modified 1 year ago by  xfoxx.
    totus2

    (@totus2)

    Hi, Any Update on this. I am getting the same. If I disable the plugin then I lose the error message.

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘WPMailSMTP\tgmpa_load_bulk_installer’ not found or invalid function name in /home/learnmc/public_html/wp-includes/class-wp-hook.php on line 286

    Is the issue being looked into?

    manctm

    (@manctm)

    Hi, I am getting the same error. If I disable the plugin then I lose the error message.

    PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘WPMailSMTP\\tgmpa_load_bulk_installer’ not found or invalid function name in /var/www/cloudappinc/pppp/wp-includes/class-wp-hook.php on line 286

    Plugin Author Slava Abakumov

    (@slaffik)

    Hey @manctm & @totus2,

    When you get a chance would you mind reaching out to us at https://wpforms.com/contact so we can get some additional details from you? Just click the “Complete A Form” button (https://cl.ly/2u2D1q470K1r) and put in a general inquiry and we’ll find it. In your message please link to this page.

    We’ve had a few isolated reports of this error, however, we have not been able to replicate the issue in of our tests. This leads us to believe it’s like something specific to the environment (eg caching, configuration, or similar).

    Once we get some more details from you, we can see about investigating getting this resolved.

    Thanks!

    Plugin Author Jared Atchison

    (@jaredatch)

    Just a heads up for future readers, we are no longer following are responding to this specific thread.

    The original issue was around a compatibility conflict with tgmpa.

    This issue should be resolve as of version 1.3.2.

    If you are having problems please create a new issue, do not reply to or bump this thread.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘PHP 7.1 Warnings’ is closed to new replies.