WordPress.org

Ready to get started?Download WordPress

Forums

Fatal Error after editing functions.php (5 posts)

  1. jtl2744
    Member
    Posted 1 year ago #

    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?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Check what version of WordPress you are using.

  3. jtl2744
    Member
    Posted 1 year ago #

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

    Thanks in advance for any help

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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.

  5. jtl2744
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.