• 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)
  • 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

    (@alinagp)

    I’ve already changed them back. That is why I don’t understand why do I still get the white screen.

    Do you have a caching plugin active?
    can you get into the backend now?

    Thread Starter AlinaGP

    (@alinagp)

    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.