Keyword

Files upload (attachments)

More
14 years 4 months ago #83012 by Pavel
Files upload (attachments) was created by Pavel
Hi
I have Joomla 1.5.15 and К2.2 on my site:
Database Version: 5.0.86
Database Collation: utf8_general_ci
PHP Version: 5.2.11
Web Server: Apache/2.2.13 (FreeBSD) DAV/2 PHP/5.2.11 mod_fastcgi/2.4.6 mod_ssl/2.2.13 OpenSSL/0.9.8e
Web Server to PHP interface: cgi-fcgi

When attach files to the item (article in K2) and save? труку is white screen and nothing else happen. Error reporting is on, but the page source is blank and also nothing in apache logs. I tried to do it i different browsers (Opera, FF) with different languages switched in admin panel, result is the same.
I tried to do the same (files and database) on 2 other sites under freebsd and windows (local andremote hosts) but:
Web Server to PHP interface: apache2handler
It works cool.
php.ini is the same on all 3 servers.
Under windows php 5.2.6
Under FreeBSD (on server that works php 5.2.11
Apache 2 on all 3 servers
But on working servers is apache2handler
on not working cgi-fcgi
I cant change hoster and hoster cant change operating mode of servers :(

May be somebody had this problems ?
Help to resolve them please ?
PS: Sorry for my bad english :)

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #83013 by Pavel
Replied by Pavel on topic Files upload (attachments)
resolved by changing administrator/components/com_k2/lib/class.upload.php
function init()
string 1946
$this->mime_file = true; // MIME detection with UNIX file() command
to
$this->mime_file = false; // MIME detection with UNIX file() command

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #83014 by william white
Replied by william white on topic Files upload (attachments)
Thanks for sharing the solution

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum