Can't Upload after upgrade from 1.34 to 1.49 Can't Upload after upgrade from 1.34 to 1.49
 

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

Can't Upload after upgrade from 1.34 to 1.49

Started by stev0, March 12, 2007, 06:56:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

stev0

Hi there, after upgrading I cant seem to upload either by the http method or the XP Publishing method. If someone is able to help that would be appreciated, steps i have performed are as followed:

a) follow instructions on updating to 1.49, copied applicible files/folders
b) set correct permissions
c) ran update.php which ran correctly
d) checked permissions are still set correctly

everythign seems be running fine but i get the following error when trying to upload via HTTP:

No file was uploaded !

If you have really selected a file to upload, check that the server allows file uploads...

File: H:\boredbutdrunk\gallery\db_input.php - Line: 311

---------------------------------------------
---------------------------------------------


USER:
------------------
Array
(
    [ID] => 9d469d4fef11a5e17b8e72136a8e4871
    [am] => 1
    [liv] => Array
        (
           
  • => 3979
                [1] => 3977
                [2] => 981
                [3] => 4155
                [4] => 3981
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_name] => stevo
        [groups] => Array
            (
               
  • => 1
            )

        [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] => 1
        [num_URI_upload] => 0
        [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
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg134_filetypes; (0.001s)
        [1] => select * from cpg134_plugins order by priority asc; (0.001s)
        [2] => delete from `coppermine`.cpg134_sessions where time<1173676640 and remember=0; (0.001s)
        [3] => delete from `coppermine`.cpg134_sessions where time<1172470640; (0.001s)
        [4] => select user_id from `coppermine`.cpg134_sessions where session_id=md5("51b461be6b281cd6362f7dc52d01b793f736d07353ad447662db2f2620a21b07"); (0.001s)
        [5] => select user_id as id, user_password as password from `coppermine`.cpg134_users where user_id=1 (0.001s)
        [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 `coppermine`.cpg134_users AS u INNER JOIN `coppermine`.cpg134_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
        [7] => SELECT user_group_list FROM `coppermine`.cpg134_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 cpg134_usergroups WHERE group_id in (1) (0.001s)
        [9] => SELECT group_name FROM  cpg134_usergroups WHERE group_id= 1 (0.001s)
        [10] => update `coppermine`.cpg134_sessions set time='1173680240' where session_id=md5('51b461be6b281cd6362f7dc52d01b793f736d07353ad447662db2f2620a21b07'); (0.001s)
        [11] => SELECT user_favpics FROM cpg134_favpics WHERE user_id = 1 (0.001s)
        [12] => DELETE FROM cpg134_banned WHERE expiry < '2007-03-12 14:17:20' (0.001s)
        [13] => SELECT * FROM cpg134_banned WHERE (ip_addr='203.63.62.66' OR ip_addr='203.63.62.66' OR user_id=1) AND brute_force=0 (0.001s)
        [14] => SELECT category FROM cpg134_albums WHERE aid='2' (0.001s)
        [15] => SELECT COUNT(*) FROM cpg134_pictures WHERE approved = 'NO' (0.004s)
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
        [album] => 2
        [MAX_FILE_SIZE] => 5144576
        [title] => test
        [caption] => test
        [keywords] => test
        [event] => picture
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.0.5 - OK
    ------------------
    mySQL version: 4.1.14-nt
    ------------------
    Coppermine version: 1.4.9(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: bundled (2.0.28 compatible)
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support: 1
    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 4.1.7
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    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 | .;C:\php5\pear | .;C:\php5\pear
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | no value | no value
    sendmail_path | no value | no value
    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.24 seconds - 16 queries in 0.019 seconds - Album set : ; Meta set: ;


    \db_input.php
    Notice line 292: Undefined index: user1
    Notice line 293: Undefined index: user2
    Notice line 294: Undefined index: user3
    Notice line 295: Undefined index: user4

    ---------------------------------------------
    ---------------------------------------------


    When trying to upload via XP Publish it gives me the following error:

    "The wizard could not connect to the Internet, or the Web service returned a qizard page that is not valid"


    http://boredbutdrunk.com/gallery
    username: test
    password: test
    debugging on and viewable for all users

    Any help would be appreciated.

    Thanks,

    Mike.

Joachim Müller


stev0

Hrm ok well that just suddenly started to work but it appears that the thumbnails are showing off colors in the (check out the latest upload). Can you run xp_publish.php and have a look what might be going wrong?

Also I am still not able to upload via the XP publish method.

Thanks again,

Mike.

stev0

ok i fixed the off colors by changing the config to GDversion2 from version1. How ever still having problems with XP publishing.

Cheers,

Mike.

Joachim Müller

Can't help you with XP Publisher issues, as I don't have Windows XP. Make sure to use Internet Explorer to log in first.

stev0

Yes i have tried logging into the site before using the publishing method, it just seemed to have stopped after the upgrade?

stev0


stev0

Hey there GauGau, i have narrowed down my problem to the fact that when xp_publish is linking to the next page it is not linking correctly, instead of being http://boredb utdrunk.com/gallery/xp_publish.php?cmd=publish it is skipping out the /gallery/ and is appearing as http://boredb utdrunk.com/xp_publish.php?cmd=publish which wont work of coarse. Do you know where this is defined so it can be changed?

stev0

ok ive fixed it, for future reference i had to go through the xp_publish.php and input /gallery/ Virtual directory in all the site_url entries. Not sure why this did not carry over with the upgrade but i am pretty sure that in the upgrade doco they did not say to keep xp_publish.php.