• hello guys. i have an urgent problem. i was making some editing to the function.php file and after i updated it, my site totally crashed. when i try to go to my site, it is just a blank page. the same thing when i try to login to my dashboard. here is my site: naldotech.com please anyone can help me???? ??

Viewing 15 replies - 1 through 15 (of 24 total)
  • Hello!

    I have checked your link, and it gives me the WordPress installation page.

    Here are tips when you are editing any WordPress core files (or plugins’ or themes’ files):
    Whenever you want to make any changes, make sure that you have a copy of — the original file, in case of anything goes wrong, you have a backup so you can quickly put it back, so you have time to find the error, ad in the meaintime, your site works well.
    – I dont recommend using the built-in WordPress code editor for php files, mainly because if you have a syntax error in your code, it could break the site so badly that you could not use the editor again to change it back
    – the WordPress editor does not have code highlighting and it’s missing an undo button

    So my recommendation is: use some code editor on your computer, download the file what you want to edit, make a copy of the original one, and when you are finished with editing, just upload the file back to the server with ftp.

    If you have any additional questions, just post them here.

    Have a nice day!

    Greetings,
    Balint

    Did you edit WordPress core files? Never, ever, do that.

    You may need to reinstall WordPress. Start from here:
    https://naldotech.com/wp-admin/install.php

    Thread Starter albnaldo

    (@albnaldo)

    So, through Fanstastico i upgraded wordpress version and now it sends me to the installation page. realising that that was a bad idea, now i want to revert to the previous wordpress version, where everything is ok. please any help? im desperate ??

    I think your only solution here is if you have any backups of your older WordPress installation files and database…

    You should contact your web hosting company’s support to check do they have any backups…

    Thread Starter albnaldo

    (@albnaldo)

    i have no idea what is happening but now when i go to homepage, there is just a post welcoming me, and its not english! i didnt even took the installing proccess. and i cant login to the dashboard. it says wrong password and it says that my email is not associated with any wordpress account. any help please?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Did you talk your web hosting company for support with database backups?

    Thread Starter albnaldo

    (@albnaldo)

    yes, and they haven’t replied yet. It’s been 4 hours now. Any idea what could possibly have gone wrong? I was just trying to remove some footer links from functions.php.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I think there was a syntax error in the file that you edited. These types of errors, that can simply be triggered by misplacing a full stop, can bring down websites.

    If you ever need urgent support it may be worth considering to pay someone from https://jobs.wordpress.net/ or https://directory.codepoet.com/ , but you should wait for your hosting providers to reply. What are their normal reply times, 3-5 working days?

    Well, I am sorry to say this, but because your link was pointing to the page where you can install WordPress, and it was publicly accessible to anyone who visited your site, it is possible that someone took the liberty and done the install, providing the admin username and password during the installation.
    At this point, I recommend you to do this:

    1.) Check if you have a backup of your site which was made before you made the modifications, so it is a copy of the working site.
    2.) If you dont have a backup yourself, then contact your hosting provider, to check if they have a backup. In both of these cases, do not make the restore yet.
    3.) Delete every wordpress site and the database which is currently (so after the unauthorized install) related to the WordPress installation
    4.) Restore the files and the database from the backup.

    Thread Starter albnaldo

    (@albnaldo)

    I’m currently searching for a backup of my site? So, after i find the backup, i should clean the database (empty the tables?) and then restore the backup?

    Yes, because if you have any malicious content in the database, you can get rid of it this way.

    Thread Starter albnaldo

    (@albnaldo)

    So, i emptied the tables (should drop them too, or just empty them? and now my site is displaying the usual error: Error establishing a database connection. Should i do anything else while i’m waiting for the backup?

    I think it is ok to leave the database there, but when you get the backup, make sure that the database names are the same in the backup and on the server.

    There is no need for you to do anything else with the WordPress installation.

    Thread Starter albnaldo

    (@albnaldo)

    Great then, i will wait for the backup and then i will update you what happened. Cheers

    Thread Starter albnaldo

    (@albnaldo)

    hmmm look what i found. if you go to the homepage or go to a post through search engine, you’ll get the database error connection. but look if you go there through a link. for example https://www.naldotech.com/how-to-find-the-manufacturing-date-of-samsung-galaxy-s4/ the site opens and you can navigate through the posts except the homepage. And i have emptied the database? Am i missing something here or wtf?

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Site doesn't open at all’ is closed to new replies.