He,
i've a little problem.
I'm installing my "second" cpmfetch and i have a strange problem that i did have in first board.
Look here:
http://www.er6italia.com/cpg/cpmfetch/screen.php
Why i receive this ?
Notice: Only variables should be assigned by reference in /web/htdocs/www.er6italia.com/home/cpg/cpmfetch/cpmfetch.php on line 419
And why if i click in on of that 4 photos after i can see the album and not the single photo ?
This is the other perfect workly board:
http://www.vwgolfcommunity.com/cpg/cpmfetch/screen.php
Thanks.
Post your code and what version of cpmfetch you are running.
cpmfetch version is 2.1.1
Which code i need to post ?
Thanks.
If i use this code:
<?php
include "./cpg/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./cpg/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(1,4);
$objCpm->cpm_close();
?>
in this file:
http://www.er6italia.com/test.php
it runs but, how u can see, if i link i one photo, atfer i will redirect in the album and not in the single photo.
It's sufficient my answer ?
Thanks.
Can someone help me ?
Nothing to do, i receive this error:
Notice: Only variables should be assigned by reference in /web/htdocs/www.er6italia.com/home/cpg/cpmfetch/cpmfetch.php on line 801
I'd have to get into the code and see what lines those are.
Is there a difference in the versions of PHP on each server?
You could actually be getting the error on both, but one is set to not display notice level errors...
Yes, the php version is differente.
v5.0.4 in the board where cpmfetch work perfectly.
v4.4.7 in the other.
In the test php there are this lines:
<?php
error_reporting(E_ALL);
ini_set('display_errors',1); // 0 is off, 1 is on
include "./cpg/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./cpg/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewRandomMedia(1,5);
$objCpm->cpm_close();
?>
Thanks for support.