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

Last questions

Set number of hotspots / user groups
Hi, I'm working with Hotspots for my new website and I love it! After trying ...
0 Replies
Posted on Monday, 31 March 2025
  • New
  • J5 compatibility for Hotspots
    Hi guys, Just started to update my old J3x website. Is there J5 compatibility p...
    1 Replies
    Posted on Monday, 24 February 2025
    • #Hotspots
    • #hotspots Joomla 5
    Text size in the comment input form
    Hello. How can I increase the font size in the comment input field? For examp...
    0 Replies
    Posted on Wednesday, 26 February 2025
    • #CComment 6
    Problem with enlarged image
    Hello. When you click on the image in the comments, it does not appear in the ce...
    1 Replies
    Posted on Wednesday, 26 February 2025
    Black square instead of images in comments
    Hello. In comments instead of images I see black squares. Here is an example. h...
    0 Replies
    Posted on Wednesday, 26 February 2025
    • #ccoment pro