Blank Page After a File Upload - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: Blank Page After a File Upload (/showthread.php?tid=67029) |
Blank Page After a File Upload - Jurden - 01-04-2017 Hello, I just finished my development website. Everything work like a charm. But when I upload it online on a production server I realize that after a file upload CodeIgniter sent me a blank page. Is that really weird. - The directory exist - The permissions are good - No error returned I saw that problem sometimes on Stack but no Solutions. Any suggestions ? Thanks. RE: Blank Page After a File Upload - andersonunsonst - 01-04-2017 you could provide more information ... RE: Blank Page After a File Upload - Diederik - 01-04-2017 Turn on php error reporting or have a look at the php error logs. RE: Blank Page After a File Upload - Jurden - 01-04-2017 There is just a blank page. I leave the development errors configuration on. This is the line who lock my script : PHP Code: $this->upload->do_upload( 'picture' ); I try to change my permission with filazilla or with this line : PHP Code: chmod( $path, 000 ); That make me an error : PHP Code: Array I replace it again to 777 (with filezilla) and there is a full blank page again. And, PHP Code: $config['log_threshold'] = 4; Do not generate nothing. RE: Blank Page After a File Upload - Jurden - 01-05-2017 Ok I just resolved it... My client don't give me the right php server version and it running below PHP 5.3.7. The explanation of my invisible problem was : Upload.php Line 1223 the @ hide the error. @finfo_open(FILEINFO_MIME); AND This function do not exist with this version. If you are hurry uncomment line from 1222 to 1239 and check MIME type by yourself. But the better way is to upgrade the server PHP version. RE: Blank Page After a File Upload - Narf - 01-05-2017 https://forum.codeigniter.com/thread-66504-page-2.html https://github.com/bcit-ci/CodeIgniter/issues/4887 RE: Blank Page After a File Upload - Jhansijoe - 01-24-2017 Sometimes i faced the similar issues after uploading file and it seems to be empty. Thanks for sharing the solution |