Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PHP Error?

0 views
Skip to first unread message

ame...@iwc.net

unread,
Sep 18, 2005, 3:45:24 PM9/18/05
to

Hi All,

I'm trying to track down this error. I had a web site written for my
company. There is an admin function where we can select photos to be
uploaded to the server for display on the site.

Anyhow, if I select more than 7 photos at a time I receive this error:

Request Entity Too Large
The requested resource
/admin/add_product.php
does not allow request data with POST requests, or the amount of data
provided in the request exceeds the capacity limit

The web guys really have no clue on this, so I'm trying to track it
myself. The website is on a Red Hat 9 server.

Any ideas or thoughts?

Thanks,

Arthur

Colin McKinnon

unread,
Sep 18, 2005, 3:50:47 PM9/18/05
to
ame...@iwc.net wrote:

>
> Anyhow, if I select more than 7 photos at a time I receive this error:
>
> Request Entity Too Large
> The requested resource
> /admin/add_product.php
> does not allow request data with POST requests, or the amount of data
> provided in the request exceeds the capacity limit
>

Not sure - where are you seeing this error? You can set a max upload in the
php.ini file (which IIRC can be overridden in the apache config locally).
There is also a limit set by apache.

HTH

C.

ame...@iwc.net

unread,
Sep 18, 2005, 4:28:49 PM9/18/05
to

I have a number of locations on the screen where I select images for
different parts of the website. When I am done selecting, I click on
the 'Add/Update' button in the form and I get this error.

I'll look at this php.ini file........not sure what I am looking for,
but let's see.......

Arthur

ame...@iwc.net

unread,
Sep 18, 2005, 4:37:44 PM9/18/05
to

Does PHP get 'loaded'? I changed the max upload size in the php.ini
file to 24 megs.......and it still fails.

Do I need to reload php?

Geoff Muldoon

unread,
Sep 18, 2005, 7:45:41 PM9/18/05
to
ame...@iwc.net says...

>
> Does PHP get 'loaded'? I changed the max upload size in the php.ini
> file to 24 megs.......and it still fails.
>
> Do I need to reload php?

You should stop and restart your web server. Presuming that (on RH) this
is Apache you should also be aware that Apache itself may also
independently set a restriction on maximum upload file size (and the error
message you quoted look more like an Apache one than a PHP one).

Geoff M

Darkstar 3D

unread,
Sep 18, 2005, 8:01:12 PM9/18/05
to
I think you need some new IT or webadmin guys! :) It will be very
difficult IMHO to diagnose this over a newsgroup. But, what was written
to the error log. This should have many more clues than a cryptic error
message.

Adam

unread,
Sep 21, 2005, 4:47:41 AM9/21/05
to

How are you gathering the info for the requests? Is it being passed by
a GET by any chance? If so, I thought there was a physical limit to
how many characters you can pass via a URL <?>.

Adam.

Fran García

unread,
Sep 21, 2005, 4:58:49 AM9/21/05
to

At your php.ini in your webserver there is a directive like
post_max_size = 16M

Maybe you must change this value to a higher value.

John Dunlop

unread,
Sep 23, 2005, 3:29:17 AM9/23/05
to
Adam wrote:

> I thought there was a physical limit to how many characters
> you can pass via a URL <?>.

STD66 - the RFC which, among other things, defines the generic URI
syntax - doesn't impose a limit on URL length. But there could be
scheme-specific limits, practical limitations, and even private
policies that foist their own restrictions on those working under them.

--
Jock

Andy Hassall

unread,
Sep 23, 2005, 3:26:26 PM9/23/05
to
0 new messages