Can’t view site health error in class-site-health.php line 911
-
I was getting this error when wanting to view my site health.
[30-Oct-2023 07:43:25 UTC] PHP Fatal error: ?Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /home/lxl8ojhkm198/public_html/wp-content/plugins/ultimate-member/includes/admin/class-site-health.php:911
I updated this file class-site-health.php with this code.$secure_settings = array( ‘um-banned_capabilities’ => array( ‘label’ => __( ‘Banned Administrative Capabilities’, ‘ultimate-member’ ), ‘value’ => is_array(UM()->options()->get( ‘banned_capabilities’ )) ? implode( ‘, ‘, UM()->options()->get( ‘banned_capabilities’ ) ) : UM()->options()->get( ‘banned_capabilities’ ), ),
And now it works as expected.
- The topic ‘Can’t view site health error in class-site-health.php line 911’ is closed to new replies.