Sie sind nicht angemeldet.

1

Freitag, 30. März 2018, 00:27

XML parse error after upgrading to pr15

Hello,

I have just tried to do the upgrade from pr14 to pr15 but without success.
I'm including a config file in my xml, like this:
<include url="list.xml" />
The included file is loaded from http://zbooy.pl/giga/list.xml and looks like this:

<panoramas>
<pano name="wysoki-wierch-zachod" title="Wysoki Wierch" />
<pano name="waksmundzki-wierch" title="Waksmundzki Wierch" />
[.......]
</panoramas>

It's just a basic config file that worked just fine until today; now it stops with the XML parsing error.
The file passes XML validation, of course. If I omit the include, everything else is OK.

I have reverted krpano,js to pr14 and everything is working again. Any ideas?

zbooy

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »zbooy« (30. März 2018, 08:23)


Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

2

Freitag, 30. März 2018, 09:32

Add krpano tags :

<krpano>
<panoramas>
<pano name="wysoki-wierch-zachod" title="Wysoki Wierch" />
<pano name="waksmundzki-wierch" title="Waksmundzki Wierch" />
[.......]
</panoramas>
</krpano>

3

Freitag, 30. März 2018, 11:15

Thank you very much, this did the trick!

It is certainly stated in the docs:
<krpano>
This is the main / root element of a krpano xml file.
All further xml elements need to be defined within this element.


Although it seems this was not enforced until pr15 version.

zbooy

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

4

Freitag, 30. März 2018, 11:44

Hello zbooy

I recommend remove a dblclick.js plugin. It is blocked by adblock.

best regards
Piotr
»spacerywirtualne« hat folgendes Bild angehängt:
  • Zrzut ekranu 2018-03-30 11.39.38.png
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

5

Freitag, 30. März 2018, 22:08

Hi,

that's related to this change in version 1.19-pr15:

Zitat

Improved xml parsing error checking for all browsers.

Some browser were 'silently failing' on some invalid xml files - that means where was no error on the xml parsing, even if there should have been one. So to check such case there is now also a check for a <krpano> xml root element - and normally there should have been always one there ;-).



I recommend remove a dblclick.js plugin. It is blocked by adblock.
Right, the name 'dblclick' is also used by some ad-scripts and therefore blocked by ad-blockers.
But simply renaming the file should already work.

Or better - use a xml-only solution for double-click support:
https://krpano.com/forum/wbb/index.php?p…74482#post74482

That solution works also on touch-devices and avoids some browser-compatibility problems.

Best regards,
Klaus

6

Freitag, 30. März 2018, 22:11

Ah yes, now there is a native ondoubleclick event so no need for the plugin. Removed; thanks for the suggestion *thumbsup*