Welcome Guest, Not a member yet? Register   Sign In
Blank Page After a File Upload
#1

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.
Reply
#2

you could provide more information ...
Reply
#3

Turn on php error reporting or have a look at the php error logs.
Reply
#4

(This post was last modified: 01-04-2017, 06:23 AM by Jurden.)

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$path000 ); 


That make me an error :

PHP Code:
Array
(
 
   [error] =>

The upload destination folder does not appear to be writable.





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.

Dodgy
Reply
#5

(This post was last modified: 01-05-2017, 02:56 AM by Jurden.)

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.
Reply
Reply
#7

Sometimes i faced the similar issues after uploading file and it seems to be empty. Thanks for sharing the solution
Reply




Theme © iAndrew 2016 - Forum software by © MyBB