<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>sprintf warning when saving page</title> 
  <pubDate>Wed, 08 Apr 2026 17:39:13 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7801</link> 
  <atom:link rel="self" type="application/rss+xml" title="sprintf warning when saving page" href="https://bugs.horde.org/ticket/7801/rss" /> 
  <description>sprintf warning when saving page</description> 
 
   
   
  <item> 
   <title>Horde: 3.3.3-cvs

Wicked: 1.0-cvs



This happens when I edi</title> 
   <description>Horde: 3.3.3-cvs

Wicked: 1.0-cvs



This happens when I edit a page and click &quot;save&quot;:



( ! ) Warning: sprintf() [function.sprintf]: Too few arguments in /usr/share/pear/Text/Wiki/Render/Xhtml/Wikilink.php on line 134

Call Stack

#	Time	Memory	Function	Location

1	0.0008	142480	{main}( )	../display.php:0

2	0.0402	3165472	Page-&gt;render( )	../display.php:136

3	0.0402	3165472	Page-&gt;display( )	../Page.php:508

4	0.0402	3165472	StandardPage-&gt;displayContents( )	../Page.php:358

5	0.0459	3563592	Text_Wiki-&gt;transform( )	../StandardPage.php:102

6	0.0550	4017424	Text_Wiki-&gt;render( )	../Wiki.php:918

7	0.0576	4149312	preg_replace_callback ( )	../Wiki.php:1012

8	0.0582	4150768	Text_Wiki-&gt;_renderToken( )	../Wiki.php:0

9	0.0582	4150768	Text_Wiki_Render_Xhtml_Wikilink-&gt;token( )	../Wiki.php:1128

10	0.0583	4150768	sprintf ( )	../Wikilink.php:134



Screenshot: http://img71.imageshack.us/img71/7581/wickedwarningwd8.jpg</description> 
   <pubDate>Tue, 23 Dec 2008 12:07:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7801#t51416</link> 
  </item> 
   
  <item> 
   <title>It´s actually preventing me from opening internal links now</title> 
   <description>It´s actually preventing me from opening internal links now.



I´m getting the same warning 12 times when I click on a internal link and instead of being asked to create the page, I return to the same page.



I´m using MediWiki as [wicked][format].



</description> 
   <pubDate>Tue, 23 Dec 2008 13:02:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7801#t51417</link> 
  </item> 
   
  <item> 
   <title>Attached is the page generating the warnings.</title> 
   <description>Attached is the page generating the warnings.</description> 
   <pubDate>Tue, 23 Dec 2008 13:09:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7801#t51418</link> 
  </item> 
   
  <item> 
   <title>The trouble is not with the page I attached.



The problem </title> 
   <description>The trouble is not with the page I attached.



The problem is the &quot;referrer&quot; or &quot;page name&quot;. I was using &quot;Tributário&quot; in the previous page, like this:



[[Tributário]]



Then, when you click on it, it turns to &quot;Tribut%C3%A1rio&quot; and the sprintf lines get like this:



sprintf(/wicked/display.php?page=%s&amp;referrer=Tribut%C3%A1rio, Parcelamento_Generico);



(Line 134 - /usr/share/pear/Text/Wiki/Render/Xhtml/wikilink.php)



Then, I think php complains about the lack of arguments due to the &quot;%&quot; signs...



If I use &quot;Tributario&quot; instead of &quot;Tributário&quot; as the page name, then it works...



In other words, I can´t create wiki links with special characters like á, é, ó etc., because the wiki links on the created pages will be broke.



I don´t know if it´s not a wicked issue and I´m sorry in advance if this is the case. Please provide orientation so I can report the bug on the right place.



Thanks</description> 
   <pubDate>Tue, 23 Dec 2008 14:24:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7801#t51420</link> 
  </item> 
   
  <item> 
   <title>The bug is in text_wiki, a PEAR package, not in Wicked.</title> 
   <description>The bug is in text_wiki, a PEAR package, not in Wicked.</description> 
   <pubDate>Tue, 23 Dec 2008 16:11:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7801#t51423</link> 
  </item> 
   
  <item> 
   <title>I&#039;ve filed a bug report against the PEAR package:



http://</title> 
   <description>I&#039;ve filed a bug report against the PEAR package:



http://pear.php.net/bugs/bug.php?id=15385



A temporary workaround would be to change line 134 of Wikilink.php to:



$href = sprintf(substr_replace($href, ereg_replace(&quot;%&quot;, &quot;%%&quot;,substr($href, strpos($href, &#039;%&#039;)+1)),strpos($href, &#039;%&#039;)+1),$this-&gt;urlEncode($page));



This will cause every % sign after the first one to be escaped (%%).



</description> 
   <pubDate>Tue, 23 Dec 2008 22:33:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7801#t51431</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
