Blank Page After a File Upload |
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.
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.
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.
Sometimes i faced the similar issues after uploading file and it seems to be empty. Thanks for sharing the solution
|
Welcome Guest, Not a member yet? Register Sign In |