Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.1.0

Bug #9152 Tiki Wikilink renderer error
Submitted: 2006-10-24 16:13 UTC
From: varga dot attila dot 75 at freemail dot hu Assigned: justinpatrin
Status: Closed Package: Text_Wiki_Tiki (version 0.0.1)
PHP Version: 5.1.6 OS: Windows
Roadmaps: (Not assigned)    
Subscription  


 [2006-10-24 16:13 UTC] varga dot attila dot 75 at freemail dot hu (Attila Varga)
Description: ------------ I tried to transform Mediawiki pages to TikiWiki. In the class Text_Wiki_Render_Tiki_Wikilink the token function starts like this: if ($options['type'] == 'start') { but the $options array has only the following keys: - 'page' - 'anchor' - 'text' So I got the next message: PHP Notice: Undefined index: type in c:\php\PEAR\Text\Wiki\Render\Tiki\Wikilink.php on line 20 and the wikilinks in the pages were missing. Test script: --------------- I solved the problem by changing the function to this: function token($options) { return '(('.$options['page']. (strlen($options['anchor']) ? '#'.$options['anchor'] : ''). (strlen($options['text']) && $options['page'] != $options['text'] ? '|'.$options['text'] : ''). '))'; } Some expert should solve the problem the right way, and create a new version.

Comments

 [2007-06-01 15:51 UTC] justinpatrin (Justin Patrin)
Looks like the mediawiki parser doesn't support the extended multi-token syntax for wikilinks. The Wikilink renderer for Tiki needs to be updated to be backwards compatible.
 [2009-06-10 01:47 UTC] rodrigosprimo (Rodrigo Sampaio Primo)
The following patch has been added/updated: Patch Name: tiki_render_wikilink_single_token Revision: 1244580433 URL: http://pear.php.net/bugs/patch-display.php?bug=9152&patch=tiki_render_wikilink_single_token&revision=1244580433&display=1
 [2009-06-10 02:08 UTC] rodrigosprimo (Rodrigo Sampaio Primo)
Hi Justin, could you give some feedback on the patch I submitted? I would like to know if there is a better approach to make the Tiki render backwards compatible with the single token syntax for wikilinks. Thanks, Rodrigo.
 [2009-06-10 04:51 UTC] justinpatrin (Justin Patrin)
-Status: Open +Status: Closed -Assigned To: +Assigned To: justinpatrin
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.
 [2009-06-13 03:22 UTC] rodrigosprimo (Rodrigo Sampaio Primo)
Justin, there is a sintax error on line 31 of the file Text/Wiki/Render/Tiki/Wikilink.php. Thanks, Rodrigo.
 [2009-06-13 06:15 UTC] justinpatrin (Justin Patrin)
Fixed. Thanks.