News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Cannot post large attachment

Started by Sir Osis of Liver, April 15, 2020, 12:37:24 PM

Previous topic - Next topic

Sir Osis of Liver

2.0.15 prod forum, trying to attach 14mb png, all attachment limits set to 0.  File seems to upload, but reply editor reloads blank with " »  Forums »  Misc » Start new topic" in linktree.  Same on clean 2.0.17 install.  Never seen this before.


When in Emor, do as the Snamors.
                              - D. Lister

vbgamer45

You are probably hitting your php upload limits set in the php.ini I have article on them at https://www.smfhacks.com/index.php/topic,3498.0.html
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sir Osis of Liver

Don't think so, image loads fine in img tags.
When in Emor, do as the Snamors.
                              - D. Lister

drewactual

between img tags is using someone else's bandwidth to host your image... using php to upload, as in to hang it off your server, has limits... I think the default is 8mb but it may differ from install to install.

if you don't have access to the root httpd.conf file, or the php.ini, you may be able to change it in htaccess...

php_value upload_max_filesize 16M



vbgamer45

Correct image tags is not the same attaching/uploading to the server that is just linking to the file that is already uploaded somewhere else.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sir Osis of Liver

Just back on, will take a look at php.ini soon as I get a minute.  Why does it redirect to 'Start new topic' when upload fails?

When in Emor, do as the Snamors.
                              - D. Lister

vbgamer45

Not sure why it does but that happens with a form filled in SMF above the attach/upload limit
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sir Osis of Liver

Increased upload_max_filesize to 1gb, wsod on post, no errors.  Set memory_limit = 512mb, post_max_size = 1gb, upload_max_filesize = 512mb, still wsod. >:(
When in Emor, do as the Snamors.
                              - D. Lister

vbgamer45

in php.ini? and restarted the webserver   
if running as fast cgi there is also a setting if fcgi config as well

why so high limits for 14mb file?

Also post_max_size and upload_max_size should be the same size.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sir Osis of Liver

Ok, it was two different problems.  Cannot edit php.ini directly, but I can change php settings in cpanel.  Reset php options to default, got the original glitch, reply editor loops back to 'Start new topic'.  After increasing  memory_limit 128 mb > 512mb, post_max_size 8mb > 1gb, upload_max_filesize 2mb > 512mb, wsod with 'Resize images when showing under posts' enabled, works if disabled but displays image full size below post.  Problem appears to be in resize function, you should be able to replicate.  Surprised I've never seen this before.
When in Emor, do as the Snamors.
                              - D. Lister

vbgamer45

Yeah resizing memory limit was raised in 2.1.x you can increase it a lot picture resizing takes a ton of memory.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sir Osis of Liver

Is that caused by SMF memory setting or php limit?  Can it be changed in 2.0?
When in Emor, do as the Snamors.
                              - D. Lister

vbgamer45

it's what SMF sets. Yes it can be just edit the places where memory_limit is set
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sir Osis of Liver

That fixed it.  Bumped all occurrences of memory_limit up to 512mb in index.php and source files, image resizes and posts correctly.  Thanks.
When in Emor, do as the Snamors.
                              - D. Lister

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: