Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Can't see full size pictures, or work with the original files  (Read 14971 times)

0 Members and 1 Guest are viewing this topic.

Crusnik01

  • Coppermine newbie
  • Offline Offline
  • Posts: 9

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

Crusnik01

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Can't see full size pictures, or work with the original files
« Reply #1 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
Screen 002
Screen 003
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Can't see full size pictures, or work with the original files
« Reply #4 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.
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: Can't see full size pictures, or work with the original files
« Reply #5 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.

Crusnik01

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Can't see full size pictures, or work with the original files
« Reply #6 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! =)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Can't see full size pictures, or work with the original files
« Reply #7 on: March 18, 2011, 02:13:32 pm »

I don't think that illegal characters cause that issue, as
<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.
Logged

Crusnik01

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Can't see full size pictures, or work with the original files
« Reply #8 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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Can't see full size pictures, or work with the original files
« Reply #9 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.
Logged

Crusnik01

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Can't see full size pictures, or work with the original files
« Reply #10 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 :(
Logged

Crusnik01

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Can't see full size pictures, or work with the original files
« Reply #11 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. :)
Logged

Crusnik01

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Can't see full size pictures, or work with the original files
« Reply #12 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)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Can't see full size pictures, or work with the original files
« Reply #13 on: March 18, 2011, 09:01:04 pm »

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

Nibbler

  • Guest
Re: Can't see full size pictures, or work with the original files
« Reply #14 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.
Logged

Crusnik01

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Can't see full size pictures, or work with the original files
« Reply #15 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 20 queries.