• Resolved devsc2768

    (@devsc2768)


    We are getting a fatal error in the admin if notifications are sent out. This is happening with any plugin notification including notifications sent from your plugin:

    Error log:

    2022/09/08 02:27:10 [error] 99755#99755: *235858 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function str_contains() in /www/xxx_552/public/wp-content/plugins/bnfw/bnfw.php:249
    Stack trace:
    #0 /www/xxx/public/wp-includes/class-wp-hook.php(287): BNFW->bnfw_update_email_changing_subject(Array)
    #1 /www/xxx/public/wp-includes/plugin.php(212): WP_Hook->apply_filters(Array, Array)
    #2 /www/xxx/public/wp-includes/pluggable.php(182): apply_filters('wp_mail', Array)
    #3 /www/xxx/public/wp-content/plugins/bnfw/includes/engine/class-bnfw-engine.php(283): wp_mail('xxx...', 'You have been g...', '<p>Dear xxx...', Array)
    #4 /www/xxx/public/wp-content/plugins/bnfw/bnfw.php(1143): BNFW_Engine->send_user_role_changed_email(Array, 18, 'institution_adm...', 'institution_sta...')
    #5 /www/xxx/public/wp-includes/class-wp-hook.php(287): BNFW->user_role_changed(18, 'institution_sta...', Array)
    #6 /www/xxx/public/wp-includes/class-wp-hook.php(311): WP_Hook->app" while reading response header from upstream, client: 110.000.000.00, server: xxx.com, request: "POST /wp-admin/user-edit.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7.4-fpm-iheaeduau.sock:", host: "xxx.com:45692", referrer: "https://xxx.com/wp-admin/user-edit.php?user_id=18&wp_http_referer=%2Fwp-admin%2Fusers.php%3Frole%3Dinstitution_admin"

    As soon as I uninstall 1.9 and roll back to 1.8.11 the fatal error stops and notifications are being sent.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter devsc2768

    (@devsc2768)

    The website is using WordPress 5.6.9.

    The issue does not seem to happen when the latest version of WordPress 6.0.2 is installed. The site in question has some plugins that are awaiting full 6.0.2 support.

    Plugin Author bnfw

    (@voltronik)

    Hi @devsc2768,
    Thanks for your message.

    This may actually be an issue with the PHP version you’re using – can you confirm you’re using PHP version 7.1 or above?
    Ideally, PHP 7.4 should be used at a minimum now.

    Thread Starter devsc2768

    (@devsc2768)

    I can confirm the website is using PHP 7.4.

    Plugin Author bnfw

    (@voltronik)

    Thanks @devsc2768,
    I’ve worked out the issue and should have a fix available soon.
    Also working out a few other reported issues so I may group them together into a larger bug fix release shortly.

    Plugin Author bnfw

    (@voltronik)

    Hi @devsc2768,
    Just released 1.9.1 of the plugin which should fix this.

    Do let me know if you experience any other issues.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error when notifications after update to v 1.9’ is closed to new replies.