• 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)
  • Thread Starter Helen-kh

    (@helen-kh)

    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?

    I think you will need to do an incremental upgrade.

    Thread Starter Helen-kh

    (@helen-kh)

    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

    (@helen-kh)

    So, do you think if I switch he whole site with a new one, I am having problem with database?

    I am not sure. I would think db structure has changed. I think you may need to upgrade incrementally.

    https://codex.www.ads-software.com/Upgrading_WordPress_Extended# has instructions right the top.

    Thread Starter Helen-kh

    (@helen-kh)

    How can I upgrade when I can’t even get into it?

    Can I change the files?

    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

    (@helen-kh)

    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

    (@helen-kh)

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

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘receiving error on widget.php’ is closed to new replies.