PHP Error?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • amerar@iwc.net

    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

  • Colin McKinnon

    #2
    Re: PHP Error?

    amerar@iwc.net wrote:
    [color=blue]
    >
    > 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
    >[/color]

    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.

    Comment

    • amerar@iwc.net

      #3
      Re: PHP Error?


      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

      Comment

      • amerar@iwc.net

        #4
        Re: PHP Error?


        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?

        Comment

        • Geoff Muldoon

          #5
          Re: PHP Error?

          amerar@iwc.net says...[color=blue]
          >
          > 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?[/color]

          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

          Comment

          • Darkstar 3D

            #6
            Re: PHP Error?

            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.

            Comment

            • Adam

              #7
              Re: PHP Error?

              On 18 Sep 2005 12:45:24 -0700, amerar@iwc.net wrote:
              [color=blue]
              >
              >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.[/color]

              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.

              Comment

              • Fran García

                #8
                Re: PHP Error?

                Adam wrote:[color=blue]
                > On 18 Sep 2005 12:45:24 -0700, amerar@iwc.net wrote:
                >
                >[color=green]
                >>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.[/color]
                >
                >
                > 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.[/color]

                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.

                Comment

                • John Dunlop

                  #9
                  URL length

                  Adam wrote:
                  [color=blue]
                  > I thought there was a physical limit to how many characters
                  > you can pass via a URL <?>.[/color]

                  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

                  Comment

                  • Andy Hassall

                    #10
                    Re: PHP Error?

                    On 18 Sep 2005 12:45:24 -0700, amerar@iwc.net wrote:
                    [color=blue]
                    >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.[/color]





                    --
                    Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
                    http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

                    Comment

                    Working...