Skip to content

The last update broke the site #370

@ktorktor

Description

@ktorktor

Describe the bug

Hi,

I had to deactivate the plugin after the last update as it was breaking the site, this is the log:

[28-Oct-2025 08:18:23 UTC] PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given in /var/www/html/wp-content/plugins/restricted-site-access/restricted_site_access.php:427
Stack trace:
#0 /var/www/html/wp-content/plugins/restricted-site-access/restricted_site_access.php(427): array_merge()
#1 /var/www/html/wp-content/plugins/restricted-site-access/restricted_site_access.php(247): Restricted_Site_Access::get_options()
#2 /var/www/html/wp-includes/class-wp-hook.php(324): Restricted_Site_Access::hide_admin_bar_for_roles()
#3 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#4 /var/www/html/wp-includes/admin-bar.php(1382): apply_filters()
#5 /var/www/html/wp-content/plugins/display-environment-type/classes/class-display-environment-type.php(252): is_admin_bar_showing()
#6 /var/www/html/wp-content/plugins/display-environment-type/classes/class-display-environment-type.php(47): DET\Display_Environment_Type::should_display()
#7 /var/www/html/wp-includes/class-wp-hook.php(324): DET\Display_Environment_Type::add_hooks()
#8 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#9 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action()
#10 /var/www/html/wp-settings.php(727): do_action()
#11 /var/www/html/wp-config.php(119): require_once('...')
#12 /var/www/html/wp-load.php(50): require_once('...')
#13 /var/www/html/wp-blog-header.php(13): require_once('...')
#14 /var/www/html/index.php(17): require('...')
#15 {main}
thrown in /var/www/html/wp-content/plugins/restricted-site-access/restricted_site_access.php on line 427
[28-Oct-2025 08:18:23 UTC] PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given in /var/www/html/wp-content/plugins/restricted-site-access/restricted_site_access.php:427
Stack trace:
#0 /var/www/html/wp-content/plugins/restricted-site-access/restricted_site_access.php(427): array_merge()
#1 /var/www/html/wp-content/plugins/restricted-site-access/restricted_site_access.php(247): Restricted_Site_Access::get_options()
#2 /var/www/html/wp-includes/class-wp-hook.php(324): Restricted_Site_Access::hide_admin_bar_for_roles()
#3 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#4 /var/www/html/wp-includes/admin-bar.php(1382): apply_filters()
#5 /var/www/html/wp-content/plugins/display-environment-type/classes/class-display-environment-type.php(252): is_admin_bar_showing()
#6 /var/www/html/wp-content/plugins/display-environment-type/classes/class-display-environment-type.php(47): DET\Display_Environment_Type::should_display()
#7 /var/www/html/wp-includes/class-wp-hook.php(324): DET\Display_Environment_Type::add_hooks()
#8 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#9 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action()
#10 /var/www/html/wp-settings.php(727): do_action()
#11 /var/www/html/wp-config.php(119): require_once('...')
#12 /var/www/html/wp-load.php(50): require_once('...')
#13 /var/www/html/wp-blog-header.php(13): require_once('...')
#14 /var/www/html/index.php(17): require('...')
#15 {main}
thrown in /var/www/html/wp-content/plugins/restricted-site-access/restricted_site_access.php on line 427

Steps to Reproduce

With the plugin activated, while being logged in, try to view a post.

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

latest

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

type:bugSomething isn’t working.

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions