forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 upload => Topic started by: Crusnik01 on March 10, 2011, 09:47:23 pm

Title: Can't see full size pictures, or work with the original files
Post by: Crusnik01 on March 10, 2011, 09:47:23 pm
Hi!

This is how our gallery looks after the latest update (from 1.4.x):
Screen 001 (http://"http://www.upl.co/uploads/coppermineerror001.png")

When turning on debug mode, I get a bunch of these notices:
Screen 002 (http://"http://www.upl.co/uploads/coppermineerror002.png")

And if I try to regenerate the thumbnails, I get this message for all files:
Screen 003 (http://"http://www.upl.co/uploads/coppermineerror003.png")


Let me know if you need any more info.
Title: Re: Can't see full size pictures, or work with the original files
Post by: Crusnik01 on March 10, 2011, 09:49:20 pm
Lol, can't I edit my own posts? or am I just blind?

Anyway, here are the correct links:

Screen 001 (http://www.upl.co/uploads/coppermineerror001.png)
Screen 002 (http://www.upl.co/uploads/coppermineerror002.png)
Screen 003 (http://www.upl.co/uploads/coppermineerror003.png)
Title: Re: Can't see full size pictures, or work with the original files
Post by: Αndré on March 11, 2011, 11:36:51 am
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270617.html#msg270617
Title: Re: Can't see full size pictures, or work with the original files
Post by: Crusnik01 on March 13, 2011, 01:39:23 am
Hi!

Sorry about that, here we go:

http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616

http://norsk-russisk.no/bilder/

http://forum.coppermine-gallery.net/index.php/topic,55415.msg270617.html#msg270617

Attached.
Title: Re: Can't see full size pictures, or work with the original files
Post by: Αndré on March 14, 2011, 11:11:24 am
I guess that a plugin or modification causes that issue. If I have a look at the source code of the intermediate view, I can find something odd:
Code: [Select]
<object id="U" UUUU><param name="autostart" value="true" /><param name="src" value="albums/userpics/1_%281024x768%29.jpg" /></object><br />
Please try if it works when you disable the plugin engine.
Title: Re: Can't see full size pictures, or work with the original files
Post by: Joe Carver on March 15, 2011, 12:21:19 am
It looks like illegal characters are being used for filenames:

.......norsk-russisk.no/bilder/albums/userpics/8(1024x768).jpg
from this.....
.......norsk-russisk.no/bilder/albums/userpics/8_%281024x768%29.jpg

Use only numbers, letters, _ and - for file and folder names - always.
Title: Re: Can't see full size pictures, or work with the original files
Post by: Crusnik01 on March 17, 2011, 11:18:57 pm
It looks like illegal characters are being used for filenames:

.......norsk-russisk.no/bilder/albums/userpics/8(1024x768).jpg
from this.....
.......norsk-russisk.no/bilder/albums/userpics/8_%281024x768%29.jpg

Use only numbers, letters, _ and - for file and folder names - always.

This might be the issue, I agree. Is there a way for me to only have to rename the files in the database, and then make it rename them on the filesystem level?

Or do I actually have to manually go through both the database and filesystem, and rename each file entry?

Thank you! =)
Title: Re: Can't see full size pictures, or work with the original files
Post by: Αndré on March 18, 2011, 02:13:32 pm
I don't think that illegal characters cause that issue, as
Quote from: http://norsk-russisk.no/bilder/displayimage.php?pid=774
<object id="U" UUUU><param name="autostart" value="true" /><param name="src" value="albums/userpics/PC140096.JPG" /></object><br />
doesn't work, too. I don't know where that object tag comes from, that's why I already suggested to disable the plugin engine and/or undo any modifications.
Title: Re: Can't see full size pictures, or work with the original files
Post by: Crusnik01 on March 18, 2011, 04:20:45 pm
I don't think that illegal characters cause that issue, asdoesn't work, too. I don't know where that object tag comes from, that's why I already suggested to disable the plugin engine and/or undo any modifications.
Sorry, I should have mentioned that I disabled all plugins right away, as you said. There have been no modifications. This is a "pure" 1.4.x install, that has been upgraded to 1.5.x using the guidelines provided by Coppermine.

The weird thing is that it works if you open the images directly (copy-paste the value tag). So it seems to me that only Coppermine is unable to see that those are actual pictures, because of some internal mismatch.

What about all of these:
Code: [Select]
/include/functions.inc.php
Notice line 5795: Undefined index: image
Notice line 5795: Undefined index:
Notice line 5795: Undefined index: image
Notice line 5795: Undefined index:
Notice line 5795: Undefined index: image
Notice line 5795: Undefined index:
Notice line 5795: Undefined index: image
Notice line 5795: Undefined index:
Notice line 5795: Undefined index: image
Notice line 5795: Undefined index:
Notice line 5795: Undefined index: image
Notice line 5795: Undefined index:
Notice line 5795: Undefined index: image
Notice line 5795: Undefined index:
Notice line 5795: Undefined index: image
Notice line 5795: Undefined index:
Notice line 5795: Undefined index: image
Notice line 5795: Undefined index:
Notice line 5795: Undefined index: image
Notice line 5795: Undefined index:
Notice line 5795: Undefined index: image
Notice line 5795: Undefined index:
Notice line 5795: Undefined index: image

...

I have now enabled debug mode for Everyone, so that you may see the errors for your self.
Title: Re: Can't see full size pictures, or work with the original files
Post by: Αndré on March 18, 2011, 04:58:24 pm
Please replace all Coppermine files. Maybe some files got corrupted during upload.

You can also try to upload the cpg1.5.x files to another directory on your server and copy the include/config.inc.php file to that instance. Sometimes some old cpg1.4.x files causing trouble.
Title: Re: Can't see full size pictures, or work with the original files
Post by: Crusnik01 on March 18, 2011, 05:26:10 pm
Freshy downloaded and uploaded 1.5.x, with the configuration file imported from old site:

http://norsk-russisk.no/galleri/index.php

Same error :(
Title: Re: Can't see full size pictures, or work with the original files
Post by: Crusnik01 on March 18, 2011, 05:39:27 pm
Freshy downloaded and uploaded 1.5.x, with the configuration file imported from old site:

http://norsk-russisk.no/galleri/index.php

Same error :(

EDIT: Doing a little debugging, so you'll mostly see var_dump's for now. :)
Title: Re: Can't see full size pictures, or work with the original files
Post by: Crusnik01 on March 18, 2011, 05:48:50 pm
Seems like the error lies in that he doesn't populate the "$CONFIG['allowed_file_extensions']" array.

Code: [Select]
var_dump($CONFIG['allowed_file_extensions']);
RESULT: bool(false)
Title: Re: Can't see full size pictures, or work with the original files
Post by: Αndré on March 18, 2011, 09:01:04 pm
Please check/post your settings for each allowed doc/video/audio/image types.
Title: Re: Can't see full size pictures, or work with the original files
Post by: Nibbler on March 18, 2011, 09:11:45 pm
This was actually resolved on IRC just now. Problem was bad data (added nulls) in the filetypes table.
Title: Re: Can't see full size pictures, or work with the original files
Post by: Crusnik01 on March 18, 2011, 09:16:04 pm
This was actually resolved on IRC just now. Problem was bad data (added nulls) in the filetypes table.
What he said =) Marking solved.