thumbs not displaying after new images were uploaded thumbs not displaying after new images were uploaded
 

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

thumbs not displaying after new images were uploaded

Started by lotoazul, April 18, 2008, 06:50:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lotoazul

hey guys. i've been using coppermine for a while but i only learned about CPMfetch about two days ago. i immediately thought it was just what i needed, and ran to install it/figure it out, but now i'm getting some issues. this board and the documentation were all very helpful for installation but i've read back all 12 pages and those who had a similar problem to this somehow fixed it and didn't post how they did it... so that was pretty useless.

anyway, my settings:

i have a gallery at http://kyoudai.net/triogallery. this gallery is part of a main site located at a different folder, http://kyoudai.net/trio. i installed CPMfetch at http://kyoudai.net/triogallery/cpmfetch. installation went perfect, no errors. i wanted to show the last 8 pictures added to the gallery in a single column, so i figured from reading the docs/board that this was what my code had to look like:

<?php
  
include "/home/kyoudai/public_html/triogallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("/home/kyoudai/public_html/triogallery/cpmfetch/cpmfetch_config.php");
  
$options = array('windowtarget' => '_blank',"tablestyle" => "cpm");
  
$objCpm->cpm_viewLastAddedMedia(8,1,$options);
  
$objCpm->cpm_close();
?>


i placed that code in a .php file at http://kyoudai.net/trio/marquee.php, because i wanted the pictures to scroll. i styled the thumbnails through a CSS file at http://kyoudai.net/trio/style.css, and the link-href line is part of marquee.php. then i added marquee.php to my main page at http://kyoudai.net/trio through a PHP include.

i'm running CPG v1.4.16, no mods installed, not bridged to anything. also CPMfetch 2.0.0 stable, which should be current as i downloaded it two days ago. the server for my site is linux, if i'm not mistaken.

so, the problem? when i first installed CPMfetch, it all went great. i could see the pictures perfectly in the install page, and i could see them perfectly in the marquee and main page. the stylesheet worked as well.

so what is different, you ask? today i batch-uploaded a bunch of new pictures to the gallery. after that i stepped by the main site just to check, and suddenly the thumbnails weren't showing anymore-- all i get are broken images (you can see it if you go to marquee.php). the title for the broken images is the correct filename, and the link does point to the right pic, it's just the thumbnails aren't showing. upon looking at the source code for marquee.php, i noticed that the src for the img tags was this:

<img  src="http://kyoudai.net/triogallery/images/" alt="Imagen6.jpe" title="Imagen6.jpe"  />

...which of course would give me a broken image, as it isn't even an image.

most of the time that i get these types of errors they turn out to be permission errors, so my first instinct was to check the permissions on my files. everything was like it was supposed to be, so i ended up just deleting CPMfetch altogether and re-installing... CHMODed all the required files again... and when i re-installed it, the images wouldn't show up on the install page either. i figure it's not a folder or file path problem since it worked before and i didn't touch the embed code itself since then. i tried looking at cpmfetch_config.php file and everything seemed in order, but i'm not really PHP-savvy (though i can usually understand what a certain snippet is doing, most of the time) and i'm deathly afraid of messing something up.

hopefully it'll turn out to be something with a very simple fix, that just stumps me now because i'm a beginner at this. anyway, any help is appreciated.

lotoazul

hi again. i haven't found a way to fix this yet, but i wanted to let you all know that i'm making a few changes to the site, just in case you still want to check out my problem. i can't leave those broken images on the main page for too long, so i've switched the CMPfetch code out for a while, and i'll be doing things manually until i can figure out how to solve the problem. the .php file with the CPMfetch include in it can now be found at http://kyoudai.net/trio/marquee2.php, and all the other settings are unchanged, just in case you still want to take a look and maybe help me out with this :) any tips you give me are appreciated, as i don't seem to be making much progress on this issue by myself  :-\