WordPress.org

Support

Support » How-To and Troubleshooting » Can't access site after FTPing functions.php file, Fatal error

Can't access site after FTPing functions.php file, Fatal error

  • Sam

    @lt1833

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Mark Ratledge

    @songdogtech

    Forum Moderator

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

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can't access site after FTPing functions.php file, Fatal error’ is closed to new replies.
Skip to toolbar