Pictures can not be uploaded Pictures can not be uploaded
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Pictures can not be uploaded

Started by Martijn1984, June 14, 2006, 09:06:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Martijn1984

I have installed Coppermine but have a problem with uploading pictures.

First I choose a .JPG file from the harddrive, no problem so far. In the next screen it says 1 file has been succesfully uploaded. Click continue to add the file(s) to an album.

In this screen i don't see the thumbnail of my picture, but a red cross (image error). I can still choose an album, but when contuining it says: "the previous file could not be placed." "succesfully uploaded all files."

I tried the debugging mode but didnt find anything unusual. Also the permissions on the /albums/ dir are set. Do I need to create another dir or is there something else wrong? What dir should the pictures (of myself, the admin) be placed in automaticly?

Thanks for the help.


Martijn1984

#2
I tried that... This is the error message:

USER:
------------------
Array
(
    [ID] => 188bc3924bb679a772475e59b01f5a12
    [am] => 1
    [lang] => dutch
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => renate
    [groups] => Array
        (
            [0] => 1
        )

    [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] => 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] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg132_filetypes; (0.002s)
    [1] => select * from cpg132_plugins order by priority asc; (0.003s)
    [2] => delete from `mysql48ba72601738c91c4c1818e73d0`.cpg132_sessions where time<1150311236 and remember=0; (0.007s)
    [3] => delete from `mysql48ba72601738c91c4c1818e73d0`.cpg132_sessions where time<1149105236; (0s)
    [4] => select user_id from `mysql48ba72601738c91c4c1818e73d0`.cpg132_sessions where session_id=md5("3bd8f6bffe1c747a304a05bed523578370da83c2a53214e7fd215694a19fc2cd"); (0s)
    [5] => select user_id as id, user_password as password from `mysql48ba72601738c91c4c1818e73d0`.cpg132_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 `mysql48ba72601738c91c4c1818e73d0`.cpg132_users AS u INNER JOIN `mysql48ba72601738c91c4c1818e73d0`.cpg132_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `mysql48ba72601738c91c4c1818e73d0`.cpg132_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 cpg132_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1 (0s)
    [10] => update `mysql48ba72601738c91c4c1818e73d0`.cpg132_sessions set time='1150314836' where session_id=md5('3bd8f6bffe1c747a304a05bed523578370da83c2a53214e7fd215694a19fc2cd'); (0s)
    [11] => SELECT user_favpics FROM cpg132_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM cpg132_banned WHERE expiry < '2006-06-14 19:53:57' (0s)
    [13] => SELECT * FROM cpg132_banned WHERE (ip_addr='84.105.192.237' OR ip_addr='84.105.192.237' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT aid, title FROM cpg132_albums WHERE category < 10000 ORDER BY title (0.003s)
    [15] => SELECT aid, title FROM cpg132_albums WHERE category='10001' ORDER BY title (0s)
    [16] => SELECT COUNT(*) FROM cpg132_pictures WHERE approved = 'NO' (0s)
)

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

