From: <ge...@en...> - 2012-04-30 22:39:27
|
Hi By trial and error I'm narrowing down the situation where this occurs (and now at r41227) Any page that has a {trackerlist} plugin that uses a wiki template where the wiki template itself has {trackerlist} plugins that themselves use wiki templates generates the error. The error message is repeated for each use of the secondary {trackerlist} plugin in the wiki template. If the {trackerlist} plugin in the wiki template does not itself use a wiki template then no error message is shown. This may be a bit hard to follow for anyone that doesn't use 'nested' plugins but this is one of the most powerful capabilities in Tiki that has worked well from Tiki6 onwards - but is now broken. Hope someone can see what is happening here Thanks geoff _____ From: geoff@enmore [mailto:ge...@en...] Sent: 30 April 2012 22:59 To: 'Tiki developers' Subject: Re: [Tiki-devel] Tiki9 r41194 - odd error showing in wiki pagecontent area Hi This is getting odder - the error messages are now showing when logged in as admin - not sure why they were not before. This suggest that whatever is happening is being caused by recent changes since I have been exhaustively testing with this site since we branched and did not see this before. I'm assuming we didn't move up to Smarty 3.1 after we branched so I'm not sure that Jonny's suggestion of a Smarty 3.1 regression feels right. Are we still making significant changes even though we are supposed to be frozen? Does anyone have any suggestions ? I wouldn't want to go to an alpha with this happening geoff _____ From: geoff@enmore [mailto:ge...@en...] Sent: 30 April 2012 09:27 To: 'Tiki developers' Subject: RE: Tiki9 r41194 - odd error showing in wiki page content area I forgot to say that this is a regression from 8.x - where the exact same code runs perfectly. In Tiki9 - just to be clear - the page is displayed OK, but this error message is displayed at the top of the content to all non-admin users and is displayed whether I have general php error reporting switched on or not All the pages with this problem just have a {trackerlist} plugin with parameters for a specific filter that displays using a wiki template (pretty tracker). The wiki template is relatively complex and itself has a number of {trackerlist} plugins where their parameters are set by the field values from the first {trackerlist} 'call'. Other pages with simpler trackerlist/wiki template set ups do not generate this error Looking at the section of Smarty.class.php code (shown below) - line 693 is the last line of the function described as the "<<magic>> Generic setter" so the error message is being generated because $allowed[$name] is apparently not being set for the cases where the user is not admin /** * <<magic>> Generic setter. * * Calls the appropriate setter function. * Issues an E_USER_NOTICE if no valid setter is found. * * @param string $name property name * @param mixed $value parameter passed to setter */ public function __set($name, $value) { $allowed = array( 'template_dir' => 'setTemplateDir', 'config_dir' => 'setConfigDir', 'plugins_dir' => 'setPluginsDir', 'compile_dir' => 'setCompileDir', 'cache_dir' => 'setCacheDir', ); if (isset($allowed[$name])) { $this->{$allowed[$name]}($value); } else { trigger_error('Undefined property: ' . get_class($this) . '::$' . $name, E_USER_NOTICE); } } Hope that helps someone to understand what this issue is. Thanks geoff _____ From: geoff@enmore [mailto:ge...@en...] Sent: 29 April 2012 23:29 To: 'Tiki developers' Subject: Tiki9 r41194 - odd error showing in wiki page content area Hi - this is a strange one: the following error is showing at the top of some specific wiki pages when viewed by Anonymous or any non-admin logged in user Notice: Undefined property: Smarty_Tiki::$security in /home/floraladmin/fltest9.enmoreservices.com/lib/smarty/libs/Smarty.class.ph p on line 693 But it does not show when logged in as admin. Can anyone shed any light on this? Thanks geoff _____ No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.1913 / Virus Database: 2411/4966 - Release Date: 04/29/12 _____ No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.1913 / Virus Database: 2411/4967 - Release Date: 04/29/12 _____ No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.1913 / Virus Database: 2411/4969 - Release Date: 04/30/12 _____ No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.1913 / Virus Database: 2411/4969 - Release Date: 04/30/12 |