PDA

View Full Version : Warning: Only variables should be passed by reference in .../newreply.php on line 389



Fro
April 27th, 2014, 4:28 PM
Whenever I post a reply in a thread this is what I see

http://s18.postimg.org/i7u1n0urt/Untitled_Raj.png

It posts normally, no double post or anything but it gives me this weird error. Also when you preview a reply you know it usually shows you all the newest posts from the thread below your preview, well that whole area is fucked up too.

Anyone else?

I'm using Chrome.

The_Mike
April 27th, 2014, 5:19 PM
That happened to me once yesterday, but only that one time. Pretty sure I was using PaleMoon (a fork of Firefox).

LOCONUT
April 27th, 2014, 10:22 PM
I can't see any issues. Let me know if this continues and I can ask one of the admins with real power to look at it.

Kyle_242
April 27th, 2014, 10:47 PM
I saw it a few times today too. Posting in that same NBA thread, on Chrome.

Fro
April 29th, 2014, 7:49 PM
This is what I see below my reply preview on both Chrome and Firefox for Windows 8.

http://s2.postimg.org/82o9lnz49/Untitled.png

xheliox
April 29th, 2014, 10:33 PM
Odd. I made a change, is it any better?

Fro
May 1st, 2014, 7:46 PM
Yes it seems to be fixed now. Cheers :beer:

The Rogerer
May 2nd, 2014, 4:04 AM
Don't pass constants by reference, for god's sake

come on guys

Simon
May 2nd, 2014, 4:59 AM
I can't believe anyone still needs to be warned that only variables should be passed by reference in .../newreply.php on line 389. That's entry level stuff lads.

The Rogerer
May 2nd, 2014, 6:49 AM
Looked into this. If you pass a function call in as an argument that takes it by reference you'll get this error. Although the function call may well return a variable, it must pass the argument as the function rather than it's resulting variable. Or I guess if this returned value isn't assigned to a variable, then it can't put the result anywhere.