wordpress simple error

9 replies
hello friends.
i found some code from net and put code in functions.php and my site goes.

the site display servr error.

www.wpbaba.com

i cant access my admin panel also.
so what should i do??
can you plz give me php code for the functions.php ?

i run wordpress 3.4.1
inspire theme from woothemes
and woocommerce plugin..

plz help me..
#error #simple #wordpress
  • Profile picture of the author seopress
    FTP in to your site and rename the existing functions.php to something like functions_old.php.

    Then upload the original functions.php file from your theme.

    Regards,
    Dave Seldon
    {{ DiscussionBoard.errors[6528956].message }}
  • Profile picture of the author enterforum
    thanks for support.
    but,nothing happen...
    i try both functions.php file

    functions.php of theme and functions.php of wordpress >>wp-include directory file.
    is there any other way..
    Signature
    Promote My Service And Get 50/50 On Sale
    {{ DiscussionBoard.errors[6529001].message }}
  • Profile picture of the author seopress
    Do you not have the original functions.php file from your theme before you edited it?

    It sounds like the problem is in your edited functions.php file. You need to locate an original functions.php from that theme to fix the problem, and overwrite the problem file.

    If you don't have an original copy of the file, perhaps you can copy the functions.php from a default WP theme. Of course, some of the functionality of your theme may be lost until you can locate an unedited version of the theme's functions.php file.

    Regards,
    Dave Seldon
    {{ DiscussionBoard.errors[6529036].message }}
  • Profile picture of the author enterforum
    i have both functions.php file and upload both but didnt work.
    i firstly upload themes functions.php file that not work then the functions.php but that also not work.

    what i did.
    firstly go to functions.php and add some code(non sense) and press update.after that the page displays server error..

    so i use ftp to upload new file and overwrite existing file but not work.

    now,what should i do??
    Signature
    Promote My Service And Get 50/50 On Sale
    {{ DiscussionBoard.errors[6529052].message }}
  • Profile picture of the author enterforum
    and where to upload functions.php file.

    i upload it to WPBABA.COM/wp-includes

    is it right directory??
    Signature
    Promote My Service And Get 50/50 On Sale
    {{ DiscussionBoard.errors[6529058].message }}
  • Profile picture of the author seopress
    functions.php should reside in your themes directory

    /wp-content/themes/your-theme/functions.php

    you should see other theme files in this same folder, like archives.php, footer.php, header.php, page.php, index.php, single.php, and so on.

    Regards,
    Dave Seldon
    {{ DiscussionBoard.errors[6529122].message }}
  • Profile picture of the author enterforum
    omg...its work....i just got my website back...

    many many thanks to you sir.

    amazing help...

    god bless you..
    Signature
    Promote My Service And Get 50/50 On Sale
    {{ DiscussionBoard.errors[6529482].message }}
  • Profile picture of the author seopress
    No problem. I know how scary a situation like this can be. But it's a good learning experience for you!

    There was probably a minor PHP syntax error in what you pasted into the file. Next time before you try to make the change, just make sure to save the current working copy of the file first. You can do that either by downloading via ftp, or a simply as selecting all in the WP file edit screen, and pasting the contents into a text editor on your local machine.

    But the big lesson is ALWAYS BACKUP before making any changes! That way if something blows up it's really pretty easy to undo the changes.

    Regards,
    Dave Seldon
    {{ DiscussionBoard.errors[6529578].message }}
  • Profile picture of the author enterforum
    ok..thanks for help..now every time i will take backup first..

    heartly thanks..
    Signature
    Promote My Service And Get 50/50 On Sale
    {{ DiscussionBoard.errors[6529590].message }}

Trending Topics