Can't see full size pictures, or work with the original files Can't see full size pictures, or work with the original files
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Can't see full size pictures, or work with the original files

Started by Crusnik01, March 10, 2011, 09:47:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Crusnik01

Hi!

This is how our gallery looks after the latest update (from 1.4.x):
Screen 001

When turning on debug mode, I get a bunch of these notices:
Screen 002

And if I try to regenerate the thumbnails, I get this message for all files:
Screen 003


  • The file permissions are correct (777 folders, and 666 for files).
  • I also have no problem opening the files directly in the browser.

Let me know if you need any more info.

Crusnik01

Lol, can't I edit my own posts? or am I just blind?

Anyway, here are the correct links:

Screen 001
Screen 002
Screen 003



Αndré

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:
<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.

Joe Carver

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.

Crusnik01

Quote from: 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.

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! =)

Αndré

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.

Crusnik01

Quote from: Αndré on March 18, 2011, 02:13:32 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:
/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.

Αndré

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.

Crusnik01

Freshy downloaded and uploaded 1.5.x, with the configuration file imported from old site:

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

Same error :(

Crusnik01

Quote from: 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 :(

EDIT: Doing a little debugging, so you'll mostly see var_dump's for now. :)

Crusnik01

Seems like the error lies in that he doesn't populate the "$CONFIG['allowed_file_extensions']" array.

var_dump($CONFIG['allowed_file_extensions']);
RESULT: bool(false)

Αndré

Please check/post your settings for each allowed doc/video/audio/image types.

Nibbler

This was actually resolved on IRC just now. Problem was bad data (added nulls) in the filetypes table.

Crusnik01

Quote from: 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.
What he said =) Marking solved.