Upload + Server Name = Zero Uploads were successful Upload + Server Name = Zero Uploads were successful
 

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

Upload + Server Name = Zero Uploads were successful

Started by king0770, May 19, 2007, 12:30:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

king0770

Hello!

I just installed my online photo album, and everything works as it should. However, I think I discovered a bug with the upload process.

I can upload a picture when my server address is in this format: http://www.myserver.tld/upload.php

However...

I cannot upload a picture when my server address is in this format: http://photo.myserver.tld/upload.php

Anyone else run into this kind of problem before?

Any help with this would be greatly appreciated.

My best to you.

Stramm


Joachim Müller

Shouting "bug" is not a bright thing, especially if your report lacks everything a valid bug report should have.

king0770

Ok here is the debug information:

The main problem is that I can upload a picture when the server url is http://www.mydomain.tld/photo

However...

I can not upload a picture when the url is http://photo.mydomain.tld

Here is the debug info:

USER:
------------------
Array
(
    [ID] => 120ba13aa6f101133b40f10b6017d747
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => raking
    [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 cpg1410_filetypes; (0.001s)
        [1] => select * from cpg1410_plugins order by priority asc; (0s)
        [2] => delete from `photo7`.cpg1410_sessions where time<1179681164 and remember=0; (0.001s)
        [3] => delete from `photo7`.cpg1410_sessions where time<1178475164; (0s)
        [4] => select user_id from `photo7`.cpg1410_sessions where session_id=md5("8799de85e8fd9e9c19c6155cea06739c861a90bdfb38156ef85b7f4446"); (0.001s)
        [5] => select user_id as id, user_password as password from `photo7`.cpg1410_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 `photo7`.cpg1410_users AS u INNER JOIN `photo7`.cpg1410_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
        [7] => SELECT user_group_list FROM `photo7`.cpg1410_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 cpg1410_usergroups WHERE group_id in (1) (0.001s)
        [9] => SELECT group_name FROM  cpg1410_usergroups WHERE group_id= 1 (0.001s)
        [10] => update `photo7`.cpg1410_sessions set time='1179684764' where session_id=md5('8799de85e8fd6155ce013a5da06739c861a90bdfb38156ef85b7f4446'); (0.001s)
        [11] => SELECT user_favpics FROM cpg1410_favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM cpg1410_banned WHERE expiry < '2007-05-20 18:12:44' (0s)
        [13] => SELECT * FROM cpg1410_banned WHERE (ip_addr='xx.xx.xx.xx' OR ip_addr='xx.xx.xx.xx' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT aid, title FROM cpg1410_albums WHERE category < 10000 ORDER BY title (0s)
        [15] => SELECT aid, title FROM cpg1410_albums WHERE category='10001' ORDER BY title (0s)
        [16] => SELECT COUNT(*) FROM cpg1410_pictures WHERE approved = 'NO' (0s)
    )

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

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

        [control] => phase_1
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.4.4 - OK
    ------------------
    mySQL version: 4.1.18-standard-log
    ------------------
    Coppermine version: 1.4.10(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 0
    Active Links 1
    Client API version 4.1.11
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/run/mysqld/mysqld.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.2.2
    Linked Version 1.2.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/local/lib/php-4.4.4/lib/php | .:/usr/local/lib/php-4.4.4/lib/php
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | wwwuser@cgi.yourhostingaccount.com | wwwuser@cgi.yourhostingaccount.com
    sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
    SMTP | mail.yourhostingaccount.com | mail.yourhostingaccount.com
    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 | 10M | 10M
    post_max_size | 11M | 11M
    ==========================
    Page generated in 0.102 seconds - 17 queries in 0.009 seconds - Album set : ; Meta set: ;

    Here are the notices as well:

    /upload.php

        * Notice line 1967: Undefined variable: escrow_array
        * Notice line 1968: Undefined variable: file_failure_array
        * Notice line 1969: Undefined variable: URI_failure_array
        * Notice line 1970: Undefined variable: zip_failure_array

Joachim Müller

You're suppossed to do exactly as suggested in the upload troubleshooting section of the docs that Stramm refered to. Read that section extra carefully. It clearly says what to do. It clearly says not to post debug_ouput!

jrothra

I just installed 1.4.10 and used the Windows XP publishing feature.  Windows reported the files uploaded fine and asked me if I wanted to open the site.  I said yes and for some reason the site actually shows no files exist in the album.

I've tried setting the permissions for the three directories (/album, etc.) to both 777 and 755 as directed.  Neither one made a difference.  The files aren't too big, less than 400kb each.  I didn't change any config settings except the theme and to allow users to choose their own theme.

Here's what it tells/shows on my site after uploading the files:


Joachim Müller

@jrothra: the same thing I replied to king0770 applies to you as well: do exactly as suggested in the upload troubleshooting section of the docs. If you don't do that, there's nothing we could do to help you. Do so in a thread of your own - stay out of this thread. Attempting to hijack a thread is rude! Not following board rules and supporter's suggestions will only result in supporters being reluctant to actually help you.

jrothra

I apologize for any apparent rudeness.  I read the thread and my problem seemed similar, but not exactly the same, so I figured it would fit well here.  I never sought to hijack the thread.