Trouble uploading images. Tryed everything! Trouble uploading images. Tryed everything!
 

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

Trouble uploading images. Tryed everything!

Started by emilbrikha, January 23, 2006, 01:32:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

emilbrikha

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


emilbrikha

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.

Nibbler

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 ?

emilbrikha

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://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Felqpe.com%2Fphotogallery%2Falbums%2Fuserpics%2F10001%2Fthumb_IMG_9379.jpg&hash=821c7830f08d87b11851a00cabf9a00590226da6)

Joachim Müller


emilbrikha

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?

Joachim Müller

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

emilbrikha

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.

Joachim Müller

do as suggested in the upload troubleshooting section I refered to.

emilbrikha

But I have already tryed that. It didn't help.

Joachim Müller

OK, let me quote the section to you - I highlighted the important bit that you stubbornly refuse to read and do as suggested:
Quote4.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.

emilbrikha

I told you, I have already tryed what you asked. But, here, make sure for yourself. The url is:

http://elqpe.com/photogallery

login: copper
pass: mine

Joachim Müller

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.

emilbrikha

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.