CMS MADE SIMPLE FORGE

CGFeedback

 

[#6600] Undefined method: prepare_smarty_vars()

avatar
Created By: Deleted User (deleteduser_11200)
Date Submitted: Fri Jun 24 08:39:14 -0400 2011

Assigned To:
Version: 1.3.5
CMSMS Version: None
Severity: None
Resolution: Fixed
State: Closed
Summary:
Undefined method: prepare_smarty_vars()
Detailed Description:
After posting a new message the page blanks out. Apache error log shows:

[Fri Jun 24 14:28:43 2011] [error] [client XXX.XXX.XXX.XXX] PHP Fatal error: 
Call to undefined method CGFeedback::prepare_smarty_vars() in
/home/shared/web/cmsms/public/modules/CGFeedback/lib/class.cgfb_comment_notifier.php
on line 77, referer: http://cmsms.local.lan/


[CGFeedback]$ find ./ -type f | xargs grep prepare_smarty_vars 
./lib/class.cgfb_comment_notifier.php:  private static function
prepare_smarty_vars(cgfb_comment& $comment,$user = 1)
./lib/class.cgfb_comment_notifier.php:    self::prepare_smarty_vars($comment,0);
./lib/class.cgfb_comment_notifier.php:    $this->prepare_smarty_vars($comment);



History

Comments
avatar
Date: 2011-06-24 08:45
Posted By: Deleted User (deleteduser_11200)

To fix:

vim ./lib/class.cgfb_comment_notifier.php 
change:  $this->prepare_smarty_vars($comment); 
into: self::prepare_smarty_vars($comment);

      
avatar
Date: 2011-09-01 19:49
Posted By: John Beatrice (mww)

I can confirm the bug.
CMSMS 1.9.4.2
CGFeedback 1.3.5

Fix by Arnoud resolved the issue. (thanks!)
      
Updates

Updated: 2012-06-22 10:36
state: Open => Closed

Updated: 2011-09-06 23:02
resolution_id: 5 => 7
cmsms_version_id: => -1

Updated: 2011-06-24 08:39
summary: Undined method: prepare_smarty_vars() => Undefined method: prepare_smarty_vars()
resolution_id: => 5