News:

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

Main Menu

Image Attachment Dimension

Started by jimbouk1977, August 27, 2010, 10:13:35 PM

Previous topic - Next topic

jimbouk1977

Sorry to bring this post back up but I'm having the same issue I've got my attachment file size set up & so on but any large resolution images get dismissed & fail straight away sending the up-loader to a white page saying done, but it's not as you know when successful it returns to post or form but this is annoying as a lot of us like photography & have high-end big resolution pics and at present having to resize the image to get it uploaded, is there away to fix this ?.

attachment setting are up to 10MB & total 10MB so I.E: 1 file 10MB or 5 files at 2MB. But as said above in the OP 4200 X 3150 pixel images will not upload even though they are only about 1 - 2MB in size any ideas ?.
Might be a stupid question but its how you learn

Using SMF 2.0.1  & SP

Kays

jimbouk1977, you appear to be using 2.0. There is a known issue with 2.0 and it should be fixed in the next version.

Here's a fix for it. See if it solves your problem.

http://www.simplemachines.org/community/index.php?topic=371871.msg2548704#msg2548704

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

jimbouk1977

#2
Yes it is 2.0 RC3

Hi thanks for the reply if you meant ->

Quote from: Kays on March 21, 2010, 09:50:39 AM
I think I found a fix for it.

In Subs-Graphics about line 309 find:


require_once($sourcedir . '/Subs-Package.php');


and add after it:


@ini_set('memory_limit', '90M');



This did not fix it :( it's not file size that is the issue its picture size, E.G:resolution.   i tried after this with an image 4000 x 3000 @ 6.11mb  & it just white screen saying done as before it's actually very annoying as i cant see why image size should come into it if the file size is set to adequate as mine is


Error log is saying this
(found in= File:/Sources/Subs-RSS2.php)

139:  function startElement2($parser, $name, $attrs)
140: {
141:    global $depth;
error line==>142:    $depth[$parser]++;
143: }
Might be a stupid question but its how you learn

Using SMF 2.0.1  & SP

jimbouk1977

#3
update:

Could it be max_execution_time   30  ?

As UK upload speeds suck & it is shutting the connection before upload ?.

TIA
jim


EDIT:
moved that upto 300 and now getting this instead of a white screen im now getting:-   Your attachment couldn't be saved. This might happen because it took too long to upload or the file is bigger than the server will allow.

Please consult your server administrator for more information. 


But i have indevidual file size set to 10240KB & max to the same & php.ini is on 10mb  so shouldnt be an issue that side of things. Any more ideas ?.
Might be a stupid question but its how you learn

Using SMF 2.0.1  & SP

JimM

@ jimbouk1977 - can you post a phpinfo sheet?  (What is phpinfo.php?)
Jim "JimM" Moore
Former Support Specialist

jimbouk1977

Attached as a .PDF :)


Also if you want to split this topic & put it into 2x support instead as ive now kind of hijacted this one 8)
Might be a stupid question but its how you learn

Using SMF 2.0.1  & SP

jimbouk1977

Just noticed that my host has downed the upload size to 2MB & 8MB :(


Edit:

So ive changed my PHP.ini to 10MB post size & 10MB upload & still on 300 second timeout and im back to white screen saying done but no post / attachment again GRRRR

So when you look at that PDF remember ive edited it to be :-

post_max_size = 10M
upload_max_filesize = 10M
max_execution_time  = 300

With attachment settings the same 5 attachments max 10MB & up to 10MB
Might be a stupid question but its how you learn

Using SMF 2.0.1  & SP

Deaks

what im reading is you simply have 3 options, try and find a happy medium, accept that your host wont allow big files or look at a new host
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

JimM

After you made those changes does your phpinfo sheet reflect the change?  If the host is limiting those variables you may have to contact them.
Jim "JimM" Moore
Former Support Specialist

Advertisement: