Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Another "Impossible to Move" error  (Read 5976 times)

0 Members and 1 Guest are viewing this topic.

pwoens

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Another "Impossible to Move" error
« 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.
« Last Edit: September 06, 2006, 12:18:57 am by pwoens »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Another "Impossible to Move" error...with a twist
« Reply #1 on: September 05, 2006, 05:24:31 pm »

Logged
‍I don't answer to PM with support question
Please post your issue to related board

pwoens

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Another "Impossible to Move" error...with a twist
« Reply #2 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?


« Last Edit: September 07, 2006, 08:38:43 pm by pwoens »
Logged

pwoens

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Another "Impossible to Move" error
« Reply #3 on: September 07, 2006, 08:39:46 pm »

anyone have any ideas??  been a few days and only one reply?
Logged

Nibbler

  • Guest
Re: Another "Impossible to Move" error
« Reply #4 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.
Logged

pwoens

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Another "Impossible to Move" error
« Reply #5 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
Logged

Nibbler

  • Guest
Re: Another "Impossible to Move" error
« Reply #6 on: September 08, 2006, 05:16:10 pm »

What did you set in config for your albums directory?
Logged

pwoens

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Another "Impossible to Move" error
« Reply #7 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
Logged

pwoens

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Another "Impossible to Move" error
« Reply #8 on: September 11, 2006, 10:25:49 pm »

CPG is still down??  any other ideas?  Thanks
Logged

Nibbler

  • Guest
Re: Another "Impossible to Move" error
« Reply #9 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.
Logged

pwoens

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Another "Impossible to Move" error
« Reply #10 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
Logged

Nibbler

  • Guest
Re: Another "Impossible to Move" error
« Reply #11 on: September 23, 2006, 01:50:52 pm »

You need to post what the new code outputs, not the debug output.
Logged

pwoens

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Another "Impossible to Move" error
« Reply #12 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
        (
           
  • => 1

        )

    [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
(
   
  • => SELECT extension, mime, content, player FROM cpg_filetypes; (0.001s)
  • [1] => select * from cpg_plugins order by priority asc; (0s)
        [2] => delete from `wearzcom_copp1`.cpg_sessions where time<1159068818 and remember=0; (0s)
        [3] => delete from `wearzcom_copp1`.cpg_sessions where time<1157862818; (0s)
        [4] => select user_id from `wearzcom_copp1`.cpg_sessions where session_id=md5("683bb5003d91e2dfe61ba7a7cac17b672284f1b84e3932ecf307d32a79ba7a3a"); (0s)
        [5] => select user_id as id, user_password as password from `wearzcom_copp1`.cpg_users where user_id=1 (0s)
        [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `wearzcom_copp1`.cpg_users AS u INNER JOIN `wearzcom_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `wearzcom_copp1`.cpg_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
        [8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
        [10] => update `wearzcom_copp1`.cpg_sessions set time='1159072418' where session_id=md5('683bb5003d91e2dfe61ba7a7cac17b672284f1b84e3932ecf307d32a79ba7a3a'); (0s)
        [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0.001s)
        [12] => DELETE FROM cpg_banned WHERE expiry < '2006-09-24 04:33:38' (0s)
        [13] => SELECT * FROM cpg_banned WHERE (ip_addr='67.185.98.100' OR ip_addr='67.185.98.100' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT aid, title FROM cpg_albums WHERE category < 10000 ORDER BY title (0s)
        [15] => SELECT aid, title FROM cpg_albums WHERE category='10001' ORDER BY title (0s)
        [16] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    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: ;
Logged
Pages: [1]   Go Up
 

Page created in 0.036 seconds with 19 queries.