• Resolved anvilhasquestions

    (@anvilhasquestions)


    I was taking a client site live, from a subdirectory to the main site. I moved the files before changing the web address and site address in the wordpress admin panel, so I moved the files back into the subdirectory. When I did, somehow the wp-login.php and wp-load.php files did not move over and were deleted.

    I copied new wp-login.php and wp-load.php files into the subdirectory. The site now has all the content (some images aren’t showing on the site but they are on the backend still) but the pages show a 404 error. It says it can not find the pages, but they are all still in the backend with all their content.

    I know this has something to do with accidentally deleting the two .php files, but is there any way to fix this error? I am not incredibly code literate, or I could probably figure this out on my own. Please help! Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    try a few basic troubleshooting steps:
    – Flushing any caching plugins you might be running, as well as server and/or browser caches.
    – deactivating ALL plugins temporarily to see if this resolves the problem (plugin functions can interfere). If this works, re-activate them individually (one-by-one) to find the problematic plugin(s). When you can’t get into your admin dashboard, try deactivating via FTP or SFTP or whatever file management application provided by your hosting provider (cPanel…). Also remember to deactivate any plugins in the mu-plugins folder (If you have created such folder). The easiest way is to rename that folder to mu-plugins-old.
    – If that does not resolve the issue, try switching to the unedited default Twenty Fifteen theme for a moment using the WP dashboard to rule out any theme-specific issue (theme functions can interfere like plugins). When you don’t have access to your admin area, use FTP or SFTP or whatever file management application your host provides. Navigate to /wp-content/themes/ and switch to the default theme by renaming your current theme’s folder by adding “-old” to the end of the folder name. Alternately, you can remove other themes except the default theme. That will force your site to use it.
    – If that does not resolve the issue, try resetting the plugins foldervia FTP or SFTP or whatever file management application your host provides. Sometimes, an apparently inactive plugin can still cause problems.
    – If all the above steps do not resolve the issue, then try MANUAL updating. Download a fresh copy of the WordPress .zip file to your computer, unzip it, and use that to copy up all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory. You may need to delete the old copies of files & folder on your server before uploading the new ones. Read the Manual Update directions first.
    If you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong.

    Thread Starter anvilhasquestions

    (@anvilhasquestions)

    Thank you for the feedback. I switched out the themes momentarily, and that fixed the problem of the pages not loading. But most of my images aren’t showing now. This isn’t as bad as it was (I can always reupload them it will just take a lot of time), but if anyone has any ideas of how to easily fix this, I would love it.

    Thread Starter anvilhasquestions

    (@anvilhasquestions)

    I figured it out. When moving the files from my beta to my local host in my c-panel, not all the files had copied over. So when I moved them back, some got lost in the switch. Thank you for your help. Time to start reuploading.

    Moderator t-p

    (@t-p)

    you are welcome ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Accidentally deleted wp-login.php and wp-load.php. Help!’ is closed to new replies.