"Only variables should be assigned by reference" "Only variables should be assigned by reference"
 

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

"Only variables should be assigned by reference"

Started by mc0676, April 11, 2008, 08:40:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mc0676

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.


Nibbler

Post your code and what version of cpmfetch you are running.

mc0676

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.



mc0676


mc0676


mc0676

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

vuud


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



Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

mc0676

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.