+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 15 of 17

Thread: Invalid Post Specified while uploading attachment

  1. #1

    Question Invalid Post Specified while uploading attachment

    I have gone through this entire forum to see if someone else has reported this, but couldn't find anything so here goes.

    The problem I have sounds similar to other forum owners problem but produces the message
    Invalid Post Specified, if you followed a valid link, pleae notify the webmaster
    This error occurs when I try to upload a file of ANY type that is greater than 992 Kb.
    As per the various other thread's instructions I have opened and edited my php.ini file and increased various suggested upload variables as shown below

    post_max_size = 12M
    upload_max_filesize = 8M
    memory_limit = 16M

    and in my.cnf:
    set-variable = max_allowed_packet=8M

    After all this I dutifully restarted the server but alas, the problem persists.

    I run Linux 9 (shrike) vb 3.0.3 on a celeron (unreal huh, but that is what this dedicated server has, with 512 Mb memory and a 60 Gb hard drive.
    The one major difference between servers just running Linux and this dedicated server is that the latter also has something called Plesk 6.0 which does mess with the operating system and with sql. Unfortunately I have no idea what that is.

    Any ideas are most welcome and will be most appreciated.

  2. #2
    Customer Support Manager Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol's Avatar
    Join Date
    Jul 2000
    Location
    Jelsoft InterGalactic HQ
    Posts
    143,007
    What's the URL to your forums? Have you installed any hacks? Have you tried using the original vB files and templates to see if you have the same problem?
    Steve Machol, vBulletin Customer Support Manager
    "Have Copy, Will Paste" (when appropriate)

    Please do not email or PM me for vBulletin support. I will be more than glad to answer your questions on the vB Forums and in the support system.

    Just remember that what happens in localhost, stays in localhost.


  3. #3
    URL = http://www.polinco.net/forum

    I am a registered lifetime owner and the forum is in pristine condition, No hacks of any kind have been applied at this time.

  4. #4
    Customer Support Manager Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol's Avatar
    Join Date
    Jul 2000
    Location
    Jelsoft InterGalactic HQ
    Posts
    143,007
    You may also need to increase the max_execution_time and max_input_time variables in php.ini.

    Also you might want to take a look at this for other settings that affect file uploads:

    http://www.vbulletin.com/forum/showp...0&postcount=12
    Steve Machol, vBulletin Customer Support Manager
    "Have Copy, Will Paste" (when appropriate)

    Please do not email or PM me for vBulletin support. I will be more than glad to answer your questions on the vB Forums and in the support system.

    Just remember that what happens in localhost, stays in localhost.


  5. #5
    vBulletin Developer Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham's Avatar
    Join Date
    May 2000
    Location
    California
    Age
    36
    Posts
    13,962
    Blog Entries
    16
    Apache also has limits on maximum POST sizes. Have you checked those (the name escapes me)?
    vBulletin Developer since Dec 2000

  6. #6
    Quote Originally Posted by TheHideOutGuy
    It is also possible for apache to be set to reject posts of a certain size or greater. I believe, if memory serves me correctly the directive LimitRequestBody which can be found in your httpd.conf file.
    I do not have a LimitRequestBody in my httpd.conf.

    Any suggestions as to what I should set those max_execution_time and max_input_time variables in php.ini to?

    On second thought, I only have the variable
    max_execution_time = 30

    I don't have one called max_input_time

    Where would that go?

    <edit>I found the following well-presented page: PHP Upload Configuration that might be of interest to others reading this thread. I am now applying the things I learn here and shall report my findings forthwith. Steve, Freddie, if you find additional helpful info, please do not hesitate to add that here, I do appreciate any help you can give, thanks so much! </edit>
    Last edited by Polinco; Tue 12th Oct '04 at 4:39pm.

  7. #7

    Talking Success!

    Steve, Freddie, I have gotten it to work now, thank you.

    The following info applies to servers with Red Hat 9.0 OS.

    After I had already changed the following parameters in /etc/php.ini
    post_max_size = 12M
    upload_max_filesize = 8M
    memory_limit = 16M

    and added this line in /etc/my.cnf:
    set-variable = max_allowed_packet=8M...

    things still didn't work. The link I posted above showed that there was a third file to be edited, namely /etc/httpd/conf.d/php.conf
    It is THIS file that contains the directive LimitRequestBody and it is set to a default of 524288 (512kb) I changed it to 8388608 (8Mb)

    Now it works.

    Hope this helps anyone else with this pesky problem, and perhaps someday this info, which thoroughly overrides anything one can set in the Admin Control Panel, might find its way into the user manual.

    Goodday all!

  8. #8
    Member fablau has disabled reputation
    Join Date
    Apr 2005
    Location
    California, US
    Age
    38
    Posts
    36
    I am unable to make MySQL configure correctly the max_allowed_packet. I hvae the following lines in my /etc/my.cnf file:
    Code:
      [mysqld]
      datadir=/var/lib/mysql
      socket=/var/lib/mysql/mysql.sock
      
      [mysql.server]
      user=mysql
      basedir=/var/lib
      
      [safe_mysqld]
      err-log=/var/log/mysqld.log
      pid-file=/var/run/mysqld/mysqld.pid
    Where do you suggest to put the 'set-variable = max_allowed_packet=8M' directive? I tried to put it at the end of the file, restarted MySQL but still I have set 1048576 as max_allowed_packet.

    Thank you in advance.

    Fab.
    Virtual Sheet Music®, Inc.
    Classical Sheet Music Downloads®
    http://www.virtualsheetmusic.com

  9. #9
    Customer Support Manager Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol's Avatar
    Join Date
    Jul 2000
    Location
    Jelsoft InterGalactic HQ
    Posts
    143,007
    Quote Originally Posted by fablau
    Where do you suggest to put the 'set-variable = max_allowed_packet=8M' directive?
    Place it under the [mysqld] section:

    [mysqld]
    datadir=/var/lib/mysql
    socket=/var/lib/mysql/mysql.sock
    set-variable = max_allowed_packet=8M
    Steve Machol, vBulletin Customer Support Manager
    "Have Copy, Will Paste" (when appropriate)

    Please do not email or PM me for vBulletin support. I will be more than glad to answer your questions on the vB Forums and in the support system.

    Just remember that what happens in localhost, stays in localhost.


  10. #10
    things still didn't work. The link I posted above showed that there was a third file to be edited, namely /etc/httpd/conf.d/php.conf
    It is THIS file that contains the directive LimitRequestBody and it is set to a default of 524288 (512kb) I changed it to 8388608 (8Mb)
    I can't find it anywhere in /etc/httpd/conf.d/php.conf. How can I add that?

  11. #11
    I tried everything I still unable to upload any video file. What am I doing wrong?

  12. #12
    vBulletin Developer Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham's Avatar
    Join Date
    May 2000
    Location
    California
    Age
    36
    Posts
    13,962
    Blog Entries
    16
    What is in your /etc/httpd/conf.d/php.conf? What version of Apache are you using?

    You are looking for something like this:

    <Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    LimitRequestBody 20524288
    </Files>

    You could also try putting it in /etc/httpd/conf/httpd.conf and restarting apache.
    vBulletin Developer since Dec 2000

  13. #13
    This is whats in my file. I am running Apache/2.0.52 (Red Hat)
    Code:
     
    #
    # PHP is an HTML-embedded scripting language which attempts to make it
    # easy for developers to write dynamically generated webpages.
    #
    LoadModule php4_module modules/libphp4.so
    #
    # Cause the PHP interpreter to handle files with a .php extension.
    #
    AddType application/x-httpd-php .php
    # AddType application/x-httpd-php-source .phps
    #
    # Add index.php to the list of files that will be served as directory
    # indexes.
    #
    DirectoryIndex index.php
    
    Now where would I add it?
    Last edited by boataholic; Fri 21st Oct '05 at 11:47am.

  14. #14
    same issue not video but files 10mb or bigger don't upload I also could not find a php.conf
    Quote Originally Posted by Annie^.^
    I can't find it anywhere in /etc/httpd/conf.d/php.conf. How can I add that?

  15. #15

    I am having this issue as well

    I'm a noob.

    I need to be able to allow people upload massive attachments, like videos. I have set the max for things like .avi to 99999999 in the attachment manager, moved the attachments to the file system and updated php.ini with upload_max_filesize = 500M.

    I am running on a shared hosting plan on 1and1.com, so I am not able to change many of the things discussed in this thread.

    What else can I try? This is a fundamental service we have to provide on the forum.

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Similar Threads

  1. Invalid Image - when uploading
    By evilc in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 9
    Last Post: Tue 15th Jun '04, 4:34pm
  2. Emergency - Ever post, edit, I make I get invalid page
    By glenv in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 6
    Last Post: Wed 7th Apr '04, 2:29pm
  3. Test Image attachement... (ignore this post)
    By websissy in forum A place to test things out
    Replies: 3
    Last Post: Sun 14th Sep '03, 7:12am
  4. When previewing post with an attachement...
    By Sharg in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 0
    Last Post: Mon 26th Feb '01, 8:24pm
  5. When I delete a post containing an attachement...
    By Sharg in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 1
    Last Post: Thu 15th Feb '01, 2:58pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts