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 seems to be pulling the wrong data from the gallery/database  (Read 6480 times)

0 Members and 1 Guest are viewing this topic.

elwave

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 120

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):

Code: [Select]
<?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:

Code: [Select]
<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!
Logged

pavemen

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: cpmfetch seems to be pulling the wrong data from the gallery/database
« Reply #1 on: September 05, 2010, 06:00:30 am »

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.
Logged

pavemen

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: cpmfetch seems to be pulling the wrong data from the gallery/database
« Reply #2 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.

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
Logged

elwave

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 120
Re: cpmfetch seems to be pulling the wrong data from the gallery/database
« Reply #3 on: September 07, 2010, 07:35:59 am »

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 ._.
Logged

Alcor

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
    • Cosas de Agapornis
Re: cpmfetch seems to be pulling the wrong data from the gallery/database
« Reply #4 on: October 15, 2010, 10:05:17 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
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.