Plugin Breaks Non-Admin Login on WordPress 5.5
-
Hello,
If a non-admin user tries to login to WordPress while this plugin is activated, but not yet connected to the API, it crashes with the following stack trace:
PHP message: PHP Fatal error: Uncaught Error: Call to a member function admin_page_url() on null in /home/example.com/public_html/wp-content/plugins/optinmonster/OMAPI/Welcome.php:353
Stack trace:
#0 /home/example.com/public_html/wp-content/plugins/optinmonster/OMAPI/Pointer.php(85): OMAPI_Welcome->get_link()
#1 /home/example.com/public_html/wp-includes/class-wp-hook.php(287): OMAPI_Pointer->load_pointer(‘index.php’)
#2 /home/example.com/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#3 /home/example.com/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#4 /home/example.com/public_html/wp-admin/admin-header.php(102): do_action(‘admin_enqueue_s…’, ‘index.php’)
#5 /home/example.com/public_html/wp-admin/index.php(111): require_once(‘/var/www/donate…’)
#6 {main}
thrown in /home/example.com/public_html/wp-content/plugins/optinmonster/OMAPI/Welcome.php on line 353This only started happening with the latest update to the plugin, on WordPress 5.5. I have not tested previous versions.
Thanks,
Anthony.
- The topic ‘Plugin Breaks Non-Admin Login on WordPress 5.5’ is closed to new replies.