This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Keep getting this error


  1. iceman1002
    Member

    Keep getting this error back from my form

    Here is link to the form
    http://www.dstlaser.com/submissionform.html ( SELECT WOMAN )
    The other pages are not done, Please forgive appearance I am not done with cleaning it up yet

    These were 7 files 1.1MB each

    Warning: move_uploaded_file(/tmp/phphOi1RO) [function.move-uploaded-file]: failed to open stream: No such file or directory in /mnt/w1001/d01/s03/b02bae2b/www/dstlaser.com/machform/includes/post-functions.php on line 1031

    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phphOi1RO' to './data/form_3/files/element_15_19ee049752cf7ddacc14580c5850c3d7-8-1.jpg' in /mnt/w1001/d01/s03/b02bae2b/www/dstlaser.com/machform/includes/post-functions.php on line 1031

    Warning: move_uploaded_file(/tmp/phpdHw0Hn) [function.move-uploaded-file]: failed to open stream: No such file or directory in /mnt/w1001/d01/s03/b02bae2b/www/dstlaser.com/machform/includes/post-functions.php on line 1031

    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpdHw0Hn' to './data/form_3/files/element_21_1b0876dea70f0913caf3e336631c7226-8-3.jpg' in /mnt/w1001/d01/s03/b02bae2b/www/dstlaser.com/machform/includes/post-functions.php on line 1031

    Warning: move_uploaded_file(/tmp/phpY74Vws) [function.move-uploaded-file]: failed to open stream: No such file or directory in /mnt/w1001/d01/s03/b02bae2b/www/dstlaser.com/machform/includes/post-functions.php on line 1031

    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpY74Vws' to './data/form_3/files/element_22_db3a98289ea17c7eaa8fcaae20d3ab54-8-2.jpg' in /mnt/w1001/d01/s03/b02bae2b/www/dstlaser.com/machform/includes/post-functions.php on line 1031

    Warning: Cannot modify header information - headers already sent by (output started at /mnt/w1001/d01/s03/b02bae2b/www/dstlaser.com/machform/includes/post-functions.php:1031) in /mnt/w1001/d01/s03/b02bae2b/www/dstlaser.com/machform/view.php on line 41

    Posted 16 years ago #
  2. Saghalie
    Pro Member

    Basically you are telling the program to copy the file to the data directory under the /tmp directory (/tmp/data). Since there is not a directory named data in your tmp directory; your system is throwing this error.

    You will more than likely have to change the "data" dir in your config file the full dir spec (path).

    e.g.
    /mnt/w1001/d01/s03/b02bae2b/www/dstlaser.com/machform/data

    Hope this helps

    Saghalie

    Posted 16 years ago #
  3. iceman1002
    Member

    2 Questions
    -----
    You will more than likely have to change the "data" dir in your config file the full dir spec (path).

    e.g.
    /mnt/w1001/d01/s03/b02bae2b/www/dstlaser.com/machform/data
    ----

    1) Which file do I put it in?
    2) Where?

    Keep in mind attaching 3 files works, But when I attach more than that I get the error.

    I need the form to accept 7

    Anthony

    Posted 16 years ago #
  4. Saghalie
    Pro Member

    check your config.php file and change the data dir to the full file path of the data dir and see if that will work.

    If not, then I imagine that there is an issue with the php configuration of the server; if that doesn't pay out, then maybe Yuniar or Redityo will need to check the post-functions.php file for the issue.

    Sorry that didn't pan out for you.

    Saghalie

    Posted 16 years ago #
  5. yuniar

    If you are able to upload 3 files successfully, then most likely you don't need to modify your current config.php file.

    Try to upload 7 small files, few KB each. Let us know how it goes.

    What you need to check further is your PHP configuration, it could be file upload limit or max execution time (your script timed out before the upload completed).

    To allow large file uploads, modifying the php.ini is the only requirement. You will need to adjust these settings:

    * upload_max_filesize
    * max_execution_time
    * max_input_time
    * post_max_size
    * memory_limit

    For max_execution_time and max_input_time.. try to set to 300 or 400, while the others should be larger than 12MB for sure.
    Special note for post_max_size, this value must be larger than upload_max_filesize

    Try to adjust the above settings and make sure to restart your apache for the setting to take effect.


    MachForm Founder

    Posted 16 years ago #
  6. yuniar


RSS feed for this topic

Reply