Fatal error when notifications after update to v 1.9
-
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)
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.