Unable to move etc. problems Unable to move etc. problems
 

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]

Main Menu

Unable to move etc. problems

Started by sfumato, June 02, 2004, 09:53:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sfumato

Okay,

Yesterday I wrote with completely different problems. I uninstalled and reinstalled CPG just to see what would happen. Now I am getting less errors than before, but I can still not upload. The interesting thing is the error messages I receive now are completely different than yesterday's (before uninstall etc.).

When trying to upload I get the following error:

Impossible to move orange.jpg to albums/userpics/ !

File: /home/bullpenc/public_html/gallery/db_input.php - Line: 259


Warning: move_uploaded_file(): Unable to move '/tmp/phpKPsjFK' to 'albums/userpics/orange.jpg' in /home/bullpenc/public_html/gallery/db_input.php on line 258


The debug script shows this:

USER:

Array
(
   [ID] => 31e5212865f28ca58aff8bf7e4aa9a23
   [am] => 1
)

USER DATA:

Array
(
   
  • => 1
       [user_id] => 1
       [1] => 1
       [user_group] => 1
       [2] => YES
       [user_active] => YES
       [3] => sfumato
       [user_name] => sfumato
       [4] => xxxxxxx
       [5] => 2004-06-02 10:41:10
       [user_lastvisit] => 2004-06-02 10:41:10
       [6] => 2004-06-02 10:41:10
       [user_regdate] => 2004-06-02 10:41:10
       [7] =>
       [user_lang] =>
       [8] =>
       [user_email] =>
       [9] =>
       [user_website] =>
       [10] =>
       [user_location] =>
       [11] =>
       [user_interests] =>
       [12] =>
       [user_occupation] =>
       [13] =>
       [user_actkey] =>
       [14] => 1
       [group_id] => 1
       [15] => Administrators
       [group_name] => Administrators
       [16] => 0
       [group_quota] => 0
       [17] => 1
       [has_admin_access] => 1
       [18] => 1
       [can_rate_pictures] => 1
       [19] => 1
       [can_send_ecards] => 1
       [20] => 1
       [can_post_comments] => 1
       [21] => 1
       [can_upload_pictures] => 1
       [22] => 1
       [can_create_albums] => 1
       [23] => 0
       [pub_upl_need_approval] => 0
       [24] => 0
       [priv_upl_need_approval] => 0
    )

    Queries:

    Array
    (
       
  • => SELECT * FROM cpg11d_users, cpg11d_usergroups WHERE user_group = group_id AND user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '8fde6a6592bb16b80a40c8a641232c2e'
       [1] => DELETE FROM cpg11d_banned WHERE expiry < 1086205699
       [2] => SELECT * FROM cpg11d_banned WHERE ip_addr='169.137.218.97' OR ip_addr='169.137.218.97' OR user_id=1
       [3] => SELECT category FROM cpg11d_albums WHERE aid='1'
    )

    GET :

    Array
    (
    )

    POST :

    Array
    (
       [event] => picture
       [album] => 1
       [MAX_FILE_SIZE] => 1048576
       [title] =>
       [caption] =>
       [keywords] =>
       [user1] =>
       [user2] =>
       [user3] =>
       [user4] =>
    )


    I don't want to send too much information like I apparently did yesterday, so just let me know if you need more.

    Thanks,

    Bryan

sfumato

PS- I have tried with the appropriate folders CHMODed 777 and 755.

Thanks,

Bryan

Joachim Müller

maybe it's a safe mode issue - try enabling silly_safe_mode (refer to documentation). Maybe you have to create a temporary folder on your webspace...

Gaugau

sfumato

I have set SILLY_SAFE_MODE but am having the same problem.

Where would the tmp folder be or need to be?

Thanks for the help.


Bryan

Joachim Müller

see http://forum.coppermine-gallery.net/index.php?topic=2403.0
Quote from: hyperion on April 30, 2004, 03:35:08 AM
This usually occurs when the server configuration has made each website root.  If the website does not have a /temp or /tmp folder, PHP upload functions cannot work properly.  You are advised to create a /temp or /tmp folder to resolve this issue.  Yahoo Business hosting is a good example of where this configuration is used.
create the tmp folder in the website root

GauGau

sfumato

Thanks for the help, but no dice. I made a tmp folder, but I get the same message:

Impossible to move grierwheel.jpg to albums/userpics/ !

File: /home/bullpenc/public_html/gallery/db_input.php - Line: 259


Warning: move_uploaded_file(): Unable to move '/tmp/phpNZMlIN' to 'albums/userpics/grierwheel.jpg' in /home/bullpenc/public_html/gallery/db_input.php on line 258




Sorry to keep at this, but I know not what I do.

Bryan

sfumato


hyperion

Write a basic upload script to test move_uploaded_files ability to get the files out of the tmp folder.  If you have set permissions correctly in Coppermine, then this is a PHP setup problem.  (move_uploaded_files is a built in PHP function)
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

sfumato

Makes sense. Just wish I knew how to do it. Not really a PHP guru here. I know a little, but just enough to hurt me.

Any advice on writing the test script?


Thanks,

Bryan