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 » Wed Apr 25, 2018 9:57 am

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?

janus_zonstraal
Registered User
Posts: 2268
Joined: Sat Aug 30, 2014 1:30 pm

Re: Attachment size max 2mb, how to fix

Post by janus_zonstraal » Wed Apr 25, 2018 11:44 am

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: 49013
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 » Wed Apr 25, 2018 1:58 pm

In the ACP, click PHP Information and tell us the value of these two settings - post_max_size and upload_max_filesize
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. PM or email me.

All unsolicited PMs will be ignored.

User avatar
Froddelaar
Registered User
Posts: 779
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 Froddelaar » Wed Apr 25, 2018 2:21 pm

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
Wij promoten UW muziek in ons forum & delen alles via Sociale media!
Muziek wordt ook toegevoegd in de playlist van
textradio.be!
Mail uw single + hoesje + info naar: info@muziekpromo.net of Solidjeuh@textradio.be
===============
Onze Website: https://www.muziekpromo.net

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 49013
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 » Wed Apr 25, 2018 3:14 pm

Yes, 8M. But note that your host may not permit this setting to be changed.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. PM or email me.

All unsolicited PMs will be ignored.

User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 2600
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 » Thu Apr 26, 2018 11:46 am

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

willemc
Registered User
Posts: 32
Joined: Tue Apr 28, 2009 8:07 am

Re: Attachment size max 2mb, how to fix

Post by willemc » Mon Apr 30, 2018 6:56 am

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: 64234
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Attachment size max 2mb, how to fix

Post by Lumpy Burgertushie » Mon Apr 30, 2018 7:13 am

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


robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

willemc
Registered User
Posts: 32
Joined: Tue Apr 28, 2009 8:07 am

Re: Attachment size max 2mb, how to fix

Post by willemc » Wed May 02, 2018 9:05 am

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”

Who is online

Users browsing this forum: batthula sriram, Crizzo, KevC, lopoto and 29 guests

cron