cpmfetch seems to be pulling the wrong data from the gallery/database cpmfetch seems to be pulling the wrong data from the gallery/database
 

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

cpmfetch seems to be pulling the wrong data from the gallery/database

Started by elwave, September 05, 2010, 12:12:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

elwave

I'm really not too sure what is wrong here, or what "link in the chain" is broken.

Here is my current latestimages.php code (that pulls from cpmfetch):

<?php
  
include_once "gallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("gallery/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(18$options);
  
$objCpm->cpm_close(); 
?>


I tried using the recommended code on the cpmfetch site but it kept complaining that it was expecting ) instead of ?

I don't know why!

And erm, the result is just CF-Errors and it fails to fetch the images, the source code of the page simply reading:


<a href="http://www.mysite.net/gallery/thumbnails.php?album=21">
<img src="http://www.mysite.net/gallery/"/>


for each image, with different album numbers.

Help ._.

I am running Coppermine 1.5.8.

Cheers guys :)

Elwave!

pavemen

cpmFetch is not compatible with Coppermine 1.5.x.  If you had it working on 1.4 and upgraded to 1.5 it works partially as you found out. If you try to run the cpmFetch installer, it breaks it completely.

pavemen

i do stand corrected, at least for the few parts i was able to fix and continue to use the random and view last added options. In the cpmfetch_config.php file, enable (uncomment) the override for the $config_overrides['cfSQLPictureSelect'] variable and simply remove the ", p.owner_name AS pOwner_name" bit.

I am now using cpmFetch 2.1.1 with CPG 1.5. bridged to MyBB 1.4, with a cpmFetch plugin for MyBB and pulling a Random image from a specific album as well as pulling the last added images from any album and displaying them in the portal/home page

elwave

Thanks for the help man, but still no joy ._.

I just think it's something wrong with this server. No matter what I do (it's not my server, it's just a hosting package) certain things that worked fine on a different server just do NOT work :(

This is very sucky ._.

Alcor

Quote from: pavemen on September 05, 2010, 07:09:54 AM
i do stand corrected, at least for the few parts i was able to fix and continue to use the random and view last added options. In the cpmfetch_config.php file, enable (uncomment) the override for the $config_overrides['cfSQLPictureSelect'] variable and simply remove the ", p.owner_name AS pOwner_name" bit.

This worked for me with cpmfetch 2.0 and CPG 1.5.8