==========================
POST :
------------------
Array
(
    [album] =>
    [title] =>
    [caption] =>
    [keywords] =>
    [control] => phase_2
    [unique_ID] => 4cf61c2f
    [debugtext] => USER:
------------------
Array
(
    [ID] => 188bc3924bb679a772475e59b01f5a12
    [am] => 1
    [lang] => dutch
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => renate
    [groups] => Array
        (
            [0] => 1
        )

    [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] => 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] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg132_filetypes; (0s)
    [1] => select * from cpg132_plugins order by priority asc; (0s)
    [2] => delete from `mysql48ba72601738c91c4c1818e73d0`.cpg132_sessions where time<1150311231 and remember=0; (0s)
    [3] => delete from `mysql48ba72601738c91c4c1818e73d0`.cpg132_sessions where time<1149105231; (0s)
    [4] => select user_id from `mysql48ba72601738c91c4c1818e73d0`.cpg132_sessions where session_id=md5("3bd8f6bffe1c747a304a05bed523578370da83c2a53214e7fd215694a19fc2cd"); (0s)
    [5] => select user_id as id, user_password as password from `mysql48ba72601738c91c4c1818e73d0`.cpg132_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 `mysql48ba72601738c91c4c1818e73d0`.cpg132_users AS u INNER JOIN `mysql48ba72601738c91c4c1818e73d0`.cpg132_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `mysql48ba72601738c91c4c1818e73d0`.cpg132_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 cpg132_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1 (0s)
    [10] => update `mysql48ba72601738c91c4c1818e73d0`.cpg132_sessions set time='1150314831' where session_id=md5('3bd8f6bffe1c747a304a05bed523578370da83c2a53214e7fd215694a19fc2cd'); (0s)
    [11] => SELECT user_favpics FROM cpg132_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM cpg132_banned WHERE expiry < '2006-06-14 19:53:51' (0s)
    [13] => SELECT * FROM cpg132_banned WHERE (ip_addr='84.105.192.237' OR ip_addr='84.105.192.237' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT aid, title FROM cpg132_albums WHERE category < 10000 ORDER BY title (0s)
    [15] => SELECT aid, title FROM cpg132_albums WHERE category='10001' ORDER BY title (0s)
    [16] => SELECT encoded_string FROM cpg132_temp_data WHERE unique_ID = '4cf61c2f' (0s)
    [17] => UPDATE cpg132_temp_data SET encoded_string = 'YToxOntpOjA7YTozOntzOjExOiJhY3R1YWxfbmFtZSI7czoxNzoiSW5jZWt1bTFrbGVpbi5qcGciO3M6MTQ6InRlbXBvcmFyeV9uYW1lIjtzOjIzOiJtSFRUUF90ZW1wX2VhZDA2MTkxLmpwZyI7czoxMjoicHJldmlld19wYXRoIjtzOjM0OiIuL2FsYnVtcy9lZGl0L3ByZXZpZXdfZGFjNTEyODguanBnIjt9fQ==' WHERE unique_ID = '4cf61c2f' (0s)
    [18] => SELECT COUNT(*) FROM cpg132_pictures WHERE approved = 'NO' (0s)
    [19] => SELECT cat.name FROM cpg132_categories cat, cpg132_albums alb WHERE alb.aid='3' AND cat.cid=alb.category (0s)
    [20] => SELECT cat.name FROM cpg132_categories cat, cpg132_albums alb WHERE alb.aid='4' AND cat.cid=alb.category (0s)
    [21] => SELECT cat.name FROM cpg132_categories cat, cpg132_albums alb WHERE alb.aid='2' AND cat.cid=alb.category (0s)
)

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

==========================
POST :
------------------
Array
(
    [unique_ID] => 4cf61c2f
    [control] => phase_2
    [debugtext] => USER:
------------------
Array
(
    [ID] => 188bc3924bb679a772475e59b01f5a12
    [am] => 1
    [lang] => dutch
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => renate
    [groups] => Array
        (
            [0] => 1
        )

    [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] => 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] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg132_filetypes; (0s)
    [1] => select * from cpg132_plugins order by priority asc; (0s)
    [2] => delete from `mysql48ba72601738c91c4c1818e73d0`.cpg132_sessions where time<1150311228 and remember=0; (0s)
    [3] => delete from `mysql48ba72601738c91c4c1818e73d0`.cpg132_sessions where time<1149105228; (0s)
    [4] => select user_id from `mysql48ba72601738c91c4c1818e73d0`.cpg132_sessions where session_id=md5("3bd8f6bffe1c747a304a05bed523578370da83c2a53214e7fd215694a19fc2cd"); (0s)
    [5] => select user_id as id, user_password as password from `mysql48ba72601738c91c4c1818e73d0`.cpg132_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 `mysql48ba72601738c91c4c1818e73d0`.cpg132_users AS u INNER JOIN `mysql48ba72601738c91c4c1818e73d0`.cpg132_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `mysql48ba72601738c91c4c1818e73d0`.cpg132_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 cpg132_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1 (0s)
    [10] => update `mysql48ba72601738c91c4c1818e73d0`.cpg132_sessions set time='1150314828' where session_id=md5('3bd8f6bffe1c747a304a05bed523578370da83c2a53214e7fd215694a19fc2cd'); (0s)
    [11] => SELECT user_favpics FROM cpg132_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM cpg132_banned WHERE expiry < '2006-06-14 19:53:48' (0s)
    [13] => SELECT * FROM cpg132_banned WHERE (ip_addr='84.105.192.237' OR ip_addr='84.105.192.237' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT aid, title FROM cpg132_albums WHERE category < 10000 ORDER BY title (0s)
    [15] => SELECT aid, title FROM cpg132_albums WHERE category='10001' ORDER BY title (0s)
    [16] => SELECT COUNT(*) FROM cpg132_pictures WHERE approved = 'NO' (0s)
    [17] => SELECT unique_ID FROM cpg132_temp_data (0s)
    [18] => INSERT INTO cpg132_temp_data VALUES ('4cf61c2f', 'YToxOntpOjA7YToyOntzOjExOiJhY3R1YWxfbmFtZSI7czoxNzoiSW5jZWt1bTFrbGVpbi5qcGciO3M6MTQ6InRlbXBvcmFyeV9uYW1lIjtzOjIzOiJtSFRUUF90ZW1wX2VhZDA2MTkxLmpwZyI7fX0=', '1150314828') (0s)
)

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

==========================
POST :
------------------
Array
(
    [URI_array] => Array
        (
            [0] =>
            [1] =>
            [2] =>
        )

    [control] => phase_1
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.11 - OK
------------------
mySQL version: 4.1.19
------------------
Coppermine version: 1.4.3(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 3
Active Links 4
Client API version 4.1.19
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
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 | no value | no value
file_uploads | On | On
include_path | .:/usr/share/pear | .:/usr/share/pear
open_basedir | /home/vhosts/hangsite.nl/httpdocs:/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 | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.287 seconds - 19 queries in 0 seconds - Album set : ; Meta set: ;
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.11 - OK
------------------
mySQL version: 4.1.19
------------------
Coppermine version: 1.4.3(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 2
Active Links 3
Client API version 4.1.19
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
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 | no value | no value
file_uploads | On | On
include_path | .:/usr/share/pear | .:/usr/share/pear
open_basedir | /home/vhosts/hangsite.nl/httpdocs:/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 | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.357 seconds - 22 queries in 0 seconds - Album set : ; Meta set: ;
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.11 - OK
------------------
mySQL version: 4.1.19
------------------
Coppermine version: 1.4.3(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 1
Active Links 2
Client API version 4.1.19
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
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 | no value | no value
file_uploads | On | On
include_path | .:/usr/share/pear | .:/usr/share/pear
open_basedir | /home/vhosts/hangsite.nl/httpdocs:/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 | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.365 seconds - 17 queries in 0.015 seconds - Album set : ; Meta set: ;

Nibbler

You've done the exact opposite of what I requested, so let's try this again.

Quote
4.11.4 Upload troubleshooting

If you are experiencing issues with coppermine's upload process, temporarily change your coppermine settings as suggested below to get more detailed error messages:

    * Go to your coppermine page and log in as admin
    * Go to the config screen
    * Scroll to the bottom of the page
    * Expand the "Maintenance settings" section by clicking on it
    * Enable debug mode for everyone
    * Leave display of notices switched off
    * Save the new settings by clicking on "Save new configuration"
    * Go to the "groups" panel
    * Set the upload form configuration for all groups to "Single file uploads only" (set File upload boxes to "1", URI upload boxes to "0" and No. of boxes to "fixed")
    * Save your new settings

Then try to upload (using http uploads, even if you experienced troubles using another upload method) - you should get a more detailed error message that tells you what exactly goes wrong with your uploads. If the error message doesn't mean anything to you, search the support board for the error message you get.
When asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges, with the above mentioned settings in place - this way, supporters can see the error messages as well. Do not post debug_output unless requested.

It is important to always run the latest stable version of any software you use. Older versions have bugs and/or security issues.

Martijn1984

I'm very sorry.

You can find the installed Coppermine Gallery here

Login: Test
passwd: test

kegobeer

Quote
Set the upload form configuration for all groups to "Single file uploads only" (set File upload boxes to "1", URI upload boxes to "0" and No. of boxes to "fixed")

You have multiple upload boxes.  We can't help you until you accomplish all of the necessary steps.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Martijn1984

Fixed that now, giving another error message. Hope it makes sense to you guys.

kegobeer

Switch to GD2.  You either don't have ImageMagick or it isn't properly configured.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots