• Resolved tommcgee

    (@tommcgee)


    I’m getting PHP fatal errors when I try to update the user roles across all sites.

    [22-Sep-2015 20:14:02] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 166137 bytes) in /var/www/html/wp-content/object-cache.php on line 146

    What’s odd is that I’ve increased the memory allocation to 512M every place I can find. That includes /etc/php.ini, wp-config.php and even php.ini files within the wp-content and wp-admin folders.

    [22-Sep-2015 20:26:04] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 147519 bytes) in /var/www/html/wp-content/object-cache.php on line 146
    [22-Sep-2015 20:28:24] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 147519 bytes) in /var/www/html/wp-content/object-cache.php on line 146

    Why is the memory allocation stuck? Or does it have something to do with caching?

    https://www.ads-software.com/plugins/user-role-editor/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    I suppose you have a lot of sites at your network.
    Will it help if you define

    define('URE_MULTISITE_DIRECT_UPDATE', 1);

    at wp-config.php?
    In this case “User Role Editor” makes multisite update directly using the database queries instead of switching blogs one by one and updating roles using WordPress API.

    Thread Starter tommcgee

    (@tommcgee)

    Yes, we have >6,000 sites!

    I added the line to the wp-config file and it seems to do the trick. It takes a while, naturally, but it finishes and there were no errors.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Out of memory errors’ is closed to new replies.