404 error after migrating to a live server

Support desk for Multipurpose Quark Theme
GK User
Wed Oct 21, 2015 10:54 am
Hello guys!

After migrating my site from localhost to a live server, I get a "404 The page you were looking for could not be found." message on the bottom of my homepage, (I don't have any other pages yet...) where the footer with the copyright info should be. There were no links, or images in the site's copyright info, but to be sure i've deleted it. But it didn't help.
I've read a few other forums on 404 migrating issues, but none of those advices (SEF urls, cache clearing, etc.) worked for me.

Anyone could please help me?
Thanks!
User avatar
Fresh Boarder

GK User
Wed Oct 21, 2015 10:57 am
How did you put your site to remote server (please describe the process).
User avatar
Moderator

GK User
Wed Oct 21, 2015 11:12 am
Cyberek wrote:How did you put your site to remote server (please describe the process).


I uploaded the files and folder structure via ftp (not by zipping on localhost and unzipping on the live server, but i've checked that every file transfer were successfull), and imported the sql file, I previously exported on localhost, to the mysql server, then edited the configuration.php according to the live server settings (mysql database name, user, password, tmp and log paths)
User avatar
Fresh Boarder

GK User
Sat Oct 24, 2015 9:56 am
Could you please put a sample file (like test.html) on your server in the same folder where you have copied all your files and check if you can access it with a browser?
User avatar
Moderator

GK User
Sun Oct 25, 2015 10:46 am
Cyberek wrote:Could you please put a sample file (like test.html) on your server in the same folder where you have copied all your files and check if you can access it with a browser?


I was able to access the test.html.
After that, I got mad, and deleted everything from the server, dropped all tables from the database, and started the whole migration process all over. Exactly the same way as before.
After finishing, the fronted worked fine, but this time the backend was full of error lines all over. Since I didn't change anything, neither did anything other than before, it seemed sure, that some files were corrupted during the upload, despite the ftp client reported that everything went fine. To prove that, I tried the migration one more time. Full delete, then re-upload, import everything. And this time everything works fine and dandy. :woohoo:

tl;dr:
File corruption during upload to live server.
:oops:
Re-uploaded everything (2 times), and it works fine. Word of advice: always upload as a zip, and extract on the server, if you are allowed. Uploading tens of thousands of small files just way to many opportunities for errors.

Thanks, Cyberek for bearing with me! ;)
User avatar
Fresh Boarder

GK User
Mon Oct 26, 2015 1:43 pm
Thanks for describing the issue.
It's true - the best solution is to upload zip and decompress it on server (if you have a shell account - it's a live saving feature). Sadly not many servers offer such possibility.
Also, we are getting more and more info about problems with ftp clients damaging files during transmission. Could you please post a name of your software?
User avatar
Moderator

GK User
Mon Nov 02, 2015 10:27 pm
Cyberek wrote:Thanks for describing the issue.
It's true - the best solution is to upload zip and decompress it on server (if you have a shell account - it's a live saving feature). Sadly not many servers offer such possibility.
Also, we are getting more and more info about problems with ftp clients damaging files during transmission. Could you please post a name of your software?


You're welcome!
I hope that one day this thread will help someone in need. :)

I was using FileZilla Client 3.14.1
User avatar
Fresh Boarder

GK User
Sat Nov 07, 2015 2:56 pm
Ok, thanks for sharing, I'll have this issue in mind if anybody else will have similar problems.
Is there anything else I can help you with regarding this topic?
User avatar
Moderator


cron