WordPress Log In Page / Website Not Appear ( Blank )
-
My website ( https://www.amzshop2u.com) went off and turned blank when I add one HTML ( search box ) into Theme Function (function.php). My web hosting company , Asia Internet Hosting feedback that my website is corrupted and need to removed and reinstalled. However, I noted that my website is still up at Alexa search ( blank ). It has suggested a webmaster or web programmer to help restore the website.
How can I get back to the Word Press Log In page to do the necessary recovery / recover my website ? I have tried the possible solutions like Deactivate Theme, Disable Plugins but it did not work.Please advise.
Best Regards
Liew
-
You need to reverse the changes you made. If you know exactly what code you added, you can edit the file using an ftp client and remove the code you added which caused this.
Alternatively if you have a backup of the file you edited, connect by ftp and replace the file with the backup.
If you did not make a backup, download a fresh copy of your theme (ensure it is the same version) and replace the damaged file with the new copy
After log in to cPanel, I tried to edit the file at ( public_html/wp-content/themes/responsive) function.php but it doesn’t show the code I added.
#1: After I clicked Edit: ( The following message appeared)
Text Editor
Back up the original file before converting character sets, since this action can produce unexpected results.
You will be editing:
/public_html/wp-content/themes/responsive/functions.phpIf encodings are not important to you because you will only be working with English or other Western languages, you can disable this dialog by clicking here:
Disable Encoding CheckPlease select the character encoding to use when opening this file:
utf-8Toggle Help
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –#2: After I clicked View ( The following message appeared )
[ Moderator note: please wrap code in backticks or use the code button. ]
<?php // Exit if accessed directly if( !defined( 'ABSPATH' ) ) { exit; } /** * * WARNING: Please do not edit this file in any way * * load the theme function files */ $template_directory = get_template_directory(); require( $template_directory . '/core/includes/functions.php' ); require( $template_directory . '/core/includes/theme-options.php' ); require( $template_directory . '/core/includes/post-custom-meta.php' ); require( $template_directory . '/core/includes/tha-theme-hooks.php' ); require( $template_directory . '/core/includes/hooks.php' ); require( $template_directory . '/core/includes/version.php' ); require( $template_directory . '/core/includes/upsell/theme-upsell.php' ); // Return value of the supplied responsive free theme option. function responsive_free_get_option( $option, $default = false ) { global $responsive_options; // If the option is set then return it's value, otherwise return false. if( isset( $responsive_options[$option] ) ) { return $responsive_options[$option]; } return $default; } ?>
( no code is found here ) ???
How do I edit file using ftp client in this case to resolve my website problem ?
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –Pls advise /assist.
Thank you
Regards
Liewdo you have an ftp client such as filezilla installed on your computer and setup to connect to your site files?
The cpanel text editor you have described may work just as well if you are more comfortable using that, but I find ftp to be more straightforward. You need to replace the file you edited with either a backup you originally took before editing it or a fresh copy extracted from the zipped theme download.
I don’t have filezilla installed but do have a backup of Home Directory and MySQL in my cPanel.
Do I need to restore the whole file or can just select and restore the affected file only ?
How to ensure the backup is properly restored and what to look out for possible error ?You only need to put back a good pre-edit version of the file you edited which caused this error. You should not need to restore the database for this.
The most important consideration is to minimise the risk of overwriting anything which you may need later. It is worth getting comfortable using ftp to enable you to solve issues like this; it makes it easy to rename and move/copy files on the site and between the site and your own computer.
Have problem to identify the specific file to be restored.
How / Where to search for the affected file folder – in Home Directory or mySQL ??In Home Directory:
There is one public_html File Folder
– wp-content
> theme
> plugins
– wp-includesRestore a Home Directory Backup
Browse ( can’t locate the functions.php )In mySQL :
wrdp1.sql
wrdp2.sql
wrdp3.sql
wrdp4.sql
(What is the difference between wrdp1,2,3,4 ??)Restore a mySQL Database
Browse ( which wrdp to be uploaded ?)What should I do if can’t locate the specific pre-edited version.
Your advice please.
You listed the path to the file a few posts up:
public_html/wp-content/themes/responsive/functions.php
I managed to save my backup zip file in my desktop and unzip it before restore the backup via the path homedir/public_html/wp-content/themes//responsive/functions.php and click upload.
A message appeared : Restoring files.
How long does it take to complete the upload process ?
Unable to ascertain whether the restoration is in order and completed.
( An indicator shows 60% yellow and 40% white – stay stagnant after more than half an hour ). Please advise.
Liewyou are only restoring the functions.php file as that is the file you changed to break the site. It should take just a few seconds to upload (unless you have a really slow connection)
The restoring is still on progress after more than half an hour and after few attempts and there is no indication of completion.
Is there a problem on my backup file ?
How to check whether my backup file is in good order for restoring?
What should I try to restore the website?I have uploaded the functions.php via File Manager but still can’t get the WP Log In page. Later have uploaded the public_html. However, the effort is still not fruitful.
What should I do now to recover my website?What do you mean you upload public_html? I don’t think you are following the directions.
You only had to replace the functions.php you edited with a copy of the same version of that file from a fresh download of the theme. If that was the only file you had changed, that was the only file you had to replace.
The directions I gave you were for restoring using an FTP client. I don’t know what you are doing with the cPanel file manager. Did you use it to upload one file – the unzipped functions.php extracted from a fresh download of the same version of the theme as you are using – from your computer into that theme’s directory on the hosting to replace the edited version? It doesn’t sound like that is the case.
Yes. I uploaded unzipped functions php via the path : file manager > upload > functions.php as the restoring via backup /back wizard paths are not showing any result ( remains stagnant with no progress of uploading.
What should I do next ?
Do I need to upload my MySQL Database to get back the wp log in page ?No don’t touch the database. It will not help as you have a problem with a file you edited, not a problem with the database.
Were you really using WordPress 3.3.2 as suggested by this page? – https://www.amzshop2u.com/readme.html If so why are you using such an old version?
It looks like you are using version 1.7.4 of the responsive theme (
https://www.amzshop2u.com/wp-content/themes/responsive/style.css )The current version is 1.9.3.7 what version did you use to extract the functions.php? You should have used the same version as you have on your site. Previous versions are available from the theme’s developers page: https://www.ads-software.com/themes/responsive/developers/
I do not know how your hosting company has implemented the file manager in the control panel or what it looks like, so I cannot help if not sure about what you are doing and continue to use that.
Please install an ftp client application such as filezilla on your computer. Get your ftp connection details from you hosting company and configure filezilla to connect to your site files. Once connected you should be able to see your site files and should be able to navigate to public_html/wp-content/themes/ When you are there please post here to let me know.
I stay on the version 1.7.4 of responsive theme as I was learning to build my website and trying to familiar with wordpress.
I have tried out version 1.9.3.7 on my other website and it affected the home widgets on the same html placed ( bigger than widget size ).
My hosting company is Asia Internet Hosting. I have seek their advice whether they can assist on specific file recovery. However they have replied that their backup system is based on account basis and can’t be separated by directory or files.
Is there any other way to reach the wp log in page via cPanel ?
- The topic ‘WordPress Log In Page / Website Not Appear ( Blank )’ is closed to new replies.