WordPress.org

Ready to get started?Download WordPress

Forums

DantoTube
[resolved] Help, Broken Theme (8 posts)

  1. happy_camper
    Member
    Posted 3 years ago #

    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.

    thanks

  2. Will White
    Member
    Posted 3 years ago #

    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.

  3. happy_camper
    Member
    Posted 3 years ago #

    Hiya,
    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?

    thanks

  4. Will White
    Member
    Posted 3 years ago #

    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.

  5. happy_camper
    Member
    Posted 3 years ago #

    Hiya,
    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?

    thanks

  6. Samuel B
    moderator
    Posted 3 years ago #

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

  7. happy_camper
    Member
    Posted 3 years ago #

    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?

  8. happy_camper
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic