Loading...
 
Skip to main content

Tiki SMARTY Plugin no longer works with 'eval' option

Status
Closed
Subject
Tiki SMARTY Plugin no longer works with 'eval' option
Version
10.x
11.x
11.x Regression
Category
  • Regression
Feature
Wiki Plugin (extends basic syntax)
Resolution status
Fixed or Solved
Submitted by
Geoff Brickell
Volunteered to solve
manivannans
Lastmod by
Geoff Brickell
Rating
(0)
Description

Since Tiki10 the Tiki SMARTY Plugin, using the 'eval' option to simply display a smarty variable, no longer works because the underpinning smarty function.eval.php is no longer part of the Tiki distribution - the SMARTY Plugin code checks for the availability of function.eval.php in either lib/smarty/libs/plugins/ or the lib/smarty_tiki/ folders and gives an error message "Incorrect parameter"  if it is not found. Its removal is probably due to the move Smarty 3  but it is not clear whether there is Smarty 3 version of eval available. The Tiki 9 version of function.eval.php does not work in 10/11/trunk (gives fatal errors) so this doesn't give us a 'quick fix'.  

Solution needed to be able to 'eval' and display any smarty variable type not just strings

Solution

I had fixed this issue.

Please check this commit id: 48352

fixed - thanks

Importance
6
Easy to solve?
5
Priority
30
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4527
Created
Tuesday 21 May, 2013 15:31:39 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Sunday 17 November, 2013 01:21:44 UTC


Show PHP error messages