1.5.5 Export as XML-File "Wrong parameter count for tri

Please report bugs here!

Moderator: Thorsten

Post Reply
Will
Posts: 3
Joined: Wed Dec 28, 2005 1:27 am

1.5.5 Export as XML-File "Wrong parameter count for tri

Post by Will »

In version 1.5.5 of phpMyFAQ, when you view an article and attempt to export it as an XML file (using the link at the bottom of the article page) the following error is shown:

Code: Select all

Warning: Wrong parameter count for trim() in /home/XXX/public_html/inc/functions.php on line 998

Warning: Cannot modify header information - headers already sent by (output started at /home/XXX/public_html/inc/functions.php:998) in /home/XXX/public_html/xml.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /home/XXX/public_html/inc/functions.php:998) in /home/XXX/public_html/xml.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home/XXX/public_html/inc/functions.php:998) in /home/XXX/public_html/xml.php on line 36
v1.5.5 has the following in line 998 of functions.php,

Code: Select all

$xml_content = trim(htmlspecialchars(wordwrap($xml_content, 60)), ENT_NOQUOTES, $PMF_LANG['metaCharset']);
v1.5.3 has the equivalent,

Code: Select all

$xml_content = trim(htmlspecialchars(stripslashes(wordwrap($xml_content, 60)), ENT_NOQUOTES, $PMF_LANG['metaCharset']));
Amending the line in v.1.5.5 to

Code: Select all

$xml_content = trim(htmlspecialchars(wordwrap($xml_content, 60), ENT_NOQUOTES, $PMF_LANG['metaCharset']));
seems to fix the problem.

:)
Thorsten
Posts: 15743
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Will,

thanks for your bug report. This bug is already fixed in CVS and you can get the fix then you'll install the stable snapshot.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply