0

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 ?

2 Answers 2

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');
1
  • just tested, it works now fine, thanks a lot !! ;)
    – Papejoo
    Commented Feb 9, 2018 at 10:47
0

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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.