You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
I've downloaded both files in ASCII mode using both SmartFTP and CuteFTP. I rename the original files on the web server with a .bak extension and then upload the files back to the server in ASCII mode. I set the permissions to 755. I get a 500 error when trying to load either page. The error log simply shows "premature end of script". Any idea what's going on here? I've downloaded these files before, edited them, and uploaded them with no problem.
Offline
Have you uploaded/downloaded any of the tables? Moving a CSV file in ASCII mode can cause that problem.
Offline
No. All of my tables are SQL. If I just download, and re-upload the file, without opening it, it causes the 500 error. very weird.
Offline
Some tables run in CSV, even when you are using MySQL (some tables cannot run in alternate database modes and always run CSV). But if your file is being corrupted just by downloading and uploading, then the only thing left to conclude is that your FTP program(s) must not be respecting your selection of ASCII mode.
Offline
That's what I was thinking as well, but I tried 2 different FTP programs. Also, when you download in Binary, the files gets squished when you open it in notepad (no eol or carrage returns).
Offline
I've had some pretty bad experiences with Notepad... it doesn't seem to respect line breaks properly in lots of cases. I prefer a text editor called EditPlus - it's not free, but it is inexpensive and works much better for programming work.
Offline
for anyone interested, I found the fix for this on my site. I had to chown (change owner) for the file once it was uploaded to match the old owner (psacln). Once uploaded, the owner became root, and for some reason, that didn't work.
Offline