forum.coppermine-gallery.net

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
(
    [album] => 1
    [MAX_FILE_SIZE] => 1048576
    [title] =>
    [caption] =>
    [keywords] =>
    [event] => picture
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.11 - OK
------------------
mySQL version: 4.0.25-standard-log
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 4.0.25
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 | On | On
safe_mode_exec_dir | no value | no value
safe_mode_gid | On | On
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | /home/cecon46/:/usr/lib/php:/usr/local/lib/php:/tmp | 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 | 15M | 15M
post_max_size | 55M | 55M
==========================
Page generated in 0.079 seconds - 7 queries in 0.001 seconds - Album set :

Now what?
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
        (
           
        )

)

==========================
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
(
    [pos] => -1
)

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.11 - OK
------------------
mySQL version: 4.0.25-standard-log
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 4.0.25
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 | On | On
safe_mode_exec_dir | no value | no value
safe_mode_gid | On | On
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | /home/cecon46/:/usr/lib/php:/usr/local/lib/php:/tmp | 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 | 15M | 15M
post_max_size | 55M | 55M
==========================
Page generated in 1.41 seconds - 21 queries in 0.034 seconds - Album set :
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 ,