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: CPMFetch not actually fetching images  (Read 3530 times)

0 Members and 1 Guest are viewing this topic.

heb.xi.1

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
CPMFetch not actually fetching images
« on: February 08, 2009, 10:37:42 pm »

SMF 1.1.8 / TinyPortal 1.0.5
Coppermine 1.4.20
CMPFetch 2.0.0

Main Site: www.regapgreyhounds.org/index.php
Coppermine alone: www.regapgreyhounds.org/cpg
Test page:  www.regapgreyhounds.org/gallery.php

I have searched and poked around and have tried other people's code and checked the FAQs for the code there.  Ideally what I need to have is an ability to show various images in articles through TinyPortal.  However I'm starting simple and working on the basic test page for now before I try to argue with the SMF/TP code as well :)

The code from my test page, taken straight from the Stable Basic Docs and then split up to sit pretty in the HTML
Code: [Select]
<?php

// To include images from the Coppermine Gallery


  
include_once "./cpg/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./cpg/cpmfetch/cpmfetch_config.php");
  
$options = array("subtitle" => "File name : {{pFilename}}");


echo 
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title>Hello!</title>
</head>

<body>'
;

  
$objCpm->cpm_viewLastAddedMedia(14$options);
  
$objCpm->cpm_viewRandomMediaFrom("cat=1",14$options);

echo 
'
</body>
</html>'
;

  
$objCpm->cpm_close();

?>


If you look at the test page, CPMFetch is able to find the correct links to the images and display that ... so that when you click on it, it takes you to the page for the image.  However, it's simply unable to display the images themselves - the <img> tags have the main URL up to /cpg and then stops before outputting the albums/etc/etc.  In the source code for each of the images, there is:

Code: [Select]
CF-Error <!-- GITU: Could not find any image to display: Extension (strtolower): .jpg  File://albums/userpics/10001/thumb_arrivals.JPG-->
Any help would be appreciated ... please let me know if there is anything else I can post/PM that would be useful.
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 20 queries.