admin管理员组

文章数量:1122832

i have already searched here and tried a lot of things, but my problem still is "alive"

It is possible to set WP_MEMORY_LIMIT within the default-constants.php and this works fine, but every time I update wordpress I have to make this setting again. So my wp-config.php does not overwrite the setting in the default-config.php.

The wp-config-file was created directly from wordpress automatically.

I have checked this thread, my setting for WP_MEMEORY_LIMIT is directly below WP_DEBUG and before ABSPATH is defined.

$table_prefix  = 'hp365_01_';

define('WP_DEBUG', false);
define(‘WP_MEMORY_LIMIT’, ’128M’);

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

Maybe somebody has the same problem ?

i have already searched here and tried a lot of things, but my problem still is "alive"

It is possible to set WP_MEMORY_LIMIT within the default-constants.php and this works fine, but every time I update wordpress I have to make this setting again. So my wp-config.php does not overwrite the setting in the default-config.php.

The wp-config-file was created directly from wordpress automatically.

I have checked this thread, my setting for WP_MEMEORY_LIMIT is directly below WP_DEBUG and before ABSPATH is defined.

$table_prefix  = 'hp365_01_';

define('WP_DEBUG', false);
define(‘WP_MEMORY_LIMIT’, ’128M’);

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

Maybe somebody has the same problem ?

Share Improve this question edited Feb 9, 2018 at 11:12 kero 6,3101 gold badge25 silver badges34 bronze badges asked Feb 9, 2018 at 9:16 PapejooPapejoo 32 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 2

Your code appears to be using he incorrect quote characters. You have instead of '. This can happen if you copy it from a site where the quotes have been converted to ‘fancy quotes’ by the publishing platform but the author didn’t catch it.

So replace

define(‘WP_MEMORY_LIMIT’, ’128M’);

With

define('WP_MEMORY_LIMIT', '128M');

I just had the same problem, thank you so much for the answer!! You just saved my website, I was facing http 500 error and started panicking.

The only thing is I never edited the wp config file, the wrong quote characters appeared by themselves, my website was up and running since 2021 until today, how can it be possible?

本文标签: memoryWPMEMORYLIMIT didn39t work in wpconfigonly within defaultconstantsphp