nblgeoweb VIP
Total posts: 178
15 Июнь 2015 15:57

I think there is a problem with the xml formatter (comes with Cobalt 8.655). When I try to use it for a record listing, I get the following error message in Chrome:

XML Parsing Error: XML or text declaration not at start of entity
Location:  http://geoweb/kl?formatter=xml 
Line Number 1, Column 2: <?xml version="1.0" encoding="UTF-8"?><section>
-^

I get a similar error in Firefox. It seems like there is a space before the start of the xml declaration that is causing the problem. Removing the space fixes it.

Последние изменения: 19 Июнь 2015


Sergey
Total posts: 13,748
16 Июнь 2015 05:29

But where this space from? Probably some other plugin or something produce it.


nblgeoweb VIP
Total posts: 178
16 Июнь 2015 18:36

hmmm. I'm not sure. I'll dig some more. I've been looking at your code and I don't see any way for it to be adding the space.


Sergey
Total posts: 13,748
17 Июнь 2015 06:23

Most probable reason is that in some of PHP files, someone use space before <?php at the beginning of the file. This is common mistake of new developers. Try to saerch throu all file for <?php at the beginning of the file. I think you will have to use RegEx.


nblgeoweb VIP
Total posts: 178
19 Июнь 2015 12:44

Thanks for the suggestion, Sergey. I'll see what I can find.

Работает на Cobalt