WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] * URGENT* NEED HELP ASAP! Lost Site - Fatal Error: Call to undefined function (16 posts)

  1. Namdead
    Member
    Posted 3 years ago #

    Hey Guys,

    I'm freaking out at the moment. I was trying to update my theme for my blog because it needed a new fresh theme and wanted to learn how to put excerpts on my site.

    I followed a tutorial online and after I did and hit "save" in Theme Editor I got the follow message when It try to do anything on my site

    Fatal error: Call to undefined function: add_post_type_support() in /homepages/33/d221537071/htdocs/gaming411/wp-content/themes/rapid/functions.php on line 151

    I have NO idea what it means and I kind of need my site back like NOW!

    PLEASE HELP!!!!

  2. johnibom
    Member
    Posted 3 years ago #

    I am sure that you know the name of that particular file of theme..

    locate the site via FTP, edit that file and remove the code you put!

  3. Namdead
    Member
    Posted 3 years ago #

    I followed a site and it told me to

    1. Open functions.php in your theme editor.

    2. Add this line where you find appropriate:
    add_post_type_support( 'page', 'excerpt' ); // Enable excerpts for pages.

    and once I did that and clicked saved...BAM gone :/ I'm really freaking out over this I have no backup of the site and can't lose it all.

  4. Namdead
    Member
    Posted 3 years ago #

    Umm alright so when I type in the URL

    http://www.gaming411.net/wp-content/themes/rapid/functions.php

    It gives me the follow error:

    Fatal error: Call to undefined function: remove_shortcode() in /homepages/33/d221537071/htdocs/gaming411/wp-content/themes/rapid/functions.php on line 107

    BEFORE the error code was:

    Fatal error: Call to undefined function: add_post_type_support() in /homepages/33/d221537071/htdocs/gaming411/wp-content/themes/rapid/functions.php on line 151

    NOW IM REALLY CONFUSED!?!?!?

  5. johnibom
    Member
    Posted 3 years ago #

    you don't need to browse the function file but modify it by FTP or CONTROL PANEL's FILE MANAGER of your hosting!
    REMOVE That line of code.

  6. Namdead
    Member
    Posted 3 years ago #

    So all I have to do is somehow get into the FTP or Control Panel of the site and remove that line of code which I put in?

    The end result will me getting my site back?

  7. johnibom
    Member
    Posted 3 years ago #

    Yes

  8. Namdead
    Member
    Posted 3 years ago #

    Alright I'll try to contact my brother in the morning because he is the host of my site.

    Thanks for the help, I was planning to do something big with the site and wanted to make it look new and fancy. And that one line of code to completely ruin it like...I was sacred that I lost all of my work forever.

  9. Namdead
    Member
    Posted 3 years ago #

    And thank you again for responding to my post. I've been here throwing a fit thinking its all gone down the shitter :/ I'm really hoping just removing that one line of code I added will bring it all back. The first thing I will do is make a backup of my site because for some reason I never did that.

  10. toastedonions
    Member
    Posted 3 years ago #

    We've all been through this before xD

    Actually, if you added the code yourself, then you should be able to remove it the same way without having to wait for your brother. So if you pulled up the theme functions (functions.php) with the WordPress editor, try pulling it up there again and then Ctrl+F to search for "remove_shortcode" and/or "add_post_type_support" - remove the lines you inserted and check on the site again.

    Note that it is possible to get stuck in a seemingly endless loop of errors, with every refresh returning a new error. I've been through that, too, so if that happens...don't freak out ;) There's pretty much a solution for everything.

  11. Namdead
    Member
    Posted 3 years ago #

    I can't get into my site what so ever. That's why I was freaking out, I wanted to just go into http://Mysite.com/wp-admin but it gives me the same error.

    I know the exact code I put in and it was all the way at the bottom of Functions.php. Then I clicked Save and DOOOOOM error code and I'm locked out :/

    I'm hoping when my brother wakes up he can get into the ftp of my site and just delete the code because I really need my site back.

  12. toastedonions
    Member
    Posted 3 years ago #

    Ohhh, I get what you're saying. Didn't realize that you couldn't even get to your dashboard, but you should have it under control now =)

    Perhaps you can see about getting FTP access. If your brother hosts multiple accounts, then it may depend on whether he uses shared hosting or not. If you can get FTP access + an FTP client (like FileZilla) + a notepad (I prefer Notepad++), then you're golden!

  13. Namdead
    Member
    Posted 3 years ago #

    I have FileZilla installed but I just don't know any FTP access stuff. My brother hosts multiple sites one of them being mine so I'm sure he has all that FTP stuff that I don't. All I want to do at time point is get that stupid code out of the theme so I can access my site.

    I was just worried that I lost my site forever or something. Kind of like a blue screen of death and I have no backup of my site. It also kind of serves as a portfolio for when I apply to jobs. I want to work as a Video Game Journalist and that is kind of my own starting point.

  14. toastedonions
    Member
    Posted 3 years ago #

    Awesome! Let us know how it goes.

  15. Namdead
    Member
    Posted 3 years ago #

    My site is back up and running, thank you for the help :3

  16. rakesh dabas
    Member
    Posted 3 years ago #

    my website shows a fatal error..plse help

    Fatal error: Cannot redeclare wassup_widget() (previously declared in /home/delhipas/public_html/wp-content/plugins/wassup/wassup.php:4281) in /home/delhipas/public_html/wp-content/plugins/wassup/wassup.php on line 4281

Topic Closed

This topic has been closed to new replies.

About this Topic