Parse error: syntax error due to PHP rendering
-
I had problems when making posts due to memory, getting the error Fatal error: Allowed memory size of 33554432 bytes exhausted, so I added the following code into my wp_config.php file:
define('WP_MEMORY_LIMIT', '64M');After I saved it, and checked wp_config.php using Filezilla, the php code was all messed up and rendering all on one line like this:
Since then, my website does not work as I keep getting this error:
Parse error: syntax error, unexpected T_STRING in /home/gobeyond/public_html/wp-config.php on line 12How can I fix the php code so that it shows up and renders properly again?
Nvm, found a sample wp_config.php, and changed mine to match it. Fixed.
The topic ‘Parse error: syntax error due to PHP rendering’ is closed to new replies.