move_uploaded_file error
| Project: | Image Publishing |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | pangloss |
| Status: | closed |
Jump to:
hello, i am trying to use image_pub with iphoto2gallery with drupal 4.7.0 and the 4.7.0 version of image.module
I changed image_get_vid() to image_gallery_get_vid() as was necessary due to the most recent update to image.module separating the gallery function into image_gallery.module, and now the gallery remote works, however when i select images to upload, they appear to upload fine, however when i click on my gallery page i receive the following error:
warning: move_uploaded_file(/tmp/phpKMyhqm) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/.oma/arbfilms/michaelmallon.net/modules/image_pub/image_pub.module on line 227.
warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpKMyhqm' to '/tmp/phpKMyhqm' in /home/.oma/arbfilms/michaelmallon.net/modules/image_pub/image_pub.module on line 227.
The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
the error will duplicate over and over for whatever number of files i attempted to upload.
any help would be greatly appreciated.

#1
A) please try with the latest version of the code in cvs. For instance, the call to image_get_vid had already been updated
If you're still having an issue w/ move_uploaded_file,
I noticed a similar error in my own testing. Changing the location of Drupal's default temporary files setting (administer - settings - file system settings) from the default /tmp to any location under drupal's filesystem path appears to be a workaround (e.g. sites/example.com/files/foo).
#2
changing the temp dir worked for me.
will try the cvs code later tonight.
#3
downgrading priority since we have an easy workaround for the time being.
#4
i'm having the same problem,and ur quick path fix doesn't work
this is what i'm getting
move_uploaded_file(): Moved: '/var/tmp/phpL7vK6F' to 'xyz/files/tmp_XlaKpb' in /home/recipesh/public_html/beta/includes/file.inc on line 239.
Severity error
#5
The error message you provided (
/var/tmp/phpL7vK6F) suggests that you haven't changed the filesystem location.#6
i believe i did.. "var/tmp" is the default PHP for tmp file storage
#7
The point is that there seems to be a problem using locations not under drupal's filesystem path. The workaround appears to be choosing a relative path under your drupal installation, e.g. "sites/example.com/files/foo" not "/var/tmp/foo".
#8
move_uploaded_file(): Moved: '/var/tmp/php6SAAml' to 'var/temp/tmp_FUnrv5' in /home/recipesh/public_html/beta/includes/file.inc on line 239.
Severity error
Hostname 64.175.40.224
the error message indicates that the uploaded file never got move to "system file path" which i have specified "files/images"
all permission were set to 777
don't understand why
#9
what do u mean by "site/exmaple.com"?
example.com is my domain name? what about "site"? tks
#10
I did create a directory under my drupal file system
recipex.com/beta/files
#11
I'm closing this bug, as (a) it applies to the 4.7.x branch which I'm not actively supporting and (b) there has been no activity on it for over two years.