473,394 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

PHP Error?


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

Sep 18 '05 #1
9 2774
am****@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.
Sep 18 '05 #2

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

Sep 18 '05 #3

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?

Sep 18 '05 #4
am****@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
Sep 18 '05 #5
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.

Sep 19 '05 #6
On 18 Sep 2005 12:45:24 -0700, am****@iwc.net wrote:

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.


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.
Sep 21 '05 #7
Adam wrote:
On 18 Sep 2005 12:45:24 -0700, am****@iwc.net wrote:

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.

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.


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.
Sep 21 '05 #8
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
Sep 23 '05 #9
On 18 Sep 2005 12:45:24 -0700, am****@iwc.net wrote:
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.

http://www.google.co.uk/search?q=%22...capacity+limit
http://www.w3.org/Protocols/rfc2616/...tml#sec10.4.14
http://httpd.apache.org/docs/2.0/mod...mitrequestbody
--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Sep 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
2
by: Gregory | last post by:
Hi, One of the disadvantages of using error handling with error codes instead of exception handling is that error codes retuned from a function can be forgotten to check thus leading to...
13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
3
by: Manuel | last post by:
I'm trying to compile glut 3.7.6 (dowbloaded from official site)using devc++. So I've imported the glut32.dsp into devc++, included manually some headers, and start to compile. It return a very...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
5
by: yashu0209 | last post by:
I have an error occurring when i try to compile the program and the error is: D:\Program Files\visual studio 6.0\MSDev98\MyProjects\GLEnabledView\GLNew.cpp(164) : error C2653: 'CGLEnabledView' :...
2
by: randa zaghdan | last post by:
Hi I have a problem with my program in vc 2008 When I compile it, the following errors are listed. I try to resolve it but no hope Does any one can help me ? thanks . Linking......
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.