Support » Fixing WordPress » Fatal Error after editing functions.php

  • Hi,

    I recently tried following the instructions for adding widgets to a header area in wordpress and had a typo when updating it. This results in:

    Fatal error: Call to undefined function reigster_sidebar() in /data/17/1/85/77/1737566/user/1876721/htdocs/proteus/wp-content/themes/twentyeleven/functions.php on line 439

    Obviously I had a typo in the “reigster” part. I deleted the offending change that I made to functions.php and tried to update again, but still get the same error message. I can’t navigate anywhere else within the admin area.

    Do I need to reinstall wordpress? Can I just upload a copy of the functions.php for the theme that I’m using somewhere?

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


    Forum Moderator

    Check what version of WordPress you are using.

    I installed wordpress two weeks ago — so the most recent version, 3.4.1

    Thanks in advance for any help



    Forum Moderator

    It should be register_sidebar() – not reigster_sidebar(). And don’t edit the Twenty Eleven theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. First create a child theme for your changes.

    When I attempted to change the sidebar to read correctly I got the fatal error message — same thing when I try to do ANYTHING from the admin section, even move to a different area.

    It’s a little late for me to go back on editing the Twenty Eleven theme… is there a way for me to just wipe the wordpress stuff completely (perhaps via my domain host, network solutions) and just start completely from the beginning?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error after editing functions.php’ is closed to new replies.