Title: Fatal error when plugin activated
Last modified: April 5, 2024

---

# Fatal error when plugin activated

 *  Resolved [Morten Ellegaard Larsen](https://wordpress.org/support/users/ellegaarddk/)
 * (@ellegaarddk)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-when-plugin-activated-6/)
 * When activated WP crashed with fatal error. This is from the debug.log:
   [05-Apr-
   2024 09:56:11 UTC] PHP Fatal error: Declaration of RCP\lucatume\DI52\Container::
   has($id) must be compatible with Psr\Container\ContainerInterface::has(string
   $id): bool in /wp-content/plugins/restrict-content/vendor/strauss/lucatume/di52/
   src/Container.php on line 294WP 6.5, PHP 8.0,
 * There’s no current staging version of this website, but I have a txt from Website
   Health. And I might be able to create a staging site if needed.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-when-plugin-activated-6%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [ramilbatoy](https://wordpress.org/support/users/ramilbatoy/)
 * (@ramilbatoy)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-when-plugin-activated-6/#post-17683657)
 * Hi @@ellegaarddk
   Do you have the latest version of RC installed (3.2.9)? If so
   and still experiencing this error, I suggest re-installing the plugin and manually
   uploading it to your WordPress site. See: [](https://wordpress.org/plugins/restrict-content/)
   [https://wordpress.org/plugins/restrict-content/](https://wordpress.org/plugins/restrict-content/)
   If the issue still persists, could you try running a plugin/theme conflict test
   on your website? Try to deactivate your plugins one by one until you find out
   which one is causing the conflict.And try to switch to a default WordPress theme
   to see if this helps.
 * See: [https://restrictcontentpro.com/knowledgebase/testing-for-conflicts-with-themes-and-other-plugins/](https://restrictcontentpro.com/knowledgebase/testing-for-conflicts-with-themes-and-other-plugins/)
 *  Plugin Support [ramilbatoy](https://wordpress.org/support/users/ramilbatoy/)
 * (@ramilbatoy)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-plugin-activated-6/#post-17841121)
 * Hey @ellegaarddk
 * This thread has been inactive for a while so we’re going to go ahead and mark
   it Resolved. Please feel free to open a new thread if any other questions come
   up and we’d be happy to help.

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

The topic ‘Fatal error when plugin activated’ is closed to new replies.

 * ![](https://ps.w.org/restrict-content/assets/icon.svg?rev=3529325)
 * [Membership Plugin - Kadence Memberships](https://wordpress.org/plugins/restrict-content/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restrict-content/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restrict-content/)
 * [Active Topics](https://wordpress.org/support/plugin/restrict-content/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restrict-content/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restrict-content/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ramilbatoy](https://wordpress.org/support/users/ramilbatoy/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-plugin-activated-6/#post-17841121)
 * Status: resolved