Title: Parse error: syntax error due to PHP rendering
Last modified: August 20, 2016

---

# Parse error: syntax error due to PHP rendering

 *  Resolved [Habbakuk](https://wordpress.org/support/users/habbakuk/)
 * (@habbakuk)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/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 12`
 * How 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.

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-due-to-php-rendering/#post-2500495)
 * You may need to re-create your wp-config.php file. This time make sure that you
   use a plain text editor and upload the file in ASCII format.

Viewing 1 replies (of 1 total)

The topic ‘Parse error: syntax error due to PHP rendering’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-due-to-php-rendering/#post-2500495)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
