Can't Add (certain) media...

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Guest

Can't Add (certain) media...

Post by Guest »

I am using Serendipity 0.7.1 with mySQL 3.23.58 on RedHat ES 3.

Everything works great...EXCEPT...when I try to "Add Images". Some images work OK...however I cannot figure out what the conditions for working are...it seems images which are smaller (both in pixel size and KB) work much more often - I have never had an image fail to load which is smaller than 500KB. But, all my editors cameras are over 1Megapixel and so their uploads (and mine) are all failing with a popup error of:

The attempt to Load: 'Accessing URL /serendipity/serendipity_entries.php?" failed.

Is there a constraint on the KB and/or pixel width+height in Serendipity, ImageMagick and/or MySQL?

And if so...is there any mods I can make to the PHP to first change the image size down to the "acceptable" format and *then* thumb nail that image and put them in the DB?

--PAUL
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Can't Add (certain) media...

Post by garvinhicking »

From where does the 'The attempt to load' error message come? It doesn't come from Serendipity, so I suppose it comes from either your webserver or your browser.

PHP has a fiel_upload, post_limit and memory_limit setting in php.ini which you may need to finetune to allow large file uploads.

And there currently is no mod to resize the original images. I would suggest you to scale down the images on your client first...Compression and resize in Photoshop or others is much more better than with imagemagick or gdlib.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Re: Can't Add (certain) media...

Post by Guest »

garvinhicking wrote:From where does the 'The attempt to load' error message come? It doesn't come from Serendipity, so I suppose it comes from either your webserver or your browser.

PHP has a fiel_upload, post_limit and memory_limit setting in php.ini which you may need to finetune to allow large file uploads.

And there currently is no mod to resize the original images. I would suggest you to scale down the images on your client first...Compression and resize in Photoshop or others is much more better than with imagemagick or gdlib.

Regards,
Garvin
It appears to be coming from apache...I see it as a 413 error in the error_log.

I will check those out and see if I can get it up to about 2MB. Thanks for that bit of info...I think that might do it.

I - myself - would be happy to resize the images first...but the problem is that all 11 other people in my (Catholic :^) family are also updating the blog with their own stories and images...and they neither have 1) the skills 2) the software to manipulate images. So if I want to see their posts of babies and new houses I just need to accept the images and then go in and fix them myself after the upload. That is the main crux of my problem.

I really appreciate the assistance and will be back to confirm whether it saved my family blog. THANKS!!!

--PAUL
Guest

Post by Guest »

Hmmmm...all those setting were at the defaults...which were 2M and 8M respectively...which are larger than anything I am trying to upload - BUT I did go and double all of them...and was still unable to upoad a 1MB image.

Pulling the actual error from my apache error_log:

---------------begin------------------
[error] Requested content-length of 1055833 is larger than the configured limit of 524288, referer: /serendipity/serendipity_entries.php?serendipity[adminModule]=images&serendipity[adminAction]=addSelect


...so it kinda seems the content-length is defined somewhere in Serendipity...but grepping the *php files I can't seem to find it. I wish I knew PHP better...

Thanks for everyone's help.

--PAUL
Post Reply