KP Solutions

Solutions for Day to Day Technical Problems

Fatal error: Unable to read X bytes in file.php

| 0 comments

If you got this error Fatal error: Unable to read X bytes in file.php, then:

You have encoded your php files using Zend Encoder and uploaded to the server but gives you this error. This problem occurs due to your FTP software which has ftp’ed your file to the server in ascii mode.

To fix, make sure you upload the file in binary mode and not ascii. This will fix your problem.