PDA

View Full Version : Only variables should be passed by reference help


z3r0
01-05-2017, 09:28 AM
I've just moved my 3.8 site over to 3.8.10 and PHP5.6, I've managed to fix all pretty much everything that has broken, but I've got one that I just cant seem to get right.

Only variables should be passed by reference error for the following line:-
$thread['synopsis'] = $this->parse_bbcode(unhtmlspecialchars($thread['synopsis']));I'd be very grateful for a little help as I could spend days reading google and trying before I get it right :)

Thanks


Edit - I think I've got it sorted now :D

PinkMilk
01-06-2017, 01:39 AM
Try:
$synopsis = unhtmlspecialchars($thread['synopsis']);
$thread['synopsis'] = $this->parse_bbcode($synopsis);

z3r0
01-06-2017, 06:31 AM
Thanks :D

Paul M
01-06-2017, 05:42 PM
I assume this is from a modification you have installed ?

I dont think $thread['synopsis'] is part of core vB3.

z3r0
01-07-2017, 05:26 AM
Yeah, it was from the long time abandoned GARS.