Halfagain IM Forums
July 30, 2010, 21:19 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Fatal error: Unable to read .... bytes  (Read 3086 times)
0 Members and 1 Guest are viewing this topic.
Omar
Here to help.
Administrator
Hero Member
*****

Karma: 10001
Offline Offline

Posts: 2687


« on: April 03, 2008, 09:39 »

Here is an example some1 just posted though your may be a bit different.

Fatal error: Unable to read 16444 bytes in /home/bowisdom/public_html/store/index.php on line 0

Some part of answer is copied from another thread, but i have lot of work to do and still wanted to make sure is specified here too.

Make absolutely sure your ftp client uses Binary mode.

Not uploading in Binary mode is the only reason for this error in my last 3 years since installing BS, CS and SST now

We are all humans and do mistakes, i have few users that where absolutely 1000% sure they uploaded in binary mode.. and they didn't.. Just double check that your ftp is forced ot use Binary mode
Logged
artmacc
Newbie
*

Karma: 10
Offline Offline

Posts: 25


« Reply #1 on: April 09, 2008, 05:46 »

I got the same error message.  I used dreamweaver and changed the FTpExtensionMap from php ascii to php binary and saved the text file and closed dw and reopened it.. then I followed the directions.. any other reasons.. I viewed the .htaccess file and it was empty.. is that how its suppose to be?

FTPExtension Map

PHP   BINARY
PHP3   ASCII
PHP4   ASCII
PHP5   ASCII
This is showing up in the error log.
[09-Apr-2008 00:27:25] PHP Fatal error:  Corrupted encoded data detected in /home/artmacc/public_html/bloodglucose-meters/index.php on line 0
[09-Apr-2008 00:27:25] PHP Fatal error:  Corrupted encoded data detected in /home/artmacc/public_html/bloodglucose-meters/index.php on line 0
« Last Edit: April 09, 2008, 06:03 by artmacc » Logged
Omar
Here to help.
Administrator
Hero Member
*****

Karma: 10001
Offline Offline

Posts: 2687


« Reply #2 on: April 09, 2008, 10:50 »

htaccess is empty and need to be chmoded to 777, so sst can write the rules inside upon install.
Logged
artmacc
Newbie
*

Karma: 10
Offline Offline

Posts: 25


« Reply #3 on: April 09, 2008, 12:56 »

I did upload in binary and received the error message, what is the next step?  maybe all versions of php..php3, php4.php5 be changed to binary?
I just deleted the site and uploaded again after changing all php..php3 to binary..
« Last Edit: April 09, 2008, 18:42 by artmacc » Logged
tlrademaker
Newbie
*

Karma: 10
Offline Offline

Posts: 2


« Reply #4 on: April 09, 2008, 19:14 »

I made sure (in fact I deleted and installed on two different FTP programs) I was in binary and I'm still getting this error :


Fatal error: Unable to read 16468 bytes in /home/profitru/public_html/store/index.php on line 0

I'm with Third Sphere Hosting and they say they have zend.

Please help! Smiley

Thanks
Logged
artmacc
Newbie
*

Karma: 10
Offline Offline

Posts: 25


« Reply #5 on: April 09, 2008, 20:12 »

I am using smartftp and 3 options are provided..autoselect, binary100%, ascii100% but it goes on to say if using non window servers binary is default for autoselect...I selected binary100% and 8 files are hung up and not uploading...
« Last Edit: April 09, 2008, 20:35 by artmacc » Logged
Omar
Here to help.
Administrator
Hero Member
*****

Karma: 10001
Offline Offline

Posts: 2687


« Reply #6 on: April 09, 2008, 20:45 »

I haven't used smartftp, i used cuteftp, flashfxp and few others, and they all worked. When i say binary, i mean pure binary, not auto.

Try search the net for that error and you will always see similar answer

Quote
This error is caused by file corruption during the uploading process.

It is very important that all files be uploaded in binary format only, meaning that your FTP client cannot be set to automatically detect the appropriate upload type. The reason for this is that the files are encoded (for Zend or Ioncube), and are therefore comprised of binary data even though their file extension (.php) would seem to indicate that they are plain text.

Reuploading the files in binary mode should correct the problem.

http://activecampaign.com/support/tt/index.php?action=kb&article=2
Logged
artmacc
Newbie
*

Karma: 10
Offline Offline

Posts: 25


« Reply #7 on: April 10, 2008, 06:30 »

I uploaded all the files except. htaccess as skipped during the upload..all other file were uploaded quickly using cuteftp
Logged
dj_frb
Newbie
*

Karma: 10
Offline Offline

Posts: 19


« Reply #8 on: April 11, 2008, 22:34 »

FYI - for those who have been struggling with fatal errors and blank pages:

I tried EIGHT free FTP software packages, and finally got LeechFTP to work and send clean binary files, with no fatal errors and no blank pages. Have not modified the store yet, but it looks like I may finally have a clean upload that works.

Hope this helps!
Logged
tlrademaker
Newbie
*

Karma: 10
Offline Offline

Posts: 2


« Reply #9 on: April 14, 2008, 17:41 »

I have used CuteFTP, FlashFXP, and LeechFTP -- all FTP clients were set for binary upload -- and I still get :

Fatal error: Unable to read 16468 bytes in /home/profitru/public_html/store/index.php on line 0


I have tried lots and lots of times.  Can anyone tell me how to fix this?

Would someone be willing to upload it for me?

Thanks.
Logged
Omar
Here to help.
Administrator
Hero Member
*****

Karma: 10001
Offline Offline

Posts: 2687


« Reply #10 on: April 14, 2008, 20:54 »

send me an email with ftp and i will upload it for you.
Logged
Crazeet
Jr. Member
**

Karma: 100
Offline Offline

Posts: 100


« Reply #11 on: April 15, 2008, 00:38 »

I've used several FTP software packages and had the same problem until I used FTP Commander. This software is not fancy but it works. Just make sure you change the transfer type to binary in the menu Connections - Transfer Type.

http://www.internet-soft.com/ftpcomm.htm
Logged

"The only place success comes before work is in the dictionary"
The Inspiration Place
Scents ul Wear
Orion
Newbie
*

Karma: 0
Offline Offline

Posts: 1


« Reply #12 on: April 27, 2010, 20:47 »

Hi Omar,

After trying all those tips, I am still getting that error message. After talking to my hosting company, i found out that due to the fact that my server is a shared server, they do not allow 777 folder/file permission. They say that I should rather use 755. Could you tell me is there is any incompatibility in having a shared server, or it really doesn't matter ? Lips sealed
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!