Assign_by_ref error with Comments Module
Posted: Mon Jan 21, 2008 8:47 am
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.
I've done some tests, and it may correct when I use this following lines of code :
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 ?
Code: Select all
Fatal error: Only variables can be passed by reference in
chemin_sur_serveur/modules/Comments/action.default.php on line 265
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);