Title: Memory Issue
Last modified: January 5, 2025

---

# Memory Issue

 *  Resolved [bearstar](https://wordpress.org/support/users/bearstar/)
 * (@bearstar)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/memory-issue-10/)
 * Is anyone else seeing this error?
 * [05-Jan-2025 20:15:10 UTC] PHP Fatal error: Allowed memory size of 536870912 
   bytes exhausted (tried to allocate 266240 bytes) in /home2/xxx/public_html/wp-
   content/plugins/content-control/classes/Services/Globals.php on line 169
 * I tried rolling back to 2.4 but nothing changed.
 * It manifests as a critical error. Disabling Content Control seems to fix it, 
   but I do need the functionality it provides.

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

 *  Thread Starter [bearstar](https://wordpress.org/support/users/bearstar/)
 * (@bearstar)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/memory-issue-10/#post-18226611)
 * Update: version 2.3 seems to work OK.
 * We’re running WP 6.7 on php 8.2.18 at Bluehost.
 *  Plugin Support [Kim L](https://wordpress.org/support/users/kimmyx/)
 * (@kimmyx)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/memory-issue-10/#post-18246695)
 * Hi [@bearstar](https://wordpress.org/support/users/bearstar/),
 * Sorry to hear you encountered issues.
 * Could you send us a message with more information about the error via [Get Support – Content Control Plugin](https://contentcontrolplugin.com/support/)?
 * We might need to take a closer look.
 * We appreciate your patience and we’ll wait for your email!
 *  [gnata](https://wordpress.org/support/users/gnata/)
 * (@gnata)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/memory-issue-10/#post-18252872)
 * Hi, [@bearstar](https://wordpress.org/support/users/bearstar/) [@kimmyx](https://wordpress.org/support/users/kimmyx/)
   
   I have a trouble about the error.The moment I turn on the plugin, I get a 500
   error (White screen of death)
 * I really need the plugin, but I turned it off because of an error.
   please check
   this issue.
 * Thank you for reading.
 * + I reinstall the ver 2.3. and work done
    -  This reply was modified 1 year, 4 months ago by [gnata](https://wordpress.org/support/users/gnata/).
 *  [pesiiin](https://wordpress.org/support/users/pesiiin/)
 * (@pesiiin)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/memory-issue-10/#post-18271951)
 * Same here, after update to 2.5.0: **Fatal error**: Allowed memory size of 536870912
   bytes exhausted (tried to allocate 266240 bytes) in **/data/web/virtuals/314931/
   virtual/www/wp-content/plugins/content-control/classes/Services/Globals.php**
   on line **169**
 * Roll back to 2.3.0 solved issue for now
 *  Plugin Author [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/memory-issue-10/#post-18360770)
 * [@bearstar](https://wordpress.org/support/users/bearstar/) [@pesiiin](https://wordpress.org/support/users/pesiiin/)
   [@gnata](https://wordpress.org/support/users/gnata/) – Can you elaborate on your
   usage of the plugin. Are you using global restrictions, block controls, shortcodes?
 * Do you have a lot of usage, or just one global restriction for example.
 *  Thread Starter [bearstar](https://wordpress.org/support/users/bearstar/)
 * (@bearstar)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/memory-issue-10/#post-18361720)
 * Good timing, Daniel. I thought that perhaps 2.6 had solved the issue, but it’s
   apparently still happening:
 * [14-Mar-2025 16:24:35 UTC] PHP Fatal error: Allowed memory size of 536870912 
   bytes exhausted (tried to allocate 266240 bytes) in /home2/empowfe0/public_html/
   wp-content/plugins/content-control/classes/Services/Globals.php on line 169
 * Rolling back to 2.3 fixes the critical error messages and whites screen for non-
   logged in visitors (and the site became super slow)
 * To your question, we have 4 rules, each pretty generic with nothing changed from
   defaults: Restriction > Redirect > Login and back > One page selected
 *  Plugin Author [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/memory-issue-10/#post-18362496)
 * [@bearstar](https://wordpress.org/support/users/bearstar/) – Pushing an update
   shortly that should reduce heavily the memory usage in these particular functions.
   No idea if it resolves yours specifically but was a safe & performant change 
   just he same.
 *  Thread Starter [bearstar](https://wordpress.org/support/users/bearstar/)
 * (@bearstar)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/memory-issue-10/#post-18363102)
 * Thanks, Daniel. I found another plugin that might have been filling the stack:
   Search Exclude
 * [https://wordpress.org/support/topic/incompatibility-with-content-control-plugin-causes-critical-error/](https://wordpress.org/support/topic/incompatibility-with-content-control-plugin-causes-critical-error/)
 *  Plugin Author [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/memory-issue-10/#post-18375941)
 * [@bearstar](https://wordpress.org/support/users/bearstar/) thanks, got that on
   my radar now.
 *  [pesiiin](https://wordpress.org/support/users/pesiiin/)
 * (@pesiiin)
 * [11 months ago](https://wordpress.org/support/topic/memory-issue-10/#post-18550530)
 * Tried to update today to last version and error is back 🙁
 * **Fatal error**: Allowed memory size of 536870912 bytes exhausted (tried to allocate
   266240 bytes) in **/data/web/virtuals/314931/virtual/www/wp-content/plugins/content-
   control/classes/Services/Globals.php** on line **169**

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

The topic ‘Memory Issue’ is closed to new replies.

 * ![](https://ps.w.org/content-control/assets/icon-256x256.gif?rev=2968535)
 * [Content Control - The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More](https://wordpress.org/plugins/content-control/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-control/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-control/)
 * [Active Topics](https://wordpress.org/support/plugin/content-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-control/reviews/)

 * 10 replies
 * 5 participants
 * Last reply from: [pesiiin](https://wordpress.org/support/users/pesiiin/)
 * Last activity: [11 months ago](https://wordpress.org/support/topic/memory-issue-10/#post-18550530)
 * Status: resolved