Fatal error : Cannot access offset of type string on string in "class-wp-roles.php" on line 290

Some more details, this error is happening after enabling the live link and trying to access it.

  • Multisite with subdomains
  • Ngnix
  • PHP 8.0
  • MySQL 8.0.16
  • WP 5.8.1
  • Instant Reload Addon is enabled.

wp_user_role becomes:

a:5:{s:13:"administrator";s:5:"Array";s:6:"editor";s:5:"Array";s:6:"author";s:5:"Array";s:11:"contributor";s:5:"Array";s:10:"subscriber";s:5:"Array";}