WordPress.org

Ready to get started?Download WordPress

Forums

Edited PHP Function in child theme and lost site (15 posts)

  1. SamDaviesCoach
    Member
    Posted 1 month ago #

    I made an edit in the function php in child and now I can't even log into my admin page!

    http://www.samuelthomasdavies.com

    What can I do?!

  2. meraj.khattak
    Member
    Posted 1 month ago #

    It seems to be an error at php code level due to which the site is not running.

    Can you access your files via ftp / ssh / cpanel? If so you could remove the change you just did and it should run fine.

  3. SamDaviesCoach
    Member
    Posted 1 month ago #

    I'm with Bluehost? How can I do it with them? I also have Filezilla. Can you instruct me what to do?

  4. meraj.khattak
    Member
    Posted 1 month ago #

    • Login to your site via FileZilla.
    • Download functions.php from yoursite.com/wp-content/themes/THEMENAME/ folderp
    • Remove the change you just did to functions.php and upload again.
    • After uploading retry and see if that works.

    Please replace THEMENAME with the theme name you have setup in your WordPress installation.

  5. SamDaviesCoach
    Member
    Posted 1 month ago #

    Is there a simpler way? I've very inexperience with this.

  6. meraj.khattak
    Member
    Posted 1 month ago #

    Following are a few ways to fix this issue:

    • Access your site via FTP and fix the error as mentioned above
    • If you have access to your hosting panel and they provide a file manager, using that make this fix.
    • Ask someone to fix this if you are having issues with this.

    Unfortunately I am not aware of any other ways to fix this apart from the above.

  7. SamDaviesCoach
    Member
    Posted 1 month ago #

    Ok, I'm in my file manager now. What would the next action be? http://i.imgur.com/zLz0zM3.png

  8. meraj.khattak
    Member
    Posted 1 month ago #

    Good. Now whichever theme you are using go to that. You could do so by clicking on the theme name under themes directory from left.

    Once there, you could edit your functions.php which would be present in selected theme directory.

  9. SamDaviesCoach
    Member
    Posted 1 month ago #

    ok I have my website back. I tried to uninstall minimum pro and reinstall it thinking that would give me the original code but it didn't work. Any ideas?

  10. meraj.khattak
    Member
    Posted 1 month ago #

    If you have made changes directly in minimum pro then doing an uninstall / reinstall will not give you original code.

    To do so, you will need to install minimum pro from its source in original format. Also an ideal way to make changes to your theme files would be to create a child theme from the original theme. http://codex.wordpress.org/Child_Themes

  11. SamDaviesCoach
    Member
    Posted 1 month ago #

    I made changed to Minimum Pro child theme on WordPress admin. I uninstalled it and reinstalled it (by downloading the theme again) but to no avail. Am I doing something wrong here?

  12. meraj.khattak
    Member
    Posted 1 month ago #

    You are doing correct. It is hard to say anything without looking at the files / error which it is generating upon installing again.

  13. SamDaviesCoach
    Member
    Posted 1 month ago #

    Is there anyway I can install the original theme as it was without alteration?

  14. esmi
    Forum Moderator
    Posted 1 month ago #

    Try switching to the default theme automatically by renaming your current theme's folder inside wp-content/themes and adding "-old" to the end of the folder name using FTP or whatever file management application your host provides.

  15. SamDaviesCoach
    Member
    Posted 1 month ago #

    It's fixed now. Thank you SO much for your help. Lifesaver.

Reply

You must log in to post.

About this Topic