syntax error when I increase memory limit in default-constants.php

Avatar
  • Answered
Hi,
I tried to modify home/zeekwe5/public_html/wp-includes/default-constants.php as I wanted to increase memory limit. But I am having my below error and my site is unaccessible. Please help ! I have tried replacing the file with fresh default_constants.php , but it did not work.

Parse error: syntax error, unexpected '');' (T_CONSTANT_ENCAPSED_STRING) in /home/zeekwe5/public_html/wp-includes/default-constants.php on line 27

Thanks,
Tin
Avatar
Arn
Hello Tin, Sorry for the problem with the syntax error that you're seeing in your WordPress site. Your best course of action is go back and revert your default-constants.php file so that it is the same as prior to your change. If necessary, you can download a fresh copy of WordPress and obtain the default file. If you need to increase memory limits, check out this article: Fixing the Allowed memory size exhausted error. I hope this helps to answer your question, please let us know if you require any further assistance. Regards, Arnel C.