• Resolved sharoni

    (@sharoni)


    Hello, I don’t know if this is an issue with Code Snippets, but I created a snippet (in CS) to map roles and capabilities but it didn’t work so I deactivated it and installed a roles and capabilities plugin, then deleted plugin via cpanel and deleted the snippet via phpmyadmin. (site is in dev, so I can’t share the link).
    I still have the critical error and the following error message from debug.log. Can you help with this? :
    [30-Jul-2023 10:36:53 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type WP_Role as array in /home/public/mydomain.com/wp-includes/class-wp-roles.php:292
    Stack trace: 0 /home/public/mydomain.com/wp-includes/class-wp-roles.php(332): WP_Roles->init_roles() 1 /home/public/mydomain.com/wp-includes/class-wp-roles.php(91): WP_Roles->for_site() 2 /home/public/mydomain.com/wp-settings.php(548): WP_Roles->__construct() 3 /home/public/mydomain.com/wp-config.php(117): require_once(‘/home/public/…’) 4 /home/public/mydomain.com/wp-load.php(50): require_once(‘/home/public/…’) 5 /home/public/mydomain.com/wp-login.php(12): require(‘/home/public/…’) 6 {main}

    thrown in /home/public/mydomain.com/wp-includes/class-wp-roles.php on line 292

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    It doesn’t look like this error is coming from this plugin, unfortunately. Is it possible it’s coming from the plugin you installed, or from a snippet you still have active?

Viewing 1 replies (of 1 total)
  • The topic ‘PHP fatal error’ is closed to new replies.