Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WC System Status: WP Memory Limit not reflect #2463

Closed
watchteller opened this issue Feb 16, 2013 · 7 comments
Closed

WC System Status: WP Memory Limit not reflect #2463

watchteller opened this issue Feb 16, 2013 · 7 comments

Comments

@watchteller
Copy link

Hi,

My the PHP Memory Limit was 128MB and I had increased my WP Memory Limit to 64MB and Max WP Memory to 96MB (and verified by server techical support) but the WooCommerce System Status still shown WP Memory Limit was 40MB - We recommend setting memory to at least 64MB. See: Increasing memory allocated to PHP.

Pls fix it!

@mikejolley
Copy link
Member

@samliem
Copy link

samliem commented Apr 4, 2013

I hosts my site in hostgator.
The memory limit has been increased into 1048M, as you see it here : http://webtoko.tk/phpinfo.php
I also has added this command line define('WP_MEMORY_LIMIT', '96M'); into wp-config.php
but I still get the warning.

What else to be set?

thanks

@mikejolley
Copy link
Member

All I can say is you must have added WP_MEMORY_LIMIT in the wrong place :) Its a constant - it can't be wrong.

@samliem
Copy link

samliem commented Apr 4, 2013

I write the line code in the end of wp-config, like this :

...........

/**

  • WordPress Database Table prefix.
    *
  • You can have multiple installations in one database if you give each a
    unique
  • prefix. Only numbers, letters, and underscores please!
    */
    $table_prefix = 'wp_';

/**

  • WordPress Localized Language, defaults to English.
    *
  • Change this to localize WordPress. A corresponding MO file for the chosen
  • language must be installed to wp-content/languages. For example, install
  • de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable
    German
  • language support.
    */
    define('WPLANG', '');

/**

  • For developers: WordPress debugging mode.
    *
  • Change this to true to enable the display of notices during development.
  • It is strongly recommended that plugin and theme developers use WP_DEBUG
  • in their development environments.
    */
    define('WP_DEBUG', false);

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

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(FILE) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

/** WooCommerce Plugin */
define('WP_MEMORY_LIMIT', '96M');

Thanks

On Thu, Apr 4, 2013 at 4:22 PM, Mike Jolley notifications@github.comwrote:

All I can say is you must have added WP_MEMORY_LIMIT in the wrong place :)
Its a constant - it can't be wrong.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2463#issuecomment-15887360
.

@mikejolley
Copy link
Member

Too late. Move it higher. The comments in that file are pretty self explanatory:

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

@samliem
Copy link

samliem commented Apr 4, 2013

Yes. It's wrong location.
Thanks for your help. Now the message has been disappeared.

On Thu, Apr 4, 2013 at 4:26 PM, Mike Jolley notifications@github.comwrote:

Too late. Move it higher. The comments in that file are pretty self
explanatory:

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

Reply to this email directly or view it on GitHubhttps://github.com//issues/2463#issuecomment-15887525
.

@nicolecurioni
Copy link

You've just saved my life :D so stupid thing.. but i also put the define('WP_MEMORY_LIMIT', '96M'); at the end of config.php and wasn't working... Thanks again 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants