wordpress simple error

by 9 replies
10
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..
#programming #error #simple #wordpress
  • 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
  • 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..
  • 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
  • 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??
  • and where to upload functions.php file.

    i upload it to WPBABA.COM/wp-includes

    is it right directory??
  • 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
  • omg...its work....i just got my website back...

    many many thanks to you sir.

    amazing help...

    god bless you..
  • 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
  • ok..thanks for help..now every time i will take backup first..

    heartly thanks..
  • Banned
    [DELETED]

Next Topics on Trending Feed