jigoshop says to increase memory limit... it links to this

Hi, jigoshop says to increase memory limit... it links to this info... http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

But i dont' know where to make the change in the config file.

Can you tell me where to put it in the config file.

  • Emex Online
    • The Incredible Code Injector

    Increasing memory allocated to PHP
    Also released with Version 2.5, the WP_MEMORY_LIMIT option allows you to specify the maximum amount of memory that can be consumed by PHP. This setting may be necessary in the event you receive a message such as "Allowed memory size of xxxxxx bytes exhausted".

    This setting increases PHP Memory only for WordPress, not other applications. By default, WordPress will attempt to increase memory allocated to PHP to 40MB (code is at beginning of wp-settings.php), so the setting in wp-config.php should reflect something higher than 40MB.

    WordPress will automatically check if PHP has been allocated less memory than the entered value before utilizing this function. For example, if PHP has been allocated 64MB, there is no need to set this value to 64M as WordPress will automatically use all 64MB if need be.

    Please note, this setting may not work if your host does not allow for increasing the PHP memory limit--in that event, contact your host to increase the PHP memory limit. Also, note that many hosts set the PHP limit at 8MB.

    Increase PHP Memory to 64MB

    define( 'WP_MEMORY_LIMIT', '64M' );
    Increase PHP Memory to 96MB

    define( 'WP_MEMORY_LIMIT', '96M' );
    When in the administration area, the memory can be increased or decreased from the WP_MEMORY_LIMIT by defining WP_MAX_MEMORY_LIMIT.

    define( 'WP_MAX_MEMORY_LIMIT', '256M' );
    Please note, this has to be put before wp-settings.php inclusion.

  • Tyler Postle
    • CGO

    Hey Emex,

    We meet again :slight_smile:

    You can put this right above the:

    /* That's all, stop editing! Happy blogging. */

    I've attached a screenshot to illustrate.

    It doesn't have to be 256m like in my screenshot. That is usually just the max. 64m or 96m is often plenty.

    Let us know if you need any further assistance with this :slight_smile:


    PS. The line probably doesn't exist yet unless you already added it in before, so you can just copy and paste it right in so it looks like my screenshot.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.