Assign_by_ref error with Comments Module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
jobi
New Member
New Member
Posts: 6
Joined: Wed Sep 12, 2007 1:41 pm
Location: Tours - France

Assign_by_ref error with Comments Module

Post 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 ?
CMSMS 1.2.3 - PHP 5.0.5 - MySQL 4.1.12 - Apache 2
Blogs 0.3.0b1 - CGExtensions 1.3 - CMSMailer 1.73.12 - Comments 1.8.2 - Questions 1.0.1
User avatar
jobi
New Member
New Member
Posts: 6
Joined: Wed Sep 12, 2007 1:41 pm
Location: Tours - France

Re: Assign_by_ref error with Comments Module

Post 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…
CMSMS 1.2.3 - PHP 5.0.5 - MySQL 4.1.12 - Apache 2
Blogs 0.3.0b1 - CGExtensions 1.3 - CMSMailer 1.73.12 - Comments 1.8.2 - Questions 1.0.1
Post Reply

Return to “Modules/Add-Ons”