• My website is down and I receive below error message. This appears accidental as I opened the function.php (via FTP) but didn’t mean to make any changes. Any help how I can restore my site will be much appreciated.

    Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /home/headlinerseat/public_html/wp-includes/functions.php on line 830

Viewing 4 replies - 1 through 4 (of 4 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try replacing the core WordPress files. Pay attention to the bits in bold:

    Try downloading WordPress again and delete then replace your copies of everything except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings. Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

    Thread Starter cornellazar

    (@cornellazar)

    Thanks. Will try this. Just making backups. Must that also include the admin files?

    Thread Starter cornellazar

    (@cornellazar)

    This doesn’t seem to have solved it. I’m now getting this message.

    Warning: require(/home/headlinerseat/public_html/wp-includes/functions.php): failed to open stream: No such file or directory in /home/headlinerseat/public_html/wp-settings.php on line 81

    Fatal error: require(): Failed opening required ‘/home/headlinerseat/public_html/wp-includes/functions.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/headlinerseat/public_html/wp-settings.php on line 81

    Thread Starter cornellazar

    (@cornellazar)

    Problem solved. As expected it was an accidental error on my part. I re-uploaded all files and discovered I accidentally added a character that shouldn’t have been there.

    Thanks for your help, Andrew Nevins. Your input certainly helped me focusing in on the issue.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Function.php returns Parse error’ is closed to new replies.