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
Picture uploads stopped working after almost a year of working fine!
Started 13 years ago by jethomas | 3 posts |
-
Hi,
I'm posting on behalf of a client who hosts a service that utilizes machform to upload products to a central listing service. I wrote the code to use the uploaded information (including pictures) to post to the listing page. All of a sudden the pictures are no longer being saved to the database. The resulting insert for the picture url column is now NULL... this has worked flawlessly for sometime and just now began now to work.
When I go in to manually edit the entires and add the picture to their submission ( as an upload) i get this error:
Warning: move_uploaded_file(./data/form_1/files/element_7_6862ab1e6531863374928e7eedfe5fc9-3896-me.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in D:\InetPub\vhosts\digifavs.com\httpdocs\machform\includes\post-functions.php on line 2051
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'D:\InetPub\Temp\PHP\php4184.tmp' to './data/form_1/files/element_7_6862ab1e6531863374928e7eedfe5fc9-3896-me.jpg' in D:\InetPub\vhosts\digifavs.com\httpdocs\machform\includes\post-functions.php on line 2051
Warning: Cannot modify header information - headers already sent by (output started at D:\InetPub\vhosts\digifavs.com\httpdocs\machform\includes\post-functions.php:2051) in D:\InetPub\vhosts\digifavs.com\httpdocs\machform\edit_entry.php on line 42
The machform for this domain is located here: http://www.digifavs.com/Upload_Ad.php
There are almost 4000 entries in the DB but the hosting service is unlimited so that should not be an issue.
Basically every piece of information entered on the machform except for the upload is being saved to the DB. This is causing my client who relies on these postings for income to lose hair.
Any help would be appreciated.
Thanks.
Posted 13 years ago # -
Hi,
It seems there is some problem with your server.
Most likely the folder "D:\InetPub\Temp\PHP\" on your server is not having the correct permission, hence the failed uploads.I suggest to contact your hosting tech support and let them know about this, since this is server issue. They should be able to fix it.
MachForm Founder
Posted 13 years ago # -
I had a similar problem. To "fix" it, I had to manually create the data folder for that form because it was not there. For example, I went into the data folder, and created the directories form_54 and form_54/files and gave them both full write permissions and then it worked perfectly.
This isn't exactly the best solution but it is a temporary workaround.
Posted 12 years ago #
Reply
You must log in to post.