I get this problem when trying to upload into the album of the module my-album-p. I am a experience use of the module. but I couldn't troubleshoot this problem.
I get this error on debug
Warning: getimagesize() [function.getimagesize]: open_basedir restriction in effect. File(/var/tmp/phpWS1amx) is not within the allowed path(s): (/home/spascom:/usr/lib/php:/usr/local/lib/php:/tmp) in file /modules/myalbum/class/myuploader.php line 332
Warning: getimagesize(/var/tmp/phpWS1amx) [function.getimagesize]: failed to open stream: Operation not permitted in file /modules/myalbum/class/myuploader.php line 332
Warning: Failed fetching image size of /var/tmp/phpWS1amx, skipping max width check.. in file /modules/myalbum/class/myuploader.php line 337
Warning: getimagesize() [function.getimagesize]: open_basedir restriction in effect. File(/var/tmp/phpWS1amx) is not within the allowed path(s): (/home/spascom:/usr/lib/php:/usr/local/lib/php:/tmp) in file /modules/myalbum/class/myuploader.php line 352
Warning: getimagesize(/var/tmp/phpWS1amx) [function.getimagesize]: failed to open stream: Operation not permitted in file /modules/myalbum/class/myuploader.php line 352
Warning: Failed fetching image size of /var/tmp/phpWS1amx, skipping max height check.. in file /modules/myalbum/class/myuploader.php line 357
Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/var/tmp/phpWS1amx) is not within the allowed path(s): (/home/spascom:/usr/lib/php:/usr/local/lib/php:/tmp) in file /modules/myalbum/class/myuploader.php line 302
Warning: move_uploaded_file(/var/tmp/phpWS1amx) [function.move-uploaded-file]: failed to open stream: Operation not permitted in file /modules/myalbum/class/myuploader.php line 302
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/var/tmp/phpWS1amx' to '/uploads/photos/tmp_458beda55eefb.jpg' in file /modules/myalbum/class/myuploader.php line 302
Notice: Only variables should be assigned by reference in file /modules/smartsection/xoops_version.php line 527
I also facing the same problem right now, hope to solve it soon....
thanks
email a trouble ticket to your webhost. i believe the problem you are facing deals with the way your webhost has configured your site/server . probably something to do with safe mode or the open_base_dir setting .
Good Luck.
Your problem is caused by hosting service's ignorance.
open_basedir should be includes the temporary directory for php uploading.
File(/var/tmp/phpWS1amx) is not within the allowed path(s): (/home/spascom:/usr/lib/php:/usr/local/lib/php:/tmp)
This means your server's php uploads /var/tmp but this directory is not in open_basedir's list.
Claim it to the administrator or move to another hosting services.