coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: pjssms on March 29, 2009, 02:15:20 PM

Title: files being uploaded under user nobody
Post by: pjssms on March 29, 2009, 02:15:20 PM
The files are being uploaded but after uploading start beloging to nobody instead of the user.
The process then doesn´t create the thumbnails.

I have tried to enable suexecphp but the scrit doesn´t work with that.

What do you suggest to be done ?.

I spent some time looking for answers in the forum already.

I am copying the debug information.


/upload.php

    * Notice line 1979: Undefined variable: file_failure_array
    * Notice line 1980: Undefined variable: URI_failure_array
    * Notice line 1981: Undefined variable: zip_failure_array


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

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => deuchand_galeria
    [groups] => Array
        (
           
Title: Re: files being uploaded under user nobody
Post by: Joachim Müller on March 29, 2009, 02:33:37 PM
Quote from: pjssms on March 29, 2009, 02:15:20 PM
The files are being uploaded but after uploading start beloging to nobody instead of the user.
In terms of ownership on file system level, all files that are created by the script (that's the intermediate file as well as the thumbnail) are being owned by the user the web server service runs under. That's a matter of webserver setup and not a coppermine issue. If this bothers you, change your webserver setup or ask your webhost for support.

Quote from: pjssms on March 29, 2009, 02:15:20 PM
What do you suggest to be done ?.
I suggest doing as described in the docs, section "asking for support on upload issues", as there's a reason why we have written that section of the docs.

Quote from: pjssms on March 29, 2009, 02:15:20 PM
I am copying the debug information.
Nobody asked for it.

Quote from: pjssms on March 29, 2009, 02:15:20 PM
    * Notice line 1979: Undefined variable: file_failure_array
    * Notice line 1980: Undefined variable: URI_failure_array
    * Notice line 1981: Undefined variable: zip_failure_array
Leave notices_display turned off if you have no idea what it means.
Title: Re: files being uploaded under user nobody
Post by: pjssms on March 29, 2009, 02:53:55 PM
thank you for your quick answer.

with suexecphp the gallery gives an error 500 internal server error
with php as cgi i have other scripts that don´t work

/upload.php

    * Notice line 2191: Undefined index: user1
    * Notice line 2192: Undefined index: user2
    * Notice line 2193: Undefined index: user3
    * Notice line 2194: Undefined index: user4

/include/picmgmt.inc.php

    * Notice line 170: Undefined variable: imageinfo
    * Warning line 264: imagecreatefrompng() [function.imagecreatefrompng]: 'albums/userpics/10001/Yvette3~0.bmp' is not a valid PNG file

/include/picmgmt.inc.php

    * Notice line 170: Undefined variable: imageinfo
    * Warning line 264: imagecreatefrompng() [function.imagecreatefrompng]: './albums/edit/mHTTP_temp_1bfc5f3e.bmp' is not a valid PNG file

/include/functions.inc.php

    * Notice line 2732: Undefined variable: i

I tried another format of the image and it worked.

I am not sure if my support had changed anything else in the server