Support » Fixing WordPress » Help, Broken Theme

  • Resolved happy_camper


    After trying to make slight changes to widget.php in my theme, i replaced the original widget.php file, but I keep getting this error message. Does anyone know what’s wrong with it?

    Fatal error: Class ‘WP_Widget’ not found in /home/bddbcouk/public_html/wordpress/wp-includes/widgets.php on line 7

    I have tried everything I can think of to fix this but nothing works.
    Shoule i re-install wordpress?
    I don’t want to because I recently upgraded.


Viewing 7 replies - 1 through 7 (of 7 total)
  • Try enabling the default theme. If this fixes the problem, its within your theme files alone – and we’ll need a link to figure it out. If changing the theme doesn’t work than its your wordpress files.

    I recommend downloading a fresh copy of your version of wordpress, then uploading (only) the widget.php file straight from there. Be sure its the same version of WP – the latest version 3.0 had some big changes in it.

    thanks for your reply. I can’t even logon to the dashboard to change to the default theme.
    I can’t remember what version of WP I’m using, is there a way to find out from the Control Panel?


    You’ll need to upload the widgets.php file manually.

    WordPress 3.0 was released only a week or two ago, so if you updated your wordpress since then, you’re probably on 3.0. Download WP and unzip it. Find widgets.php in the wp-includes folder.

    Load your site via FTP – you can use programs like Filezilla, or Fetch.

    Navigate through public-html -> wp-includes and upload the widgets.php file over top of the old one.

    I since realised I am on v.2.9.2. so I did as u said and downloaded it and went through the FTP. Still the same message.

    I am running out of options and thinking I may soon have to resort to re-installing wordpress.

    Would you think there is any benefit in backing up the database now or would I be just saving corrupt data?


    ftp to site and rename current theme folder
    this will bring up default theme and let you log in and test

    I don’t follow you. Do you mean go through the control panel and find the theme folder (I am using arras-theme).
    I am thinking the obvious right click and change the name.
    Or did I misinterpret your directions?

    Hi Samboll and WillPCG.
    I have got it sorted now, I re installed WordPress and deleted the theme files. That got it working. I really did a job on corrupting the files.

    Thanks again for your help.

    This topic is now resolved.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Help, Broken Theme’ is closed to new replies.