Fullscreen
Loading...
 
Skip to main content

Smarty warnings being shown when error reporting is off (was: Excluded categories issue in admin panel)

Status
Closed
Subject
Smarty warnings being shown when error reporting is off (was: Excluded categories issue in admin panel)
Category
  • Error
Feature
Admin Interface (UI)
Resolution status
New
Submitted by
Marc Laporte
Volunteered to solve
nkoth
Lastmod by
Nelson Ko
Rating
(0)
Description

Seen at: https://branding.tiki.org/tiki-admin.php?page=searchQuestion

Copy to clipboard
Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/local/branding.tiki.org/www/templates_c/ffee1decad4274a7207219e1b5c29ec879c6ef23.file.shared-flags.tpl.php on line 61 Call Stack #TimeMemoryFunctionLocation 10.00151062168{main}( )../tiki-admin.php:0 20.480828653752Smarty_Tiki->display( )../tiki-admin.php:687 30.480828654408Smarty_Internal_TemplateBase->display( )../smarty.php:261 40.480828654568Smarty_Tiki->fetch( )../smarty_internal_templatebase.php:374 50.480928657200Smarty_Tiki->fetch( )../smarty.php:169 60.480928657440Smarty_Internal_TemplateBase->fetch( )../smarty.php:194 70.483129066568content_526d6655a42833_95209110( )../smarty_internal_templatebase.php:180 80.522629819344Smarty_Internal_Template->getSubTemplate( )../en18b660cf6951a7bde07357befc24a4e5^0b68810b83d274feeef37f17fa11a02daa468f3e.file.tiki-admin.tpl.php:273 90.522629848648Smarty_Internal_TemplateBase->fetch( )../smarty_internal_template.php:286 100.523930090424content_526d6c33904fa7_01674674( )../smarty_internal_templatebase.php:180 110.606233752648smarty_function_preference( )../en18b660cf6951a7bde07357befc24a4e5^2f839e7ac915760773273f738f44946d9190e15c.file.include_search.tpl.php:121 120.607033767840Smarty_Internal_TemplateBase->fetch( )../function.preference.php:80 130.607533842240content_526d666807aa49_83245061( )../smarty_internal_templatebase.php:180 140.607633843240Smarty_Internal_Template->getSubTemplate( )../eb55ed0463a99692426fd50fb96c614846cdaaff.file.text.tpl.php:54 150.607633872968Smarty_Internal_TemplateBase->fetch( )../smarty_internal_template.php:286 160.607833917888content_526d6667d67489_17610669( )../smarty_internal_templatebase.php:180 170.608133918264htmlspecialchars ( )../ffee1decad4274a7207219e1b5c29ec879c6ef23.file.shared-flags.tpl.php:61 " />
Solution

should be fixed in r48345. FIX Since smarty 3.1 error_reporting is not respected by Smarty once there is a custom error handler and this is to prevent all smarty errors and warnings from being logged or displayed when display_errors in on on some server setups

backported to tiki 11 r48346

Importance
8
Easy to solve?
9
Priority
72
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4820
Created
Monday 28 October, 2013 00:23:03 UTC
by Marc Laporte
LastModif
Sunday 24 November, 2013 17:08:15 UTC


Show PHP error messages