forum.coppermine-gallery.net

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
- 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
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
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.

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

And add before it:

Code: [Select]
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
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
        (
           
        )

    [disk_max] => 20000
    [disk_min] => 20000
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 1
    [ufc_min] => 1
    [custom_user_upload] => 1
    [num_file_upload] => 10
    [num_URI_upload] => 0
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 1
    [group_quota] => 20000
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [control] => phase_1
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.4 - OK
------------------
mySQL version: 4.0.27-standard
------------------
Coppermine version: 1.4.9(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.0.27
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | system, shell_exec, passthru | system, shell_exec, passthru
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | -1 | -1
upload_max_filesize | 20M | 20M
post_max_size | 55M | 55M
==========================
Page generated in 0.156 seconds - 17 queries in 0.002 seconds - Album set : ; Meta set: ;