coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: TheSavior on September 07, 2005, 02:56:12 AM

Title: Upload [FOPEN] error
Post by: TheSavior on September 07, 2005, 02:56:12 AM
i get this error when trying to upload an image:

Quote
Warning: fopen(http://www.lonelylizard.com/~eli/files/gallery/renders/3d%20Abstract/1.png) [function.fopen]: failed to open stream: Connection refused in /raid5/home/eli/public_html/coppermine/cpg134/upload.php on line 1628
Title: Re: Upload [FOPEN] error
Post by: Joachim Müller on September 07, 2005, 06:56:16 AM
improper server setup - your server shows all files when browsing to a folder, which is not a good thing to have. However, read the tutorial Trouble-Shooting the upload process (http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php)
Title: Re: Upload [FOPEN] error
Post by: TheSavior on September 08, 2005, 02:21:08 AM
heres the debug info:

QuoteUSER:
------------------
Array
(
    [ID] => 79de0121b503007b38a71e2bd5adf240
    [am] => 1
    [lap] => 3
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => TheSavior
    [user_password] => ********
    [user_lastvisit] => 2005-09-07 17:15:43
    [user_regdate] => 2005-09-06 15:39:18
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [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] => 1
    [num_file_upload] => 10
    [num_URI_upload] => 10
    [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
(
   
  • => SELECT extension, mime, content FROM cpg134_filetypes;
        [1] => SELECT * FROM cpg134_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'd56ec114d5fd9fe5301cea24f3632634'
        [2] => 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)
        [3] => SELECT group_name FROM  cpg134_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg134_banned WHERE expiry < '2005-09-07 17:18:31'
        [5] => SELECT * FROM cpg134_banned WHERE ip_addr='70.187.147.218' OR ip_addr='70.187.147.218' OR user_id=1
        [6] => SELECT user_id FROM cpg134_users WHERE user_name = 'test' AND user_id != 3
        [7] => UPDATE cpg134_users SET user_name           = 'test', user_email          = '', user_active    = 'YES', user_group           = '2', user_location  = '', user_interests = '', user_website          = '', user_occupation= '', user_group_list      = '', user_password = 'test' WHERE user_id = '3'
        [8] => DELETE FROM cpg134_users WHERE user_name = '' LIMIT 1
        [9] => SELECT count(*) FROM cpg134_users WHERE 1
        [10] => SELECT user_id, user_name, UNIX_TIMESTAMP(user_regdate) as user_regdate, UNIX_TIMESTAMP(user_lastvisit) as user_lastvisit, user_active, COUNT(pid) as pic_count, ROUND(SUM(total_filesize)/1024) as disk_usage, group_name, group_quota FROM cpg134_users AS u INNER JOIN cpg134_usergroups AS g ON user_group = group_id LEFT JOIN cpg134_pictures AS p ON p.owner_id = u.user_id GROUP BY user_id ORDER BY user_regdate DESC LIMIT 0, 25;
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [op] => update
        [user_id] => 3
    )

    ==========================
    POST :
    ------------------
    Array
    (
        [user_name] => test
        [user_password] => test
        [user_active] => YES
        [user_group] => 2
        [group_list] => Array
            (
               
  • => 2
            )

        [user_email] =>
        [user_location] =>
        [user_interests] =>
        [user_website] =>
        [user_occupation] =>
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.0.4 - OK
    ------------------
    mySQL version: 3.23.59-nightly-20050301
    ------------------
    Coppermine version: 1.3.4
    ==========================
    Module: gd
    ------------------
    module doesn't exist
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 3.23.58
    MYSQL_MODULE_TYPE no value
    MYSQL_SOCKET /tmp/mysql.sock
    MYSQL_INCLUDE no value
    MYSQL_LIBS no value
    ==========================
    Module: zlib
    ------------------
    module doesn't exist
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | Off | Off
    safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
    safe_mode_gid | Off | Off
    safe_mode_include_dir | no value | no value
    safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
    sql.safe_mode | Off | Off
    disable_functions | no value | no value
    file_uploads | On | On
    include_path | .: | .:
    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 | -1 | -1
    upload_max_filesize | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.272 seconds - 11 queries in 0.013 seconds - Album set :
and the account to access my gallery:

username: test
password: test
Title: Re: Upload [FOPEN] error
Post by: Joachim Müller on September 09, 2005, 08:41:28 AM
I didn't ask for the debug_output, re-read the page I refered to.
Title: Re: Upload [FOPEN] error
Post by: TheSavior on September 10, 2005, 01:34:34 AM
i did that also. i did that, and i also posted the debug and member info because those are the last steps on the page you reffered to me.
Title: Re: Upload [FOPEN] error
Post by: Joachim Müller on September 10, 2005, 12:17:00 PM
You haven't posted a link to your coppermine install, and I'm not going to browse the myriad of folders on your site. Don't make it so hard for others to support you. The actual link would probably be http://www.lonelylizard.com/~eli/coppermine/cpg134/index.php

The actual error message I get when I try to upload is
QuotePHP running on your server does not support the GD image library, check with your webhost if ImageMagick is installed

File: /raid5/home/eli/public_html/coppermine/cpg134/include/picmgmt.inc.php - Line: 203
- should be pretty self-explanatory. Your server is misconfigured, you appear to be self-hosted. Either install ImageMagick and set up coppermine to use it or install GD or find some decent webhosting (recommended).
Title: Re: Upload [FOPEN] error
Post by: TheSavior on September 10, 2005, 07:39:16 PM
i have a great server, and it has php, mysql, and everything i could need. How can i install GD because that is probobly the problem as it appears.
Title: Re: Upload [FOPEN] error
Post by: kegobeer on September 10, 2005, 08:44:03 PM
Apparently not quite everything you need.  You need to recompile php with GD2 support.  If you are self hosted, and you don't know how to do this, there are plenty of resources on the internet for webserver configuration.  If you are hosted, ask your host for support.
Title: Re: Upload [FOPEN] error
Post by: TheSavior on September 10, 2005, 11:07:33 PM
ok, that was what i really needed to know. I will get that done soon.