×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Invalid xml declaration

Invalid xml declaration 15 years 9 months ago #239

  • Jeff
  • Jeff's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
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.

Invalid xml declaration 15 years 9 months ago #245

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Well, can you try it with another language file.
If you make changes to the language file be sure to save it in UTF-8. Some text editor programs are saving characters that are not visible for you, but are making problems.
With PSPad or eclipse you are always staying on the good side.

Invalid xml declaration 15 years 9 months ago #248

  • Jeff
  • Jeff's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
I changed the language to spanish and tried, and have the same problem. I didn't change anything in that language file.

Here's one of the pages that gets this error: projectlubbock.com/project-lubbock/17-up...come-project-lubbock
The comments are getting posted, but a user clicks the send buton, they get that error.


Thanks,
Jeff

Invalid xml declaration 15 years 9 months ago #250

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081

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.


Did you edit the language file or not?
Please change the language file to english and also change to a standart template, that is not edited from you. If it is working, then you made something wrong. If it is still not working, then please provide me with a super admin access.

Invalid xml declaration 15 years 9 months ago #258

  • Jeff
  • Jeff's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
I did edit the english language file and changed one word. I use Dreamweaver which is set to save in UTF-8. I did change a couple of colors in the css.css file. That is the extent of what I did to the files themselves.
I had backups of the files that I reuploaded to the site and the problem was still there. I reinstalled and the problem still persisted. So I noticed the complete uninstall setting. I changed that and after uninstalling I went through and manually deleted a couple of files left in plugins.
I reinstalled and the problem was gone. After making a few settings changes, I figured out what caused the problem. The Include/Exclude setting has to stay set on Include. If I changed it to Exclude, I would get the same problem. Changing it back didn't fix the problem, only a fresh install would. I figured this out after uninstalling and installing Joomlacomment a total of 8 times, and making one change at a time. Then leaving test comments, and when I changed this setting it gave me the error.
I proved this was the problem by doing it 3 times and had the same results. I can't tell you why it did that, but that is the setting change that had been giving me grief. I am now leaving it set to include and just picking the sections I want to include rather than those I want to exclude from now on.

Invalid xml declaration 15 years 9 months ago #261

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hi Jeff,
I'm happy that your problem is solved.
However I can not confirm your test results. For me the exclude feature is working as it should work.

Invalid xml declaration 14 years 9 months ago #5016

  • waleed
  • waleed's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
I face the same exact problen but the solution of changing Exclude/Include did not work for me.

and i were working with Exclude without any problem, but the problem happened after i made two things, i upgraded to 1.5.12 and transfered to new hosting, i'm not sure where could be the problem.

could any one help
  • Page:
  • 1
Time to create page: 0.269 seconds