Problem uploading Problem uploading
 

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

Problem uploading

Started by tcatalano, October 26, 2005, 09:09:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tcatalano

I get the following error message when I try to upload a jpeg image.

Warning: move_uploaded_file(./albums/edit/mHTTP_temp_676d6c2e.jpg): failed to open stream: Permission denied in /home/pdshare/public_html/photogallery/upload.php on line 1197

Warning: move_uploaded_file(): Unable to move '/tmp/phplAc2go' to './albums/edit/mHTTP_temp_676d6c2e.jpg' in /home/pdshare/public_html/photogallery/upload.php on line 1197

I'm a newbie and know less then nothing about PHP. Your help (in plain English) will be greatly appreciated. Thanks!

Here is the debug Info
USER:
------------------
Array
(
    [ID] => 6b3606412e6af3b010d7564e3e0742dc
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => tcatalano
    [user_password] => ********
    [user_lastvisit] => 2005-10-26 14:49:49
    [user_regdate] => 2005-10-25 11:22:05
    [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] => 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
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content FROM cpg132_filetypes;
        [1] => SELECT * FROM cpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '48b2345587a8b51ab373497fa8accdcc'
        [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 cpg132_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg132_banned WHERE expiry < 1130352639
        [5] => SELECT * FROM cpg132_banned WHERE ip_addr='24.227.21.118' OR ip_addr='24.227.21.118' OR user_id=1
    )

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

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

        [control] => phase_1
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.10 - OK
    ------------------
    mySQL version: 4.0.23-standard
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.28 compatible)
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 1
    Active Links 2
    Client API version 3.23.49
    MYSQL_MODULE_TYPE builtin
    MYSQL_SOCKET /var/tmp/mysql.sock
    MYSQL_INCLUDE no value
    MYSQL_LIBS no value
    ==========================
    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/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 | -1 | -1
    upload_max_filesize | 2M | 2M
    post_max_size | 55M | 55M
    ==========================
    Page generated in 0.059 seconds - 6 queries in 0.002 seconds - Album set :

xplicit

Please read the board rules before posting, this has realy been asked over and over again

http://forum.coppermine-gallery.net/index.php?action=search2&search=Warning:%20move_uploaded_file(./albums/edit/mHTTP_temp%20failed%20to%20open%20stream:%20Permission%20denied%20in&sort=ID_MSG

Mostly it's just the file permissions which are not correct, CHMOD your album directory (755 sometimes 777 Unix)
Don't ask me: Can you do this .... or Give me that...or I need Quick help in PM's. I'm not Santaclaus so post your questions on the board so it will be in the benefit for everyone.

tcatalano

Thanks for the reply, but the info is totally useless. If I could understand what you're trying to tell me I would probably be able to write my own scripts and wouldn't need coppermine. The only place I can find to make the changes you suggest is in the config.php at that was already set correctly. I can see this script or program or whatever it is, is not very user friendly. There should be help dialogs along the way to give a "none egghead" a fighting chance to get up and running. No need to reply. I'm probably going to trash Coppermine and go a different route. I really don't want to spend the rest of my natural life in this stupid support forum.

kegobeer

#3
Glad you think so highly of our product and our support system.  If you don't know anything about how to set permissions, perhaps you should take some time and learn how your website operates.  If you don't want to take an active role in fixing your problem, take a hike.  I, and the rest of the devs, have absolutely no interest in helping people with your kind of attitude.

There are plenty of "none egghead" people who successfully install Coppermine.  They are even able to solve problems.  Perhaps you are just a complete idiot.  Thanks for trolling.
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

Zarsky

priceless...  ::)

I sure missed the fun times over here at the coppermine forum.
Read the Online DOCs, FAQ, and SEARCH the board BEFORE posting questions for help.

Joachim Müller

@Zarsky: Hehe, I agree.
[ot]
Welcome back Mark. Good to see you around again.
[/ot]

@moron aka tcatalano: good bye, have a nice life. If you would have done as suggested and followed the link xplicit posted, you would have found out that you had to update from your outdated version to the most recent stable cpg1.3.5. However, you're probably not reading this, so I'm actually replying not to you, but to anybody else who has the same issue and searches the board for an answer.

Joachim

tcatalano

When you create an image gallery program and the first time you upload a photo you have a problem, that's got to tell you something.
When many users ask for help over and over again on the same issue, that's got to tell you something. If you want to make believe you have a great product, that's your business. I'll leave you with this final thought. "Simple Good, Complicated Bad"

kegobeer

Your problem is with your website, not with Coppermine, as you would have noticed had you actually taken the time to research your problem.  Improper server setup is an issue you need to take up with your host, not with us.

Thankfully this will be your last thought with us.  Here's one for you: RTFM and STFW before posting.
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

Tranz

Quote from: tcatalano on October 27, 2005, 04:46:51 PM"Simple Good, Complicated Bad"
Not really. A complex computer beats a typewriter. A sophisticated GPS navigation system beats a paper map. A car beats a bike.

Simple things for simple minds. :P

tcatalano

You guys/gals don't take criticism very well do you. That's too bad. From what I've seen, this forum is chock full of band-aids, but the patient needs an operation.

Tranz

#10
Quote from: tcatalano on October 27, 2005, 08:00:17 PM
You guys/gals don't take criticism very well do you. That's too bad. From what I've seen, this forum is chock full of band-aids, but the patient needs an operation.
Right, but the point is that only your webhost is able to perform the operation when the server is improperly set up. Plenty of people with proper setups are able to upload just fine.

It's like if your company computer does not give you admin rights to install certain applications. It doesn't do you any good to cry and scream at the software company. Only your system administrator can help you.

Joachim Müller

tcatalano: you said you were going to leave, so why don't you? I have a final gift for you: <°)))o>< - have fun with it.

Locking this thread now. I'll take care as well of tcatalano's urge to pop-up again and again by removing the reply button as well as the "start a new thread" button.