coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: Tank on July 14, 2005, 05:13:59 AM

Title: CPG 1.3.2 Upload quit working after server move
Post by: Tank on July 14, 2005, 05:13:59 AM
The gallery has worked flawlessly for the past 4 months. I recently moved the gallery to another server. Now I experience errors anytime I attempt to upload pictures.

The following error is displayed:

Warning: move_uploaded_file(./albums/edit/mHTTP_temp_c4c3c9d2.jpg): failed to open stream: Permission denied in /home/classyin/public_html/photogallery/upload.php on line 1197

Warning: move_uploaded_file(): Unable to move '/tmp/phpuKfjgN' to './albums/edit/mHTTP_temp_c4c3c9d2.jpg' in /home/classyin/public_html/photogallery/upload.php on line 1197

I am logged in as an administrator and have verified permissions to download are set correctly.
All other functionality appears to work properly.

When I turn on the debug mode I see the following notices when I enter the upload page:

Notice: Undefined offset: 2 in /home/classyin/public_html/photogallery/upload.php on line 250

Notice: Undefined offset: 3 in /home/classyin/public_html/photogallery/upload.php on line 256

Notice: Undefined offset: 4 in /home/classyin/public_html/photogallery/upload.php on line 256

The debug information is as follows:

USER:
------------------
Array
(
    [ID] => 900495a856c358f100eccc3590be60af
    [am] => 1
    [search] => ###calamity
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => classyin
    [user_password] => ********
    [user_lastvisit] => 2005-07-13 20:50:42
    [user_regdate] => 2005-03-19 09:34:31
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [user_favpics] =>
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 10
    [num_URI_upload] => 3
    [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] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
Title: Re: CPG 1.3.2 Upload quit working after server move
Post by: Tank on July 14, 2005, 05:19:43 AM
I see now I placed this in the wrong location ..... please accept my apologies.
Title: Re: CPG 1.3.2 Upload quit working after server move
Post by: Nibbler on July 14, 2005, 03:07:05 PM
Make sure albums/edit is chmodded to 777 or 755 and update your gallery.
Title: Re: CPG 1.3.2 Upload quit working after server move
Post by: Tank on July 15, 2005, 01:07:04 AM
I upgraded to 1.3.3 as you stated and verified the permissions on album and associated directories set to "755" with same result.

So I decided to try setting permissions to "777" then the upload worked. Not sure I understand why "755" didn't work.
Title: Re: CPG 1.3.2 Upload quit working after server move
Post by: kegobeer on July 15, 2005, 01:10:26 AM
Your host requires 777 in order for the script to write to your directory.  Some, like mine, only need 755.  Doesn't matter, as long as one of the works.
Title: Re: CPG 1.3.2 Upload quit working after server move
Post by: Tank on July 15, 2005, 05:54:54 AM
OK ...... thanks for the help ..... consider this one solved.