Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Can not upload file bigger than 2MB in group discussion

9 years 2 weeks ago
Licenses:
JomSocial Active iSEO Expired

ISSUE SUMMARY:
When I try to upload file bigger than 2MB in group discussion I get an error that the file is bigger than the allowed minimum. In jomsocial configuration the limit is set to 16MB, and the server configuration: post_max_size=8M and upload_max_filesize=40M.

STEPS TO REPLICATE:
1) Go to "Test" discussion in "My group": www.jagdundhund-webdesign.de/webprojects...n/59-test?groupid=21
2) Try to upload bigger image

RESULT
File name is marked with red color and not uploaded

Attachments:
9 years 2 weeks ago
Licenses:

Hi, Manuela.

I assign developer to this thread.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
9 years 2 weeks ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Manuela,

I think this issue caused by your server configuration, please you ask your sys-admin which you cant upload more than 3MB, I am not sure why and I dont really understand with server setting, but I hope your server sys-admin can help it.

I even tried to use core PHP code to upload it, and broken for >3MB file size.

thank you

9 years 1 week ago
Licenses:
JomSocial Active iSEO Expired

Hi Dimas,

I have made a test by my own with PHP upload script in this location:
http://www.jagdundhund-webdesign.de/webprojects/dj3-2/upload-test/

and it is working fine for size up to 8MB.

If you are using some other method to upload files, please send me some code example that I can present to the support of my hosting so the problem can be fixed.

Regards.

9 years 6 days ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

hi,

please you try open this file components/com_community/controllers/files.php, find this code :

$_file = $jinput->files->get('file');

replace to :
$_file = $_FILES['file'];

i hope it will fix it

9 years 6 days ago
Licenses:
JomSocial Active iSEO Expired

hi,

I have changed the code in "components/com_community/controllers/files.php" but it is still the same. I can not upload files bigger than 2MB.

Attachments:
9 years 4 days ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Manuela,

Seems this is realted with server issue, but i am not sure the detail, im not familiar with server configuration.

Well, can you ask to your hosting provider please? I debug the site by using core PHP code by using $_FILES[] request, but the feedback is like this :

Array
(
    [name] => IMG_2515.JPG
    [type] => 
    [tmp_name] => 
    [error] => 1
    [size] => 0
)

thank you

9 years 4 days ago
Licenses:
JomSocial Active iSEO Expired

Hi Dimas,

I've solved the problem. It was a setting in the php.ini which enables zlib compression. ("zlib.output_compression" and "zlib.output_compression_level")
After removing these two from php.ini the upload is working fine.

Regards

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW