0

NOT A DUPLICATE

I am building a local WordPress website using XAMPP as my server. When trying to run my website, I get the follow error:

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in C:\xampp\htdocs\testwordpress.com\wp-includes\cache.php on line 548

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0

I added the define( 'WP_MEMORY_LIMIT', '256M' );to my config file as well as changing the php.ini memory limit too memory_limit = 256M.

I restarted my server, cleared my cashe and the website still throws this error. Please help :(

EDIT: I followed the instructions here and this did not fix my problem.

Temple
  • 199
  • 1
  • 1
  • 10
  • 2
    I like that you attempted to solve running out of RAM at 256M by *reducing* the limit to 128. Not sure what you thought that would accomplish... – ceejayoz Aug 07 '17 at 00:40
  • Well have you got a custom theme or code ? You probably have a really big object being created through a bad foreach loop or something... – giolliano sulit Aug 07 '17 at 01:14

0 Answers0