No matter what I've tried, I just can't get this one bit to work. I'd pull out my hair, but I like my hair, so I'll ask for a bit of help.
* The Exact error message:
Warning: fopen(albums/userpics/10001/thumb_VIEW_7.JPG) [function.fopen]: failed to open stream: No such file or directory in /home/
myaccount/public_html/Gallery/cpmfetch/cfimageget.php on line 263
* What version of coppermine you are using: 1.4.10
* What version of CoppermineFetch you are using: CpmFetch Install Script version 2.0.0
* A link to your website and gallery: Website:
http://www.wolfegar.com/ Forum:
http://www.wolfegar.com/Forum/index.php Gallery:
http://www.wolfegar.com/Gallery/ * A link to an example of the problem (if possible)
A cheapy, down and dirty page only used for testing that I thought would work anyway:
http://www.wolfegar.com/index3.php cfimageget direct (so to speak):
http://www.wolfegar.com/Gallery/cpmfetch/cfimageget.php * How computer savvy you are (newbie, intermediate, damn good):
Uhm . . . I'd guess fair. Don't know php, wrote a javascript once. I can copy and paste. I can follow instructions if the instructions are well written. Explicit examples are always a big help for me.
* What kind of web server you are running on (if known)
Apache version 1.3.37 (Unix)
MySQL version 4.1.21-standard
PHP version 4.4.6
Kernel version 2.6.9-42.0.10.ELsmp
Machine Type i686
* Include the code you are using. Okay, but as it's a quicky down and dirty thing only for testing purposes it's going to be messy.
<head>
</head>
<body>
<?php
include_once "./Gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./Gallery/cpmfetch/cpmfetch_config.php");
$options = array("subtitle" => "File name : {{pFilename}}");
$objCpm->cpm_viewLastAddedMedia(1, 4, $options);
$objCpm->cpm_viewRandomMediaFrom("cat=1",1, 4, $options);
?>
<br><br>
<?php
$options = array("subtitle" => "File name : {{pFilename}}");
$objCpm->cpm_viewRandomMediaFrom("cat=1",1, 1, $options);
?>
<br><br>
The filename one.
<?php
$options = array("subtitle" => "{{pFilename}}");
$objCpm->cpm_viewRandomMediaFrom("cat=1",1, 1, $options);
?>
<br><br>
The title one.
<?php
$options = array("subtitle" => "{{pTitle}}");
$objCpm->cpm_viewRandomMediaFrom("cat=1",1, 1, $options);
?>
<br><br>
The caption one
<?php
$options = array("subtitle" => "{{pCaption}}");
$objCpm->cpm_viewRandomMediaFrom("cat=1",1, 1, $options);
?>
<br><br>
<?php
$objCpm->cpm_viewRandomMediaFrom("cat=1",1, 1);
?>
<br><br>
<?php
$options = array("subtitle" => "{{pTitle}}");
$objCpm->cpm_viewRandomMediaFrom("cat=1",1, 1, $options);
?>
<br><br>
<?php
$objCpm->cpm_close();
?>
<br><br>image source cfimageget thingy<br>
<img src="./Gallery/cpmfetch/cfimageget.php" />
<br><br>
<br><br>
JavaScript thingy to use with cpmfetch
<br><br>
<script type="text/javascript">
var cpr_albumid=''; //album id if not used set ''
var cpr_catid='1'; //Category id if not used set ''
var resulttype = 'randomfromcategory'; //Result type from below array.
var rows=1; //Number of rows
var col=1; //Number of columns
var jscriptFetchFile='http://www.wolfegar.com/Gallery/cpmfetch/plugins/cpmfetchjs/jsfetch2.php';
</script>
<script type="text/javascript">
document.write("<script type=\"text/javascript\" src=\""+jscriptFetchFile+"?albumid="+cpr_albumid+"&catid="+cpr_catid+"&resulttype="+resulttype+"&rows="+rows+"&col="+col+"\"><\/script>");
</script>
<br><br>
<br><br>
JavaScript thingy to use with cpmfetch second call instance.
<br><br>
<script type="text/javascript">
rows=2; col=2;
document.write("<script type=\"text/javascript\" src=\""+jscriptFetchFile+"?albumid="+cpr_albumid+"&catid="+cpr_catid+"&resulttype="+resulttype+"&rows="+rows+"&col="+col+"\"><\/script>");
</script>
<br><br>
<br><br>
JavaScript thingy to use with cpmfetch third call instance.
<br><br>
<script type="text/javascript">
rows=1; col=1; resulttype='lastmedia';
document.write("<script type=\"text/javascript\" src=\""+jscriptFetchFile+"?albumid="+cpr_albumid+"&catid="+cpr_catid+"&resulttype="+resulttype+"&rows="+rows+"&col="+col+"\"><\/script>");
</script>
<br><br>
<br><br>
JavaScript thingy to use with cpmfetch fourth call instance.
<br><br>
<script type="text/javascript">
rows=1; col=1; resulttype='random';
document.write("<script type=\"text/javascript\" src=\""+jscriptFetchFile+"?albumid="+cpr_albumid+"&catid="+cpr_catid+"&resulttype="+resulttype+"&rows="+rows+"&col="+col+"\"><\/script>");
</script>
</body>
</html>
And finally, my forum (IPB 1.3.something) is bridged with Coppermine and MKPortal. I couldn't get anything of the cpmFetch stuff to work in the portal but I'm not worried about that right now. Your new installer did pick up the bridge between the forum and Coppermine.
In this bit from the cfimageget.php file:
// CHANGE THIS TO TRUE IF PEOPLE ARE ALLOWED QUERIES THROUGH HERE
$ALLOW_DIRECT_ACCESS = true;
if ($ALLOW_DIRECT_ACCESS && substr($_SERVER['SCRIPT_FILENAME'],-14) == "cfimageget.php") {
// This one you need to adjust unless your galler is at http://www.youname.com/photos
// If you installed right to the root of your web site, just use a /
// TODO This should be path to config file
// $urltocpm = "/Gallery";
$pathToConfigFile = "./Gallery/include/config.inc.php";
I have tried:
$pathToConfigFile = "./Gallery/include/config.inc.php";
$pathToConfigFile = "../Gallery/include/config.inc.php";
$pathToConfigFile = "/home/myaccountname/public_html/Gallery/include/config.inc.php";
$pathToConfigFile = "/";
$pathToConfigFile = "";
All to no avail. I'm sure this must be something so simple that I'm just not seeing it. Over the past few weeks I've search the forums here a dozen times and read and re-read the threads in an effort to discover the answer on my own. I've read the documentation that came in the cpmFetch download. (BTW, the images are missing.) I've visited your site, (the link is in your siggy so I won't repeat it here.) I also tried a google search, but I don't have a Minola Dimage 5, (or 7), camera where I'm trying to get the camera to communicate with a linux system although most of the links come back here to threads I'd already read. (That was a trick, wasn't it?)
A quick look at my forum's index page will show two images that are pulled using remdex's JavaScript add-on your modification to pull a random image on the left and the last image on the right. cpmFetch and that JavaScript does seem to be working. It's just the cfimageget thingy seems to be stubborn for some reason.
Question: In cpmfetch_config.php, is this line: 'cfENABLE_cfimageget' => 'false' supposed to be set to false?