Page 1 of 1

Assign_by_ref error with Comments Module

Posted: Mon Jan 21, 2008 8:47 am
by jobi
I would like to use Comments module 1.8.2 on my CMS MS 1.2.3. An error occurs when I want to display input comments form.

Code: Select all

Fatal error: Only variables can be passed by reference in 
chemin_sur_serveur/modules/Comments/action.default.php on line 265
I've done some tests, and it may correct when I use this following lines of code :

Code: Select all

//Initial code line 265 in action.default.php
//$this->smarty->assign_by_ref('endform', $this->CreateFormEnd());
//Replace by :
$temp1 = $this->CreateFormEnd();
$this->smarty->assign_by_ref('endform', $temp1);
I don't understand if this error comes from my system, or if it belongs to the comments module ? Would you have a general solution to avoid this error ?

Re: Assign_by_ref error with Comments Module

Posted: Tue Jan 22, 2008 4:29 pm
by jobi
Is there nobody who could help me ? I really don't understand how I could avoid the errors which come from assign_by_ref function…