Title: receiving error on widget.php
Last modified: August 20, 2016

---

# receiving error on widget.php

 *  [Helen-kh](https://wordpress.org/support/users/helen-kh/)
 * (@helen-kh)
 * [14 years ago](https://wordpress.org/support/topic/receiving-error-on-widgetphp/)
 * Hi,
 * I am supposed to update a wordpress site which was made in 2009.
 * I have created a new theme based on twentyeleven on my local server and it is
   working well on my machine. (I changed some html/css only) then I uploaded only
   the theme to the server in the theme folder. I was expecting to activate the 
   new theme and be able to see it on the site. when I activated the new theme, 
   it gave me error in something with widget.php.
 * So, once I compared the old widget.php with my new widget.php, I noticed they
   MIGHT BE slightly different.
 * So, I switched the old widget.php with my new one. Still the site is giving me
   error with widget.php. So, I switched it back to old widget.php and still not
   working. when I type the url it gives me this error:Fatal error:
    Call to undefined
   function add_theme_support() in /home/wilmax1/public_html/wordpress/wp-includes/
   widgets.php on line 561
 * Does anybody knows how to solve this issue please?
    Hope I have explained it 
   OK. If need more info, let me know.
 * I’d really appreciate it.

Viewing 10 replies - 16 through 25 (of 25 total)

[←](https://wordpress.org/support/topic/receiving-error-on-widgetphp/?output_format=md)
[1](https://wordpress.org/support/topic/receiving-error-on-widgetphp/?output_format=md)
2

 *  Thread Starter [Helen-kh](https://wordpress.org/support/users/helen-kh/)
 * (@helen-kh)
 * [14 years ago](https://wordpress.org/support/topic/receiving-error-on-widgetphp/page/2/#post-2747823)
 * So, I am thinking if I get rid of the whole wordpress site and upload a new one
   and just change the parameters of database in config.php to the current database,
   it should work. right?
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [14 years ago](https://wordpress.org/support/topic/receiving-error-on-widgetphp/page/2/#post-2747826)
 * I think you will need to do an incremental upgrade.
 *  Thread Starter [Helen-kh](https://wordpress.org/support/users/helen-kh/)
 * (@helen-kh)
 * [14 years ago](https://wordpress.org/support/topic/receiving-error-on-widgetphp/page/2/#post-2747828)
 * The problem is that I can’t get into wp-admin of the site.
    Wondering if there
   is a way I can get into that than regular way?
 *  Thread Starter [Helen-kh](https://wordpress.org/support/users/helen-kh/)
 * (@helen-kh)
 * [14 years ago](https://wordpress.org/support/topic/receiving-error-on-widgetphp/page/2/#post-2747830)
 * So, do you think if I switch he whole site with a new one, I am having problem
   with database?
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [14 years ago](https://wordpress.org/support/topic/receiving-error-on-widgetphp/page/2/#post-2747831)
 * I am not sure. I would think db structure has changed. I think you may need to
   upgrade incrementally.
 * [http://codex.wordpress.org/Upgrading_WordPress_Extended#](http://codex.wordpress.org/Upgrading_WordPress_Extended#)
   has instructions right the top.
 *  Thread Starter [Helen-kh](https://wordpress.org/support/users/helen-kh/)
 * (@helen-kh)
 * [14 years ago](https://wordpress.org/support/topic/receiving-error-on-widgetphp/page/2/#post-2747832)
 * How can I upgrade when I can’t even get into it?
 * Can I change the files?
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [14 years ago](https://wordpress.org/support/topic/receiving-error-on-widgetphp/page/2/#post-2747839)
 * > I am sure I have put the right version of widget.php and when I looked for 
   > that function in it, there is nothing there.
 * Maybe you should upload it again. This `Fatal error: Call to undefined function
   add_theme_support() in /home/wilmax1/public_html/wordpress/wp-includes/widgets.
   php on line 561` shows it is a newer version of the file.
 *  Thread Starter [Helen-kh](https://wordpress.org/support/users/helen-kh/)
 * (@helen-kh)
 * [14 years ago](https://wordpress.org/support/topic/receiving-error-on-widgetphp/page/2/#post-2747841)
 * Believe me I have uploaded that version more than 10 times, even I did it through
   cPanel.
 * It should be the right one.
    But before I delete the new theme, when I still 
   could get to the wp-admin I tried to activate theme twentyeleven, and from then
   everything went wrong and I was out of admin panel. However, I deleted the theme
   through the server and uploaded the old widget.php.
 * Well, this was the same story as in the beginning of this thread 🙂
 *  Thread Starter [Helen-kh](https://wordpress.org/support/users/helen-kh/)
 * (@helen-kh)
 * [14 years ago](https://wordpress.org/support/topic/receiving-error-on-widgetphp/page/2/#post-2747845)
 * I don’t know what I did, but the site is back 🙂
    I am totally confused. Maybe
   the file was not getting uploaded correctly in my past attempts. But thanks for
   insisting on checking the file and uploading it again. Now, I need to upgrade.
   Can you tell me what you mean by upgrading incrementally? Does it mean to 2.9,
   then to 3, then to 3.1,…?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years ago](https://wordpress.org/support/topic/receiving-error-on-widgetphp/page/2/#post-2747934)
 * Yes. See [Upgrading_WordPress_Extended](http://codex.wordpress.org/Upgrading_WordPress_Extended).

Viewing 10 replies - 16 through 25 (of 25 total)

[←](https://wordpress.org/support/topic/receiving-error-on-widgetphp/?output_format=md)
[1](https://wordpress.org/support/topic/receiving-error-on-widgetphp/?output_format=md)
2

The topic ‘receiving error on widget.php’ is closed to new replies.

## Tags

 * [Call to undefined function:](https://wordpress.org/support/topic-tag/call-to-undefined-function/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 25 replies
 * 4 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/receiving-error-on-widgetphp/page/2/#post-2747934)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
