• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
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
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

#6
https://forum.codeigniter.com/thread-66504-page-2.html
https://github.com/bcit-ci/CodeIgniter/issues/4887
Reply

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.