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

Complete Uninstall to Work in J4??
We have recently updated a site from Joomlav3 to v4 (4.4.2). Now when we go to m...
7 Replies
Posted on Tuesday, 30 April 2024
Info about CMigrator for Joomla
Hi i need to import a few thousand articles from a site made in wordprres to a ...
0 Replies
Posted on Tuesday, 07 May 2024
  • New
    • #CMigator
    Error on android phone
    Why its working good on Computer and if i try it with smartphones the map dosent...
    0 Replies
    Posted on Tuesday, 07 May 2024
  • New
  • Bug with front-end submission and table not having
    Hi, i think i found a problem. When trying to edit a hotspot from front-end ...
    3 Replies
    Posted on Wednesday, 15 March 2023
    Question regarding custom fields
    How do I access custom fields after I have created them?...
    1 Replies
    Posted on Wednesday, 24 April 2024
    • #custom fields