WordPress.org

Forums

Can't access site after FTPing functions.php file, Fatal error (3 posts)

  1. Sam
    Member
    Posted 2 years ago #

    Help please!
    I am using a child theme in Twenty Eleven, and was trying to register a new widget in my functions.php file. When I uploaded it I got: Fatal error: Cannot redeclare mysql2date... so I tried to upload a fresh functions.php and get this now:

    Fatal error: Cannot redeclare twentyeleven_excerpt_length() (previously declared in /home/content/23/6755123/html/fhnb/wp-content/themes/FHNB/functions.php:335) in /home/content/23/6755123/html/fhnb/wp-content/themes/twentyeleven/functions.php on line 337

  2. Use FTP to rename the child theme folder to disable it and WordPress should default to the parent theme.

  3. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    Or, just revert to the backup file you should have made whenever editing a site...

Topic Closed

This topic has been closed to new replies.

About this Topic