• Resolved 4RFM

    (@4rfm)


    Okay, so I thought I knew what I was doing but clearly not. I have looked through the forums and have found answers that MAY help me but as I know what I did wrong, I was hoping someone could help my situation directly.

    I went into the Appearance-Editor and tried to change the code in the themes-comment section to remove the comments off text on posts. I thought I was copying what I’d read on the forums but I realised I must’ve done it totally in the wrong place and/or totally the wrong thing as I typed in “display:none” in place of comments off and now my whole website has disappeared. I can’t log in and I just get a blank screen for wp-admin as well. Can anyone help – have I lost the whole thing? https://www.4rfm.com.au

    Thank you if anyone can help me!

Viewing 12 replies - 1 through 12 (of 12 total)
  • graphicscove

    (@graphicscove)

    Hello 4RFM,

    Rule number 1, always disable the theme and plugin editors on live sites. Nothing good can come of using them.

    The only way to fix your issue is to find the file you have been editing through your hosting control panels file manager or via FTP. Correct the mistake you made then save the fixed file. There’s no other way to get the front facing website back without access to the php files.

    You must have done something else, the website is suffering from a code error. A ‘display none’ would still show items in the source but your site’s source is blank.

    If you can’t get your code to work then copy a backed up version of that file to your server. If you don’t have any backups copy it from one of the default WordPress themes.

    Let us know how you get on.

    Thread Starter 4RFM

    (@4rfm)

    Thanks – will give it a go this morning and see how I go.

    Thread Starter 4RFM

    (@4rfm)

    Okay so I went in via FTP and tried to change the theme-comments.php file where I had changed the wording to display:none. That was fine but it made no difference to being able to log in.

    So I followed some other advice I’d read and renamed the functions.php file to functions_inactive.php so that WordPress would override any errors in that and go to another default. Now I can log in to the dashboard again BUT no website coming up!

    I also forgot to mention yesterday that at midday (8hrs before my ‘mistake’) I had upgdated to 4.0.1. and the anti-spam plugin. Could this be the problem?

    Thanks again!

    John Regan

    (@johnregan3)

    Hi 4RFM,

    Are you using a child theme? Renaming functions.php (The one in your theme) isn’t really a good idea unless you’re in a child theme, and I wouldn’t anticipate that this file would be the source of your problems anyway. Can you add a link to the source of that advice so I can better understand their instructions?

    When you go to log in, what do you see? Anything at all?

    Looking forward to your response!

    John

    Thread Starter 4RFM

    (@4rfm)

    Hi John

    The website I got the info from was https://thethemefoundry.com/blog/wordpress-white-screen-of-death/

    If it isn’t the cause of the problem then I’m not sure why when I put the inactive after it, the log-in page came up but then if I take the inactive bit off, I get white screens at every turn (i.e can’t log in or do anything!)

    No I don’t believe we are using a child theme. At the moment I can log in to the dashboard no worries and all the website info/posts/pages – all our content is there as it was before this happened. The problem is if you just try to visit our website https://www.4rfm.com.au it comes up with HTTP 500 Internal Server Error and no website.

    John Regan

    (@johnregan3)

    Gotcha.

    There might be something broken in your functions.php. If you’re not using a child theme, then this file is required for your theme to work.

    If the admin comes up when you “remove” functions.php, but breaks when that filename doesn’t exist (because it was renamed), then this is the most likey problem.

    I’d recommend re-uploading the original functions.php that came with the theme. Be sure to save a copy of functions_inactive.php if it contains customizations.

    As a reminder, if you’ve edited functions.php by adding your own custom code, the code won’t be there when you upload the theme’s original functions.php. What I would do in that case is add the new code bit by bit (function by function), and test to see where the site breaks again. This will help you identify the source of the error.

    Give that a shot and let me know how it goes!

    Thread Starter 4RFM

    (@4rfm)

    Hey John

    Just a quick question on that. I didn’t set up the website but apparently there been a backup done! Where could I find the original functions.php file? I downloaded the files from the WP update (4.0.1)to my desktop but the Mantra theme is not on there. Can I use a functions file from another theme?

    THANK YOU for your help!!! ??

    Thread Starter 4RFM

    (@4rfm)

    That should have read…there has NEVER been a back up done!

    John Regan

    (@johnregan3)

    If this is the theme you are using…

    https://www.ads-software.com/themes/mantra

    …you can download the theme for free and take the functions.php out of it and replace it with what’s in your theme.

    functions.php is a file that contains theme-specific information, and functions related to that theme. Each theme’s is unique, so unfortunately, they aren’t interchangeable from theme to theme.

    I must warn you that this in itself may not completely solve your problem, but it should get you back on track. After you try this, leave a note here and let me know how it goes!

    John

    Thread Starter 4RFM

    (@4rfm)

    Hi again John

    I added the functions.php file (from the download) and placed it into the folder (the old one was marked inactive). When I did that, my dashboard wp-admin screen went white again. I had a look at the error logs on my FTP and this is the error it’s got…

    [Thu Nov 27 18:26:23 2014] [warn] [client 210.7.51.187] mod_fcgid: stderr: PHP Fatal error: Call to undefined function cryout_seo_hook() in /var/www/vhosts/4rfm.com.au/httpdocs/wp-content/themes/mantra/header.php on line 15

    So I thought maybe I would try to disable the header to see what happened and my website came back except it was just a grey screen with our name on it. I added in the header.php file from the download as well and we went back to the white screen.

    If you have the time, any advice?

    Thread Starter 4RFM

    (@4rfm)

    Sorry I should’ve added when I took the functions.php file back out and left the other one as functions_inactive.php my dashboard came back!

    Thread Starter 4RFM

    (@4rfm)

    John, John, John!!! Don’t even worry about it! I’ve fixed it!!! I couldn’t understand why the files I uploaded weren’t working and it kept changing the error as to what was wrong. I noticed on the FTP homepage that there was an update sitting there for WordPress 4.01.7 I think it was and I thought it was strange as I’d done the update yesterday. Anyway, I clicked update and I went back and removed the inactive from header.php and functions.php and it’s back!! Exactly how I left it.

    Thank you SOOO very much for your time and advice. I have learnt so much and feel so much more confident in using it now.

    Cheers!! ??

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Website has disappeared – please help.’ is closed to new replies.