forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: emilbrikha on January 23, 2006, 01:32:46 pm

Title: Trouble uploading images. Tryed everything!
Post by: emilbrikha on January 23, 2006, 01:32:46 pm
Okey, from the start.

For no apparent reason, it just stopped working. I couldn't upload any pictures. So I updated from 1.3 to 1.4. Nothing changed, still got errors. So I started to browse the forum for answers.

I've chanced the chmod. I've changed the picmgmt.inc.php file. I've made sure I use GD2 (it is supported, I checked in the info.php).

Whatever I try, and believe me, I've been trying for 2 days now... reading, browsing, trying to find answers... I just can't fix it.

The only time I can upload images is if I use GD1, but then I get the well reported bad quality images on the thumbnails.

Here are some notes from the debug thingy...

Notices
/upload.php

    * Notice line 2181: Undefined index: user1
    * Notice line 2182: Undefined index: user2
    * Notice line 2183: Undefined index: user3
    * Notice line 2184: Undefined index: user4

/include/picmgmt.inc.php

    * Warning line 273: imagejpeg(): Unable to access albums/userpics/10001/thumb_IMG_9379~3.jpg
    * Warning line 273: imagejpeg(): Invalid filename 'albums/userpics/10001/thumb_IMG_9379~3.jpg'
    * Warning line 279: chmod(): Unable to access albums/userpics/10001/thumb_IMG_9379~3.jpg
    * Warning line 279: chmod(): No such file or directory
    * Warning line 281: getimagesize(): Unable to access albums/userpics/10001/thumb_IMG_9379~3.jpg
    * Warning line 281: getimagesize(albums/userpics/10001/thumb_IMG_9379~3.jpg): failed to open stream: No such file or directory
    * Warning line 284: unlink(albums/userpics/10001/thumb_IMG_9379~3.jpg): No such file or directory
Title: Re: Trouble uploading images. Tryed everything!
Post by: Nibbler on January 23, 2006, 02:05:33 pm
http://forum.coppermine-gallery.net/index.php?topic=23342.0

Make sure you edit both bits.
Title: Re: Trouble uploading images. Tryed everything!
Post by: emilbrikha on January 23, 2006, 02:28:36 pm
But that's for GD1 users? My server supports GD2. Anyhow... I don't understand "a few lines above". It has to be more specific, please.
Title: Re: Trouble uploading images. Tryed everything!
Post by: Nibbler on January 23, 2006, 02:46:12 pm
You are not using GD1 so you can ignore that bit. The rest of the post applies if you are using PHP 4.4.1 in safe mode, is this the case ?
Title: Re: Trouble uploading images. Tryed everything!
Post by: emilbrikha on January 23, 2006, 03:29:40 pm
Okey, I have changed the first part of that post because it's in safe mode but when I choose GD2, I get the error I reported but when I use GD1 it works but the thumbnails become funny looking.

Like this.

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Felqpe.com%2Fphotogallery%2Falbums%2Fuserpics%2F10001%2Fthumb_IMG_9379.jpg&hash=821c7830f08d87b11851a00cabf9a00590226da6)
Title: Re: Trouble uploading images. Tryed everything!
Post by: Joachim Müller on January 23, 2006, 08:27:17 pm
then you don't have GD2, but GD1.
Read http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#VersionGD
Title: Re: Trouble uploading images. Tryed everything!
Post by: emilbrikha on January 23, 2006, 08:33:22 pm
This is from the phpinfo.php

gd
GD Support    enabled
GD Version    bundled (2.0.28 compatible)
FreeType Support    enabled
FreeType Linkage    with freetype
GIF Read Support    enabled
GIF Create Support    enabled
JPG Support    enabled
PNG Support    enabled
WBMP Support    enabled
XBM Support    enabled
---------------------

So if I'm not mistaking it's GD2. Even if it's not... how can I get rid of the problem with the ugly looking thumbnail?
Title: Re: Trouble uploading images. Tryed everything!
Post by: Joachim Müller on January 23, 2006, 08:44:43 pm
What did you specify for "Method for resizing pics" in coppermine's config?
Do as uggested here: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble
Title: Re: Trouble uploading images. Tryed everything!
Post by: emilbrikha on January 23, 2006, 08:59:53 pm
I just told you?

I have support for GD2 but with GD2 set in my config in coppermine, I get the error message I spoke of at first.

It says in the troubleshooting that if you use GD1 and the images become strange looking, it's probably because there is support for GD2.

So this is my problem. With GD1 I can upload images, but the thumbnails become ugly. If I use GD2 I get the error message and can't upload the images I want.
Title: Re: Trouble uploading images. Tryed everything!
Post by: Joachim Müller on January 23, 2006, 09:15:27 pm
do as suggested in the upload troubleshooting section I refered to.
Title: Re: Trouble uploading images. Tryed everything!
Post by: emilbrikha on January 23, 2006, 09:57:45 pm
But I have already tryed that. It didn't help.
Title: Re: Trouble uploading images. Tryed everything!
Post by: Joachim Müller on January 24, 2006, 07:03:22 am
OK, let me quote the section to you - I highlighted the important bit that you stubbornly refuse to read and do as suggested:
Quote
4.11.4 Upload troubleshooting

If you are experiencing issues with coppermine's upload process, temporarily change your coppermine settings as suggested below to get more detailed error messages:

    * Go to your coppermine page and log in as admin
    * Go to the config screen
    * Scroll to the bottom of the page
    * Expand the "Maintenance settings" section by clicking on it
    * Enable debug mode for everyone
    * Leave display of notices switched off
    * Save the new settings by clicking on "Save new configuration"
    * Go to the "groups" panel
    * Set the upload form configuration for all groups to "Single file uploads only" (set File upload boxes to "1", URI upload boxes to "0" and No. of boxes to "fixed")
    * Save your new settings

Then try to upload (using http uploads, even if you experienced troubles using another upload method) - you should get a more detailed error message that tells you what exactly goes wrong with your uploads. If the error message doesn't mean anything to you, search the support board for the error message you get.
When asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges, with the above mentioned settings in place - this way, supporters can see the error messages as well. Do not post debug_output unless requested.
Title: Re: Trouble uploading images. Tryed everything!
Post by: emilbrikha on January 25, 2006, 04:47:15 pm
I told you, I have already tryed what you asked. But, here, make sure for yourself. The url is:

http://elqpe.com/photogallery (http://elqpe.com/photogallery)

login: copper
pass: mine
Title: Re: Trouble uploading images. Tryed everything!
Post by: Joachim Müller on January 26, 2006, 08:21:31 am
you haven't done as suggested in the upload troubleshooting section, when using the test user account you provided, I can see 5 file upload fields and 3 uri upload fields. Again, you fail to do as suggested. I'm not willing to repeat myself all over, I'm not begging you to let me support you, so I'm out of this thread. Bye.
Title: Re: Trouble uploading images. Tryed everything!
Post by: emilbrikha on January 26, 2006, 04:27:49 pm
I had done as you said. The problem was, I had only done it for the administrator. I have changed the guests settings as well as registrered user. Please try again.