Not showing always all pictures fetched Not showing always all pictures fetched
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Not showing always all pictures fetched

Started by gruhle, February 20, 2009, 01:39:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gruhle

Hello,

I'm using CpmFetch with a CMS called contenido. My PHP-script looks like this:

<?php
   
require_once "./cpmfetch/cpmfetch.php";
   
//include "../cpmfetch/cpmfetch.php";
   //$objCpm = new cpm("/coppermine/coppermine");
   
$objCpm = new cpm("./cpmfetch/cpmfetch_config.php");
   
$source "";
   
$options = array(
      
"alttag" => "%t (Foto: %o)",
      
"imagelink" => "album",
      
"windowtarget" => "_blank",
      
"imagesize" => "int",
      
"imagewidth" => "190"
   
);
   
$objCpm->cpm_viewRandomMedia(3,1,$options);
   
$objCpm->cpm_close();
   echo 
"<br>";
?>


In the majority of cases this works fine. But sometimes for some pictures only the alt-tag is shown but not the picture itself.
(URL: http://www.Ried-Foto.de

Now I don't know where the problem is. Is it a problem of CpmFetch? Is it a PHP-Problem? Or have I to clear it within the CMS? Any hint?

Thx!

Reiner

Joachim Müller

Just guessing blindly: you have quotes in the description (caption etc.) of your files, which will (if not escaped properly) break the HTML tags.

gruhle

Hello Joachim,

Quote from: Joachim Müller on February 25, 2009, 10:06:01 AM
Just guessing blindly: you have quotes in the description (caption etc.) of your files, which will (if not escaped properly) break the HTML tags.

Thanks for that hint. But the quotes seem not to be the problem as they are escaped properly.

Joachim Müller

We'd need to see an example that doesn't work. When I accessed your site, the data from cpmFetch actually did show. It's hard to track stuff you can't see.

gruhle

Hello Joachim,

sometimes it works properly  :) ....
But I made three attempts and all three got the error.  :(

See Snapshots attached.

There are three pictures called but only one (snapshot2) oder two (snapshot1, snapshot3) are shown. The texts shown are the alt-tag of the not shown pics.

Greetings

Reiner