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 badges2 Answers
Reset to default 2Your 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
版权声明:本文标题:memory - WP_MEMORY_LIMIT didn't work in wp-config, only within default-constants.php 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736303069a1931758.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论