Title: Syntax error: Website down. Please help!
Last modified: September 29, 2016

---

# Syntax error: Website down. Please help!

 *  Resolved [taymbrown](https://wordpress.org/support/users/taymbrown/)
 * (@taymbrown)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-website-down-please-help/)
 * Hi all,
 * I was trying to add a small code in my functions.php file in the excerpt section,
   and now I can’t get my site back. I have tried to re-upload my functions file
   in my FileZilla, but nothing is working!
 * my site is: [http://www.thestyledpress.com](http://www.thestyledpress.com)
 * Any help appreciated. I don’t know what to do at this point.
    Thanks!
    -  This topic was modified 9 years, 8 months ago by [taymbrown](https://wordpress.org/support/users/taymbrown/).

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/syntax-error-website-down-please-help/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/syntax-error-website-down-please-help/page/2/?output_format=md)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-website-down-please-help/#post-8232724)
 * It looks like you no longer have a functions.php file — the one from WordPress
   core is missing.
 * Download a fresh copy of wordpress from wordpress.org. Unzip locally and upload
   wp-includes/functions.php to wp-includes on your server using FTP.
 * NEVER edit core files!
 *  [bhawanvirk](https://wordpress.org/support/users/bhawanvirk/)
 * (@bhawanvirk)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-website-down-please-help/#post-8232726)
 * can you post some of the code you modified?
 *  Thread Starter [taymbrown](https://wordpress.org/support/users/taymbrown/)
 * (@taymbrown)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-website-down-please-help/#post-8232731)
 * //////////////////////////////////////////////////////////////////
    // THE EXCERPT//////////////////////////////////////////////////////////////////
   function custom_excerpt_length( $length ) { return 200; } add_filter( ‘excerpt_length’,‘
   custom_excerpt_length’, 999 );
 * function sp_string_limit_words($string, $word_limit)
    { $words = explode(‘ ‘,
   $string, ($word_limit + 1));
 *  if(count($words) > $word_limit) {
    array_pop($words); }
 *  return implode(‘ ‘, $words);
    }
 *  Thread Starter [taymbrown](https://wordpress.org/support/users/taymbrown/)
 * (@taymbrown)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-website-down-please-help/#post-8232735)
 * Steve, will I have to start everything from scratch after doing so?
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-website-down-please-help/#post-8232736)
 * No, just replace the file you deleted. and NEVER EVER EVER (ever) edit core files.
 * If you must edit theme files, create a child theme.
 * [https://codex.wordpress.org/Child_Themes](https://codex.wordpress.org/Child_Themes)
 *  Thread Starter [taymbrown](https://wordpress.org/support/users/taymbrown/)
 * (@taymbrown)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-website-down-please-help/#post-8232745)
 * Thank you for your prompt responses, Steve. I have done what you said, and now
   I have just one error message.
 * “**Fatal error: Cannot redeclare is_ssl() (previously declared in /home/thesty28/
   public_html/wp-includes/load.php:964) in /home/thesty28/public_html/wp-includes/
   functions.php on line 3758**”
 *  [bhawanvirk](https://wordpress.org/support/users/bhawanvirk/)
 * (@bhawanvirk)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-website-down-please-help/#post-8232760)
 * replace load.php in wp-includes folder with the one that you have just downloaded.
 *  Thread Starter [taymbrown](https://wordpress.org/support/users/taymbrown/)
 * (@taymbrown)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-website-down-please-help/#post-8232770)
 * Now I have this error:
 * ”
    Fatal error: Call to undefined function wp_convert_hr_to_bytes() in /home/
   thesty28/public_html/wp-includes/default-constants.php on line 32″
 *  Thread Starter [taymbrown](https://wordpress.org/support/users/taymbrown/)
 * (@taymbrown)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-website-down-please-help/#post-8232772)
 * Replace default-constants.php with the new one?
 *  [bhawanvirk](https://wordpress.org/support/users/bhawanvirk/)
 * (@bhawanvirk)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-website-down-please-help/#post-8232780)
 * it looks like the copy of wordpress that you have downloaded is old. Here are
   links to the current version of load.php and functions.php that you should try:
 * load.php :
    [https://github.com/WordPress/WordPress/blob/master/wp-includes/load.php](https://github.com/WordPress/WordPress/blob/master/wp-includes/load.php)
 * functions.php :
    [https://github.com/WordPress/WordPress/blob/master/wp-includes/functions.php](https://github.com/WordPress/WordPress/blob/master/wp-includes/functions.php)
 * hit the raw button on both pages and copy paste the code in corresponding files
 *  Thread Starter [taymbrown](https://wordpress.org/support/users/taymbrown/)
 * (@taymbrown)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-website-down-please-help/#post-8232795)
 * I appreciate you helping me out with this!
 * Now my site reads this-
 * “Fatal error: Cannot redeclare is_wp_error() (previously declared in /home/thesty28/
   public_html/wp-includes/load.php:1068) in /home/thesty28/public_html/wp-includes/
   class-wp-error.php on line 218”
 *  [bhawanvirk](https://wordpress.org/support/users/bhawanvirk/)
 * (@bhawanvirk)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-website-down-please-help/#post-8232798)
 * replace class-wp-error.php too 🙂
 * [https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-error.php](https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-error.php)
 * if this works then i would highly recommend you to update your wordpress from
   admin panel
    -  This reply was modified 9 years, 8 months ago by [bhawanvirk](https://wordpress.org/support/users/bhawanvirk/).
 *  Thread Starter [taymbrown](https://wordpress.org/support/users/taymbrown/)
 * (@taymbrown)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-website-down-please-help/#post-8232808)
 * My error now reads
 * “Parse error: syntax error, unexpected ‘}’ in /home/thesty28/public_html/wp-content/
   themes/rosemary/functions.php on line 295”
 * this was the first error I got when I tried to change the code! I think that 
   means we are on the right track. 🙂
 *  [bhawanvirk](https://wordpress.org/support/users/bhawanvirk/)
 * (@bhawanvirk)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-website-down-please-help/#post-8232809)
 * yes now the core looks fine, just delete that extra curly brace from your themes
   functions.php file on line 295
 *  Thread Starter [taymbrown](https://wordpress.org/support/users/taymbrown/)
 * (@taymbrown)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-website-down-please-help/#post-8232829)
 * ahhh 🙁

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/syntax-error-website-down-please-help/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/syntax-error-website-down-please-help/page/2/?output_format=md)

The topic ‘Syntax error: Website down. Please help!’ is closed to new replies.

## Tags

 * [Crash](https://wordpress.org/support/topic-tag/crash/)
 * [css](https://wordpress.org/support/topic-tag/css/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 21 replies
 * 4 participants
 * Last reply from: [sherri1562](https://wordpress.org/support/users/sherri1562/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-website-down-please-help/page/2/#post-8260889)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
