1. Jeff
  2. Bug Report
  3. Friday, 18 July 2008
  4.  Subscribe via email
I just installed Joomlacomment 3.26 on my site, and the only changes I made were to the css to give it a dark background, and the language to change the text on the Send button to Submit.

When I tried to test it I keep getting a popup with an error about an "Invalid xml declaration."

Here's what the popup says:


error is line 3 position 3 >>ml version="1.0" standalone="yes"?><post><id>5</id><after>-1</after><published>1</published><noerror><debug></debug><body><![CDATA[


Looked around and found the code in comment.class.php starting on line 1223

           $xml = '<?xml version="1.0" standalone="yes"?>';
$xml .= '<post>';
$xml .= '<id>' . $item['id'] . '</id>';
if ($this->_tree && isset($item['after'])) $xml .= '<after>' . $item['after'] . '</after>';
$xml .= '<published>' . $item['view'] . '</published>';
$xml .= '<noerror>' . $item['noerror'] . '</noerror>';
$xml .= '<debug>' . $item['debug'] . '</debug>';
if ($item['view']) {
$html = JOSC_utils::cdata(JOSC_utils::filter($this->encodeData_Charset($this->insertPost($item, ''))));
$xml .= "<body>$html</body>";


I just can't figure out where the error is. Can anyone possibly give me a hand on this one please.
Responses (6)


There are %s replies to this question. If you want to see them you need a valid subscription.
If you have a valid subscription, please login now.
Visit store now
Powered by EasyDiscuss for Joomla!