Hi!
I've tried to find this error on forum first, but I can't have the same problem first.
I run the cftest.php program and also an small one from doc. It looks to work but images are not shown. No errors reported, so I see that the html generated for images is like
img src="//albums/...
That's starting with a double slash (//).
I suppose that I made some mistake in configuration variables, but I can't find it.
I have both coppermine and cpmfetch at root directory, so I usually put an "/" in variables.
This is my start of cftest.php
$ChangeThisToYourPartialUrlToCPG = "/";
All results are "PASS" or "INFO", but no image displayed.
In cpmfetch.php
class cpm {
//The following 3 entries can be adjusted if you are using non-standard prefixes in CPG
var $thumbnailprefix = "thumb_";
var $intermedprefix = "normal_";
var $fullsizeprefix = '';
var $defaultimagesize = "thumb_";
// //////////////////// NO USER SERVICEABLE PARTS BEYOND THIS POINT ////////////////////////
// ... really
// //////////////////// NO USER SERVICEABLE PARTS BEYOND THIS POINT ////////////////////////
var $VERSION = "1.6.2";
var $cpm = "";
var $urltocpm = "/"; //from a web client point of view without domain name /photos
var $filepathtocpm = ""; //server path to cpm directory /home/vuud/cpm
var $optionHash = array(); //Contains the options submitted by the user
var $styleHash = array();
var $returntype = "print"; // print, html, resultset
var $debugMode = false;
And a little test program with same results.
<?php
error_reporting(E_ALL);
ini_set('display_errors',1); // 0 is off, 1 is on
include "cpmfetch.php";
$objCpm = new cpm('/');
$objCpm->cpm_viewRandomMedia (1,4);
$objCpm->cpm_viewLastAddedMedia (2,4);
$objCpm->cpm_close();
?>
I also noticed that url to last images are given with a negative value, but it works. Like that:
a href="/displayimage.php?pos=-1458"
Thanks,
Colegota