I get this error when attempting to upload.
* The selected file /var/tmp/tmp_g4ddAR could not be uploaded, because the destination /tmp/video/gbtvwindows.wmv is not properly configured.
* warning: Attempt to assign property of non-object in /home/wavformc/public_html/sites/all/modules/video/types/video_upload/video_upload.module on line 339.
* user warning: Duplicate entry '0' for key 1 query: INSERT INTO files (fid, nid, filename, filepath, filemime, filesize) VALUES (0, 1, 'video_upload_temp.', '', '', 0) in /home/wavformc/public_html/includes/database.mysql.inc on line 174.
* You have not provided any video file. Please upload one.
If you uploaded a video but the system did not received it, please check that it is smaller than 100 MB.
File is not too large
I am a newbie so need some help with the response I got from Blue Host below. What exactly is he telling me to do.
"Dear customer,
A couple things, delevoping on a WAMP server really complicates the issue, only because our system runs on Linux for one, and two, is no where near similar to either a WAMP or LAMP setup, as we use PHP as a CGI, wrapped around the suexec policy daemon, as well as other, not so common settings. So making something work on a WAMP or LAMP server doesn't mean it can, or should work on our system, while frustrating in some manner, our setup actually allows our customers much more flexibility as each web request is executed by the suexec daemon as the customer's username, and not some generic web server user, thus allowing for greater freedom and customization with regard to certain configuration settings, such as php.ini. Now, what the problem I'm seeing is your script is trying to upload to a folder called /tmp/video, this is seen by the error message:
* The selected file /var/tmp/tmp_xs91Gf could not be uploaded, because the destination /tmp/video/gbtvwindows.wmv is not properly configured.
customers have limited permissions in the /tmp directory, to overcome this, we set the upload_tmp_dir directive in php.ini to a directory within your home directory, something like:
/home/wavformc/tmp
should be adequate to overcome this slightly annoying problem you're experiencing. Note, once again, due to our custom setup, changes to the php.ini file do not require a restart of the web server, as they would on a traditional setup, so long as you're using the setting PHP 5 Single INI in PHP Config module of cPanel, and make your changes to the php.ini in public_html/ directory. Thanks, Jonathan Jones Level 2 Scripting Specialist http://bluehost.com/ 888-401-4678"
Do I change a setting in php.ini or is a change in the modules php code required? The php.ini I have access too. If php code is required I really have no clue without some direction including what tools to use. Again just trying to upload videos to play in Dash Player.
Thanks
Comments
Comment #1
fax8 commentedSeems simply a misconfiguration of your Drupal path. You might want to check your php.ini file and look which is your temp directory path.
Just navigate to admin/settings/file-system and set the temporary directory to the one you find in your php.ini.
Hope this helps. Let me know if you still have problems.
Comment #2
wavform commentedfax8
Thank you, thank you. I was hoping it was something stupid on my part. Showing how new I am it didn't even occur to me to check the Drupal core settings since it worked with other upload modules. I tested with a small file and the error is no more.
Thanks again.
Comment #3
fax8 commentedok.. happy to help you.