coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: pwoens on September 05, 2006, 05:11:07 PM

Title: Another "Impossible to Move" error
Post by: pwoens on September 05, 2006, 05:11:07 PM
Hello all...

First of all, I apologize as I see this has been asked quite a few times, but unfortunately none of the resolutions offered have been able to correct the issue.  I searched and tried any resolution offered but maybe I overlooked something as it was late??  Either way, thanks a ton. 

I upgraded to the latest version of CPG.

I did verify and also reset permissions on all folders and subfolders to 777 as suggested.

I also recreated the edit folder.

If I set it to fixed upload of 1, it will work.  If I set it to fixed of 2 or more it will bomb out?  Also, variable fails as well.


UPDATE: i went through the 1.3.x section as well and none of the resolutions fixed my problem.
Title: Re: Another "Impossible to Move" error...with a twist
Post by: Sami on September 05, 2006, 05:24:31 PM
- Do not post debug info uless requested
- here is what I've got from search:
http://forum.coppermine-gallery.net/index.php?topic=32731.0
http://forum.coppermine-gallery.net/index.php?topic=34763.0
Title: Re: Another "Impossible to Move" error...with a twist
Post by: pwoens on September 05, 2006, 06:02:46 PM
Quote from: bmossavari on September 05, 2006, 05:24:31 PM
- Do not post debug info uless requested
- here is what I've got from search:
http://forum.coppermine-gallery.net/index.php?topic=32731.0
http://forum.coppermine-gallery.net/index.php?topic=34763.0

thanks...I have read through both those and still have the problem.  ANy other possible ideas?


Title: Re: Another "Impossible to Move" error
Post by: pwoens on September 07, 2006, 08:39:46 PM
anyone have any ideas??  been a few days and only one reply?
Title: Re: Another "Impossible to Move" error
Post by: Nibbler on September 07, 2006, 09:38:19 PM
Enable debug mode and look at the exact error message. Make sure that you have granted read permissions to the source and write permissions to the destination.
Title: Re: Another "Impossible to Move" error
Post by: pwoens on September 08, 2006, 05:11:45 PM
Quote from: Nibbler on September 07, 2006, 09:38:19 PM
Enable debug mode and look at the exact error message. Make sure that you have granted read permissions to the source and write permissions to the destination.

Thanks!!

I noticed a "." after gallery in destination but not sure if that would be the cause??  If so, where would I edit that?  Thanks for the reply Nibbler....truly appreciate it.

I have set all permission on /root/tmp, /gallery/tmp, /gallery/albums, /albums/edit, /album/userpics, /albums/uploads to 777.  I also recreated the albums directory just to make sure.  Not sure whats going on??


here is what I get:

Warning line 2922: cannot yet handle MBCS in html_entity_decode()!

followed by:

/upload.php

Warning line 1218: move_uploaded_file(/home/wearzcom/public_html/gallery./albums/edit/mHTTP_temp_f20f68ed.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory
Warning line 1218: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/php5GQYoj' to '/home/wearzcom/public_html/gallery./albums/edit/mHTTP_temp_f20f68ed.jpg'
Notice line 1291: Undefined index: URI_array
Notice line 1967: Undefined variable: escrow_array
Notice line 1969: Undefined variable: URI_failure_array
Notice line 1970: Undefined variable: zip_failure_array
Title: Re: Another "Impossible to Move" error
Post by: Nibbler on September 08, 2006, 05:16:10 PM
What did you set in config for your albums directory?
Title: Re: Another "Impossible to Move" error
Post by: pwoens on September 08, 2006, 08:01:41 PM
Quote from: Nibbler on September 08, 2006, 05:16:10 PM
What did you set in config for your albums directory?

it is set to albums/ and perms here are 0777
Title: Re: Another "Impossible to Move" error
Post by: pwoens on September 11, 2006, 10:25:49 PM
CPG is still down??  any other ideas?  Thanks
Title: Re: Another "Impossible to Move" error
Post by: Nibbler on September 11, 2006, 10:31:15 PM
Find line 1218 and add some debug code.


            //Now we upload the file.
            if (!(move_uploaded_file($_FILES['file_upload_array']['tmp_name'][$counter], $path_to_image))) {


And add before it:


var_dump($_FILES['file_upload_array']['tmp_name'][$counter]);
var_dump(is_readable($_FILES['file_upload_array']['tmp_name'][$counter]));
var_dump($path_to_image);
var_dump(is_writable($path_to_image));


Post what you get.
Title: Re: Another "Impossible to Move" error
Post by: pwoens on September 23, 2006, 06:48:08 AM
Thanks a ton for getting back to me...


Here's the new code snippet:

            // Create a holder called $tempname.
            $tempname = $prefix . $seed . '.' . $suffix;

         var_dump($_FILES['file_upload_array']['tmp_name'][$counter]);
         var_dump(is_readable($_FILES['file_upload_array']['tmp_name'][$counter]));
         var_dump($path_to_image);
         var_dump(is_writable($path_to_image));

            //Now we upload the file.
            if (!(move_uploaded_file($_FILES['file_upload_array']['tmp_name'][$counter], $path_to_image))) {


Here is the output after uploading the new php file with the dumps in it:

Warning line 2922: cannot yet handle MBCS in html_entity_decode()!
Warning line 2922: cannot yet handle MBCS in html_entity_decode()!
/upload.php
Warning line 1223: move_uploaded_file(/home/wearzcom/public_html/gallery./albums/edit/mHTTP_temp_775c1905.JPG) [function.move-uploaded-file]: failed to open stream: No such file or directory
Warning line 1223: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpzm8HiI' to '/home/wearzcom/public_html/gallery./albums/edit/mHTTP_temp_775c1905.JPG'
Warning line 1223: move_uploaded_file(/home/wearzcom/public_html/gallery./albums/edit/mHTTP_temp_9271770f.JPG) [function.move-uploaded-file]: failed to open stream: No such file or directory
Warning line 1223: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpRjNf1O' to '/home/wearzcom/public_html/gallery./albums/edit/mHTTP_temp_9271770f.JPG'
Notice line 1296: Undefined index: URI_array
Notice line 1972: Undefined variable: escrow_array
Notice line 1974: Undefined variable: URI_failure_array
Notice line 1975: Undefined variable: zip_failure_array
Title: Re: Another "Impossible to Move" error
Post by: Nibbler on September 23, 2006, 01:50:52 PM
You need to post what the new code outputs, not the debug output.
Title: Re: Another "Impossible to Move" error
Post by: pwoens on September 24, 2006, 06:38:06 AM
Quote from: Nibbler on September 23, 2006, 01:50:52 PM
You need to post what the new code outputs, not the debug output.

sorry...is this what you are talking about??

USER:
------------------
Array
(
    [ID] => c0a235deeb0e19d67a7635f011cdc090
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => #*#*#*#*#
    [groups] => Array
        (