Attachment size max 2mb, how to fix

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
willemc
Registered User
Posts: 32
Joined: Tue Apr 28, 2009 8:07 am

Attachment size max 2mb, how to fix

Post by willemc »

Hi all,

Recently I got problems with uploading larger attachments.
Everything under 2mb uploads. If an image is larger then 2mb, I don't receive any message, but the button 'insert in message' never appears.
Submitting the post results in no attachments beïng added.

This started somewhere begin February this year (last large image update was 26 january 2018). I believe around this time the board was upgraded to 3.2.x

At the moment I'm running 3.2.2
The host settings are as follow:
upload_max_filesize 1G 1G (tried all different things like 8MiB, 64 etc.)
post_max_size 128M 128M (also tried a lot of different sizes)

In the ACP > General > Attachment Settings I've set maximum to 0 MiB, but also tried 64 MiB etc.
Under ACP > Messages > Manage Extensiongroups attachments > images > maximum file size is also set to 0 (tried different values again).

All to no avail.

Even my hosting doesn't know what causes this. They say it has to do with my php installation or perhaps template (Metrolike green).

Does anyone have any idea?
Should I overwrite some specific files from my install with fresh downloaded files? And if so, which files should I update?
User avatar
janus_zonstraal
Registered User
Posts: 6418
Joined: Sat Aug 30, 2014 1:30 pm

Re: Attachment size max 2mb, how to fix

Post by janus_zonstraal »

Should I overwrite some specific files from my install with fresh downloaded files? And if so, which files should I update?
You can overwrite all the files in phpbb except the config.php

Also you can try if it works in the standard Prosilver style, but I think you can better look for a other host.
Sorry! My English is bat ;) !!!
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52768
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Attachment size max 2mb, how to fix

Post by stevemaury »

In the ACP, click PHP Information and tell us the value of these two settings - post_max_size and upload_max_filesize
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: Attachment size max 2mb, how to fix

Post by </Solidjeuh> »

willemc wrote: Wed Apr 25, 2018 9:57 am tried all different things like 8MiB
I can be wrong, but I think it needs to be upload_max_filesize = 8M instead of 8MiB
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52768
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Attachment size max 2mb, how to fix

Post by stevemaury »

Yes, 8M. But note that your host may not permit this setting to be changed.
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 5871
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: Attachment size max 2mb, how to fix

Post by thecoalman »

2MB is the default limit for Apache install, chances are that is the problem and you may not be able to override this without your host changing the configuration. As Steve suggested check these values on the php information page in phpBB.

ACP >> System >> PHP information
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
willemc
Registered User
Posts: 32
Joined: Tue Apr 28, 2009 8:07 am

Re: Attachment size max 2mb, how to fix

Post by willemc »

I think I'm not clear enough in my OP.
These settings all do show larger filesizes.

Current settings are (displayed by php information):
PHP Version 7.1.14
max_execution_time 300 300
max_file_uploads 20 20
post_max_size 128M 128M
upload_max_filesize 1G 1G

In ACP > General > Attachment-settings Max Filesize is set to 0 (unlimited, but also tried 8MiB, 36MiB etc)
In ACP > Messages > Manage Extensiongroups attachments > images > maximum file size is also set to 0 (tried different values again)
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Attachment size max 2mb, how to fix

Post by Lumpy Burgertushie »

M should be MB and G should GB although I don't think you can use GB. it should probably be 1024MB instead.


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
willemc
Registered User
Posts: 32
Joined: Tue Apr 28, 2009 8:07 am

Re: Attachment size max 2mb, how to fix

Post by willemc »

Okay, I found the issue.
I did a new upload from a fresh downloaded 3.2.2 installation, but it didn't do anything.

Finally I came up to the following problem:
There was a problem with the file
vendor/marc1706/fast-image-size/lib/Type/TypeJpeg.php

It seemed that png etc did upload larger files, only jpg not.
I downloaded a fresh install of phpbb3.2.0 and overwritten the whole marc1706 directory.
Now everything works and I can upload larger files.

Some information:
(has to do with EXIF data)
https://tracker.phpbb.com/browse/PHPBB3 ... ment-60413

I'm not sure why my 3.2.2 fresh download doesn't solve the problem? This should already be incorporated?
Post Reply

Return to “[3.2.x] Support Forum”