Unable to upload Unable to upload
 

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 upload

Started by Lorraine.G, January 05, 2010, 01:37:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lorraine.G

I've just set up a new gallery & installed plug in to watermark...all with no problem.
I can creat catagories & albums...just not add files.
In Admin mode, when I click on upload file or Admin Tools, I get "Internet Explorer cannot display the webpage"

Debug output posted below



USER:
------------------
Array
(
   [ID] => 4de58de068d86212daf318915bd5b264
   [am] => 1
   [lang] => english_gb
)

==========================
USER DATA:
------------------
Array
(
   [user_id] => 1
   [user_name] => shutterhou1
   [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 cpg14x_filetypes; (0.002s)
   [1] => select * from cpg14x_plugins order by priority asc; (0.001s)
   [2] => delete from `shutterhou1`.cpg14x_sessions where time<1262688565 and remember=0; (0.002s)
   [3] => delete from `shutterhou1`.cpg14x_sessions where time<1261482565; (0.001s)
   [4] => select user_id from `shutterhou1`.cpg14x_sessions where session_id = '6db3c9d8f8e546a6ea0e2950aed9d498' (0.002s)
   [5] => select user_id as id, user_password as password from `shutterhou1`.cpg14x_users where user_id=1 (0.002s)
   [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 `shutterhou1`.cpg14x_users AS u INNER JOIN `shutterhou1`.cpg14x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
   [7] => SELECT user_group_list FROM `shutterhou1`.cpg14x_users AS u WHERE user_id='1' and user_group_list <> ''; (0.001s)
   [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 cpg14x_usergroups WHERE group_id in (1) (0.001s)
   [9] => SELECT group_name FROM  cpg14x_usergroups WHERE group_id= 1 (0.001s)
   [10] => update `shutterhou1`.cpg14x_sessions set time='1262692165' where session_id = '6db3c9d8f8e546a6ea0e2950aed9d498' (0.001s)
   [11] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 1 (0.002s)
   [12] => SELECT * FROM cpg14x_mark_users WHERE user_id = 1 (0.002s)
   [13] => SELECT * FROM cpg14x_mark_config (0.001s)
   [14] => DELETE FROM cpg14x_banned WHERE expiry < '2010-01-05 11:49:25' (0.001s)
   [15] => SELECT * FROM cpg14x_banned WHERE (ip_addr='86.172.90.161' OR ip_addr='86.172.90.161' OR user_id=1) AND brute_force=0 (0.001s)
   [16] => SELECT group_id, group_name FROM cpg14x_usergroups WHERE 1 (0.001s)
   [17] => UPDATE cpg14x_usergroups SET has_admin_access = '1' WHERE group_id = '1' LIMIT 1 (0.001s)
   [18] => UPDATE cpg14x_usergroups SET group_name='Administrators',group_quota='0',can_rate_pictures='1',can_send_ecards='1',can_post_comments='1',can_upload_pictures='1',pub_upl_need_approval='0',can_create_albums='1',priv_upl_need_approval='0',upload_form_config='0',custom_user_upload='0',num_file_upload='1',num_URI_upload='0' WHERE group_id = '1' LIMIT 1 (0.001s)
   [19] => UPDATE cpg14x_usergroups SET group_name='Registered',group_quota='1024',can_rate_pictures='1',can_send_ecards='1',can_post_comments='1',can_upload_pictures='1',pub_upl_need_approval='1',can_create_albums='1',priv_upl_need_approval='0',upload_form_config='3',custom_user_upload='0',num_file_upload='5',num_URI_upload='3' WHERE group_id = '2' LIMIT 1 (0.001s)
   [20] => UPDATE cpg14x_usergroups SET group_name='Guests',group_quota='0',can_rate_pictures='1',can_send_ecards='0',can_post_comments='0',can_upload_pictures='0',pub_upl_need_approval='1',can_create_albums='0',priv_upl_need_approval='1',upload_form_config='3',custom_user_upload='0',num_file_upload='5',num_URI_upload='3' WHERE group_id = '3' LIMIT 1 (0.001s)
   [21] => UPDATE cpg14x_usergroups SET group_name='Banned',group_quota='0',can_rate_pictures='0',can_send_ecards='0',can_post_comments='0',can_upload_pictures='0',pub_upl_need_approval='0',can_create_albums='0',priv_upl_need_approval='0',upload_form_config='0',custom_user_upload='0',num_file_upload='0',num_URI_upload='0' WHERE group_id = '4' LIMIT 1 (0.001s)
   [22] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0.002s)
   [23] => SELECT * FROM cpg14x_usergroups WHERE 1 ORDER BY group_id (0.001s)
)

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

==========================
POST :
------------------
Array
(
   [group_id] => Array
       (
           [0] => 1
           [1] => 2
           [2] => 3
           [3] => 4
       )

   [group_name_1] => Administrators
   [group_quota_1] => 0
   [can_rate_pictures_1] => 1
   [can_send_ecards_1] => 1
   [can_post_comments_1] => 1
   [can_upload_pictures_1] => 1
   [pub_upl_need_approval_1] => 0
   [can_create_albums_1] => 1
   [priv_upl_need_approval_1] => 0
   [custom_user_upload_1] => 0
   [num_file_upload_1] => 1
   [num_URI_upload_1] => 0
   [group_name_2] => Registered
   [group_quota_2] => 1024
   [can_rate_pictures_2] => 1
   [can_send_ecards_2] => 1
   [can_post_comments_2] => 1
   [can_upload_pictures_2] => 1
   [pub_upl_need_approval_2] => 1
   [can_create_albums_2] => 1
   [priv_upl_need_approval_2] => 0
   [custom_user_upload_2] => 0
   [num_file_upload_2] => 5
   [num_URI_upload_2] => 3
   [group_name_3] => Guests
   [group_quota_3] => 0
   [can_rate_pictures_3] => 1
   [can_send_ecards_3] => 0
   [can_post_comments_3] => 0
   [can_upload_pictures_3] => 0
   [pub_upl_need_approval_3] => 1
   [can_create_albums_3] => 0
   [priv_upl_need_approval_3] => 1
   [custom_user_upload_3] => 0
   [num_file_upload_3] => 5
   [num_URI_upload_3] => 3
   [group_name_4] => Banned
   [apply_modifs] => Apply modifications
   [upload_form_config_1] => 0
   [upload_form_config_2] => 3
   [upload_form_config_3] => 3
   [upload_form_config_4] => 0
)

==========================
VERSION INFO :
------------------
PHP version: 5.2.6 - OK
------------------
mySQL version: 5.0.77
------------------
Coppermine version: 1.4.25(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.34 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
XPM Support:
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.41
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
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
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 | shell_exec,exec,system,passthru,popen,set_time_limit | shell_exec,exec,system,passthru,popen,set_time_limit
file_uploads | On | On
include_path | .:/usr/share/pear-php5 | .:/usr/share/pear-php5
open_basedir | no value | 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 | 20M | 20M
post_max_size | 8M | 8M
==========================
Page generated in 0.201 seconds - 24 queries in 0.031 seconds - Album set : ; Meta set: ;

François Keller

Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Lorraine.G

Unfortunately I get the same error message if I click on the "Users" Tab so am unable to create a test account.

Lorraine.G

Quote from: Lorraine.G on January 05, 2010, 02:08:59 PM
Unfortunately I get the same error message if I click on the "Users" Tab so am unable to create a test account.


Some more info in addition to the above;
I can batch upload, but when I click on the thumbnail to view the album I once again get the error message
Chmod settings are 777, I'm baffled as I've run this gallery, with the same host before without a hitch.             

phill104

It is a mistake to think you can solve any major problems just with potatoes.

Lorraine.G

                           
                                                                    http://gallery.shutterhounds.co.uk/Gallery/index.php

Joachim Müller

After all you need to do exactly as François suggested! Posting a link alone won't help.
To me it looks like you messed up your gallery - when trying to access http://gallery.shutterhounds.co.uk/Gallery/thumbnails.php?album=1 my browser offers to download that file, so your file on your server probably got corrupted. Perform an upgrade as suggested in the docs (although you have the most recent version already), to make sure your files on the server are working as expected. Then do exactly as suggested in the docs, section "asking for support on upload issues" as François advised.

Lorraine.G

Thank's for the reply.......however, I am unable to create a "Test account" in any group other than admin.
I've deleted & re uploaded 3 times now & compared the setting with my other gallery (which works fine)
I've gone through the trouble shooting tips several times.

Going to delete at some point today & do a clean install. again !!

Vinicius Machado

Hi guy I'm having a problem with the upload as well. So I'v got this after installing the ModPack (Stramm). Thats the notigfications message:

/upload.php
•Notice line 1053: Undefined variable: _FILES
•Notice line 1978: Undefined variable: escrow_array
•Notice line 1979: Undefined variable: file_failure_array
•Notice line 1980: Undefined variable: URI_failure_array
•Notice line 1981: Undefined variable: zip_failure_array


Thast the debug:
QuoteUSER:
------------------
Array
(
    [ID] => f80a164d7ade211001bd5d8696cfbe6e
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => Vini
    [groups] => Array
        (
           
  • => 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
    (
       
  • => SELECT extension, mime, content, player FROM cpg_filetypes; (0s)
        [1] => select * from cpg_plugins order by priority asc; (0s)
        [2] => delete from `vinicius_copp1`.cpg_sessions where time<1262859172 and remember=0; (0s)
        [3] => delete from `vinicius_copp1`.cpg_sessions where time<1261653172; (0s)
        [4] => select user_id from `vinicius_copp1`.cpg_sessions where session_id = 'ff942011e18e895dc3371ea46248b64e' (0s)
        [5] => select user_id as id, user_password as password from `vinicius_copp1`.cpg_users where user_id=1 (0s)
        [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.avatar_url AS avatar_url, u.enable_admin_email AS notify, u.auto_subscribe_post AS auto_subscribe_post, u.auto_subscribe_comment AS auto_subscribe_comment, u.user_group+100 AS group_id FROM `vinicius_copp1`.cpg_users AS u INNER JOIN `vinicius_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `vinicius_copp1`.cpg_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 cpg_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
        [10] => update `vinicius_copp1`.cpg_sessions set time='1262862772' where session_id = 'ff942011e18e895dc3371ea46248b64e' (0s)
        [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0s)
        [12] => SELECT 1 FROM cpg_pms WHERE owner=1 (0s)
        [13] => SELECT 1 FROM cpg_pms WHERE owner=1 AND showed=0 (0s)
        [14] => DELETE FROM cpg_mod_online WHERE last_action < NOW() - INTERVAL 10 MINUTE (0s)
        [15] => REPLACE INTO cpg_mod_online (user_id, user_name, user_ip, last_action) VALUES ('1', 'Vini', '200.157.0.114', NOW()) (0s)
        [16] => SELECT count(*) FROM  cpg_pms WHERE owner=1 (0s)
        [17] => SELECT count(*) FROM  cpg_pms WHERE owner=1 AND showed='0' (0s)
        [18] => SELECT count(*) FROM  cpg_buddy WHERE user_id=1 (0s)
        [19] => SELECT count(*) FROM  cpg_buddy_req WHERE buddy_to=1 (0s)
        [20] => DELETE FROM cpg_banned WHERE expiry < '2010-01-07 09:12:52' (0s)
        [21] => SELECT * FROM cpg_banned WHERE (ip_addr='200.157.0.114' OR ip_addr='192.168.0.30' OR user_id=1) AND brute_force=0 (0s)
        [22] => SELECT aid, title FROM cpg_albums WHERE category < 10000 ORDER BY title (0s)
        [23] => SELECT aid, title FROM cpg_albums WHERE category='10001' ORDER BY title (0s)
        [24] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0.001s)
    )

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

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

        [control] => phase_1
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.2.10 - OK
    ------------------
    mySQL version: 5.0.85-community
    ------------------
    Coppermine version: 1.4.24(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: bundled (2.0.34 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
    XPM Support: 1
    XBM Support: 1
    JIS-mapped Japanese Font Support:

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 5.0.85
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib64 -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Stream Wrapper support compress.zlib://
    Stream Filter support zlib.inflate, zlib.deflate
    Compiled Version 1.2.3
    Linked Version 1.2.3
    ==========================
    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/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
    open_basedir | no value | 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 | 80M | 80M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 1262862772.76 seconds - 25 queries in 0.001 seconds - Album set : ; Meta set: ;
Gallery Home Page:

http://crisevini.viniciusmachado.com/album

USER: tester
PASSWORD: tester123

See attached file below

Thx

Vinicius Machado

I found this and works fine.

in init.inc.php:

FIND

Code:
$keysToSkip = array('_POST', '_GET', '_COOKIE', '_REQUEST', '_SERVER', 'HTML_SUBST', 'keysToSkip', 'register_globals_flag', 'cpgdebugger', 'key');

change to


Code:
$keysToSkip = array('_POST', '_GET', '_COOKIE', '_REQUEST', '_SERVER', '_FILES', 'HTML_SUBST', 'keysToSkip', 'register_globals_flag', 'cpgdebugger', 'key');

Joachim Müller

Butt out of other's threads. Again, you have misbehaved and haven't done as suggested per board rules and docs:

  • You're not supposed to hijack other's threads
  • You're not supposed to post debug_output unless someone asks for it
  • You're not supposed to enable notices
  • You haven't set the number of URI upload fields as suggested

Stay out of this thread! Stop behaving like a moron or you'll get banned.