• Resolved n0ts0smart

    (@efpeterson)


    Hi all,

    It seems like every time I update WordPress it modifies the default_constants.php and lowers the WP Memory Limits to 64 megs. This kills the functionality of my site and I have to go back in and increase the Memory Limit each time. Is there a way to set this permanently? Any help would be greatly appreciated. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • As you’ve just discovered, WordPress overwrites all core files when it updates. Instead, you can set the memory limit in php.ini, if you have access:

    memory_limit = 128M

    You might also be able to set it in wp-config.php, one of the few files that doesn’t get overwritten on a WordPress upgrade:

    define( 'WP_MEMORY_LIMIT', '128M' );

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    The moral of what Stephen is saying is do not modify core files.

    Thread Starter n0ts0smart

    (@efpeterson)

    No access to the php.ini file, but I’ll give the wp-config file a shot. Thanks!

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

The topic ‘Stop WordPress from Auto Updating WP Memory Limit’ is closed to new replies.