Title: white screen after increasing php memory
Last modified: August 30, 2016

---

# white screen after increasing php memory

 *  [AlinaGP](https://wordpress.org/support/users/alinagp/)
 * (@alinagp)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/white-screen-after-increasing-php-memory/)
 * Hey guys!
 * I’m a wordpress noob, and apparently also an idiot.
    The latest update from woo
   commerce required to increase php memory from 40 MB to 64 MB. I tried to do that
   by adding this line at the very end of the wp-config.php
 * define( ‘WP_MEMORY_LIMIT’, ’64M’ );
 * But I didn’t understand the tutorial, so I also went to /wp-includes/default-
   constants.php and changed these lines
 * if ( is_multisite() ) {
    define(‘WP_MEMORY_LIMIT’, ’64M’); } else { define(‘WP_MEMORY_LIMIT’,‘
   40M’); }
 * into this
 * if ( is_multisite() ) {
    define(‘WP_MEMORY_LIMIT’, ’64M’); } else { define(‘WP_MEMORY_LIMIT’,‘
   64M’); }
 * And then I got a white screen on the front and the back end of the website.
 * After that, I changed both files to their initial status, and I uploaded both
   of them on the website. But I still get the white screen.
 * Do you have any idea how I could fix this?
    Do I have to reinstall wordpress?
   How do I do that without losing all my data?

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

 *  [juggledad](https://wordpress.org/support/users/juggledad/)
 * (@juggledad)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/white-screen-after-increasing-php-memory/#post-6607108)
 * 1) it is not a good idea to change teh wp core code – so change it back
    2) no
   matter what you set your mempry to, your host may be limiting the amount you 
   get. Generally the less you pasy your host for hosting, the less memory you get.
 * so you should
    1) change the WP code back to it’s original state and 2) contact
   your hose and ask them to increase your php memory – note: they may charge you
   for this.
 *  Thread Starter [AlinaGP](https://wordpress.org/support/users/alinagp/)
 * (@alinagp)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/white-screen-after-increasing-php-memory/#post-6607115)
 * I’ve already changed them back. That is why I don’t understand why do I still
   get the white screen.
 *  [juggledad](https://wordpress.org/support/users/juggledad/)
 * (@juggledad)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/white-screen-after-increasing-php-memory/#post-6607197)
 * Do you have a caching plugin active?
    can you get into the backend now?
 *  Thread Starter [AlinaGP](https://wordpress.org/support/users/alinagp/)
 * (@alinagp)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/white-screen-after-increasing-php-memory/#post-6607203)
 * I just managed to solve the problem by deleting the default-constants.php. And
   then I copied in its place the same file from another installation I had on my
   server.
 * I also managed to increase the php memory by adding this line in the wp-config.
   php
    define( ‘WP_MEMORY_LIMIT’, ’64M’ ); after this one define(‘DB_COLLATE’, ”);
 * Previously I tried to put it at the end in the wp-config file. In the tutorial
   it didn’t say where exactly I was supposed to write it.
 * So my shop is up and running. The only problem that remains is that the woo commerce
   won’t send notification for orders at all. Which is what started all this business
   in the first place. Though now I increased the php memory and I also changed 
   the php version as required.

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

The topic ‘white screen after increasing php memory’ is closed to new replies.

## Tags

 * [white screen of death](https://wordpress.org/support/topic-tag/white-screen-of-death/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [AlinaGP](https://wordpress.org/support/users/alinagp/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/white-screen-after-increasing-php-memory/#post-6607203)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
