Indefero

Issue 811: Custom page fail in a non debug mode

Reported by مصطفی برمشوری, Jun 18, 2012

When I desable debug mode in indefero, and enable "Costum forge 
page" in "Forge Management", then click on 
"Home" url bellow error will appear in Home page:
Fatal error: Call to undefined function 
IDF_Template_safePregReplace() in 
/home/www/indefero/src/IDF/Template/MarkdownForge.php on line 37 
If enable debug mode, error will disappear!

Comment 1 by Keith Constable, May 13, 2013

The fix for this is one line:

--- MarkdownForge.php.bak       2013-05-13 15:33:22.556501055 -0400
+++ MarkdownForge.php   2013-05-13 15:34:20.644737513 -0400
@@ -22,6 +22,7 @@
 # ***** END LICENSE BLOCK ***** */

 Pluf::loadFunction('Pluf_Text_MarkDown_parse');
+Pluf::loadFunction('IDF_Template_safePregReplace');

 class IDF_Template_MarkdownForge extends Pluf_Template_Tag
 {

Created: 1 year 1 day ago by مصطفی برمشوری

Updated: 1 month 6 days ago

Status: New

Followed by: 1 person

Labels:
Type:Defect
Priority:Medium