• After updating to version 4.53.1, certain roles are running into errors when adding new posts/pages/custom post types.

    Administrator role still works fine but other roles will run into a blank page that reads “There has been a critical error on your website. Please check your site admin email inbox for instructions.”

    Deactivation the plugin removed the error but after reactivating and deactivating again, the error now persists. So deactivating the plugin now no longer removes the error.

    Also tried to rollback to a previous versions of the plugin and the error still occurs.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    Activate WordPress debug mode with writing error message to log file and show error messages related to the User Role Editor.

    Add these lines to wp-config.php

    
    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    

    Errors will be written to wp-content/debug.log file.

    Thread Starter claraaho

    (@claraaho)

    Hi,

    Thanks for the response. I see no error messages relating to User Role Editor but after my initial post, I was testing around to figure out the issue some more, I think there may be a conflict with another plugin, WP Members. WP Members plugin has remained the same and the issue only occurred after updating URE.

    I get warnings like these after turning on wp_debug

    Warning: Cannot modify header information – headers already sent by (output started at /home/princegeorge7352/public_html/wp-content/plugins/wp-members/wp-members-sidebar.php:269) in /home/princegeorge7352/public_html/wp-includes/functions.php on line 6029

    Warning: Cannot modify header information – headers already sent by (output started at /home/princegeorge7352/public_html/wp-content/plugins/wp-members/wp-members-sidebar.php:269) in /home/princegeorge7352/public_html/wp-admin/includes/misc.php on line 1252

    Warning: Cannot modify header information – headers already sent by (output started at /home/princegeorge7352/public_html/wp-content/plugins/wp-members/wp-members-sidebar.php:269) in /home/princegeorge7352/public_html/wp-admin/admin-header.php on line 9

    and debug_log shows errors like

    [30-Mar-2020 18:01:45 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/princegeorge7352/public_html/wp-content/plugins/wp-members/wp-members-sidebar.php:269) in /home/princegeorge7352/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1253
    [30-Mar-2020 18:01:49 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; widget_wpmemwidget has a deprecated constructor in /home/princegeorge7352/public_html/wp-content/plugins/wp-members/wp-members-sidebar.php on line 269
    [30-Mar-2020 18:01:49 UTC] PHP Notice: The called constructor method for WP_Widget in widget_wpmemwidget is deprecated since version 4.3.0! Use

    __construct()

    instead. in /home/princegeorge7352/public_html/wp-includes/functions.php on line 4716

    I may need to contact WP Members support also but if you have any insight on these error messages that would be appreciated as well.

    The version of WP-Members you have installed is severely out of date. The file noted has not been part of the plugin since 3.0 (over 5 years ago). Pre-3.0 versions are not fully compatible with PHP 7+ and WP 4.3+.

    The plugin has maintained compatibility with modern versions of PHP and WP, but that’s only if you keep it up-to-date 😉

    Thread Starter claraaho

    (@claraaho)

    The thing is, the most recent version of WP Members is still causing the error when used with the latest version of URE also.

    So I tried to roll back to the version that my client had before the errors occurred. That version of WP Members is what they had before and when installed with all versions of URE, proper functioning of the website can’t be restored again.

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

The topic ‘Critical Error after updating’ is closed to new replies.