• Resolved isarisar

    (@isarisar)


    Opening diagnostics on PHP8 (https://the.site/wp-admin/admin.php?page=postman%2Fdiagnostics) yields

    PHP Fatal error:  Uncaught TypeError: get_class(): Argument #1 ($object) must be of type object, string given in /srv/wp-content/plugins/post-smtp/Postman/Postman-Diagnostic-Test/PostmanDiagnosticTestController.php:207
    Stack trace:
    #0 /srv/wp-content/plugins/post-smtp/Postman/Postman-Diagnostic-Test/PostmanDiagnosticTestController.php(247): PostmanGetDiagnosticsViaAjax->getFilters()
    #1 /srv/wp-includes/class-wp-hook.php(307): PostmanGetDiagnosticsViaAjax->getDiagnostics()
    #2 /srv/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #3 /srv/wp-includes/plugin.php(474): WP_Hook->do_action()
    #4 /srv/wp-admin/admin-ajax.php(187): do_action()
    #5 {main}
      thrown in /srv/wp-content/plugins/post-smtp/Postman/Postman-Diagnostic-Test/PostmanDiagnosticTestController.php on line 207

    Postman SMTP 2.0.26
    WP 5.9.3
    PHP 8.0.17

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support M Haseeb

    (@haseeb0001)

    @isarisar Hi,

    Hope you are doing good.

    You are facing an error when you open the Diagnostic test ? in our plugin other things are working fine and the issue is in the diagnostic test screen?

    Thanks

    Thread Starter isarisar

    (@isarisar)

    Hi,

    sorry for the delay.

    Yes, other parts we’re actually relying on are working fine. Only the diagnostics seem affected.

    Also seeing it with PHP 8.1.6.

    Thread Starter isarisar

    (@isarisar)

    Replacing $thing [0] with (is_string($thing[0]) ? $thing[0] : get_class($thing[0])), the diagnostic runs fine.

    The troublesome string is Woocommerce_Invoice_Pdf, added by the German Market plugin in their woocommerce-invoice-pdf.php @ 238:
    add_filter( 'wp_mail', array( __CLASS__, 'phpmailer_validation' ) );

    If that’s a wrong way to register for that filter, should I write them about it?

    Plugin Support M Haseeb

    (@haseeb0001)

    @isarisar

    Thanks, let me share it with my QA team, they will test it and if there will be any issues we will fix them and release the latest version soon.

    Thanks

    Plugin Support M Haseeb

    (@haseeb0001)

    @isarisar Hi,

    You can update the plugin, your issue is fixed.

    Here is the Video link.

    Thanks

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

The topic ‘PHP8 Fatal Error opening Diagnostics’ is closed to new replies.