coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: erika_conn on August 15, 2006, 02:26:13 PM

Title: Uploading picture errors
Post by: erika_conn on August 15, 2006, 02:26:13 PM
http://www.ceconn.com/photos

Server Info:

Operating System: Linux
Kernel Version: 2.4.20-20.9smp
Machine Type: i686
Apache version: 1.3.34 (Unix)
Perl version: 5.8.4
PHP version: 4.3.11
MySQL version: 4.0.25-standard-log

GD Info: bundled (2.0.28 compatible)

I switched to single file upload.  All my folders are either 777 or 755. 
I tried to upload a file and got this message:
Failed to create directory albums/userpics/10001 !

File: /home/cecon46/public_html/photos/db_input.php - Line: 228



Notice: Undefined index: user1 in /home/cecon46/public_html/photos/db_input.php on line 202

Notice: Undefined index: user2 in /home/cecon46/public_html/photos/db_input.php on line 203

Notice: Undefined index: user3 in /home/cecon46/public_html/photos/db_input.php on line 204

Notice: Undefined index: user4 in /home/cecon46/public_html/photos/db_input.php on line 205

Warning: mkdir(albums/userpics/10001): Permission denied in /home/cecon46/public_html/photos/db_input.php on line 227

Debug mode mode gave me this:
USER:
------------------
Array
(
    [ID] => e7a1be63c043557b96621289e2408015
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => Erika
    [user_password] => ********
    [user_lastvisit] => 2006-08-14 10:52:32
    [user_regdate] => 2006-08-14 10:46:27
    [user_group_list] =>
    [user_email] =>
    [user_website] => http://www.ceconn.com
    [user_location] => Canada
    [user_interests] => Photography, writing
    [user_occupation] => Head Hunter
    [user_actkey] =>
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [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] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
Title: Re: Uploading picture errors
Post by: Nibbler on August 15, 2006, 02:37:28 PM
Make sure the userpics directory is writable.
Title: Re: Uploading picture errors
Post by: erika_conn on August 15, 2006, 03:13:08 PM
You mean userpics in the album folder, right?  I changed it to 777.  Still get this message

Impossible to move 6.jpg to albums/userpics/10001/ !

File: /home/cecon46/public_html/photos/db_input.php - Line: 266



Notice: Undefined index: user1 in /home/cecon46/public_html/photos/db_input.php on line 202

Notice: Undefined index: user2 in /home/cecon46/public_html/photos/db_input.php on line 203

Notice: Undefined index: user3 in /home/cecon46/public_html/photos/db_input.php on line 204

Notice: Undefined index: user4 in /home/cecon46/public_html/photos/db_input.php on line 205

Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid/gid is 32204/705 is not allowed to access /home/cecon46/public_html/photos/albums/userpics/10001 owned by uid/gid 99/99 in /home/cecon46/public_html/photos/db_input.php on line 265

Title: Re: Uploading picture errors
Post by: Nibbler on August 15, 2006, 03:31:02 PM
Try using SILLY_SAFE_MODE, refer to the documetnation.
Title: Re: Uploading picture errors
Post by: erika_conn on August 15, 2006, 05:49:20 PM
I went to the documentation and found the safe mode thing.  They advised me to add the following:
Check that at the beginning the the "include/config.inc.php" file, you have a line with : "define('SILLY_SAFE_MODE', 1);"   I can now upload pictures.

However, I have a new problem:

Notice: Undefined variable: meta_keywords in /home/cecon46/public_html/photos/displayimage.php on line 632

Home > Family > Alexis' Bridal Shower

Notice: Undefined variable: template_tab_display in /home/cecon46/public_html/photos/themes/fruity/theme.php on line 1369

Notice: Undefined variable: lang_thumb_view in /home/cecon46/public_html/photos/themes/fruity/theme.php on line 1372

Notice: Undefined index: inactive_tab in /home/cecon46/public_html/photos/themes/fruity/theme.php on line 1373

This is the degub output:
USER:
------------------
Array
(
    [ID] => e7a1be63c043557b96621289e2408015
    [am] => 1
    [liv] => Array
        (
           
Title: Re: Uploading picture errors
Post by: Sami on August 15, 2006, 05:52:28 PM
Turn off the notice under config and do not post debug_info unless requested ,