geostyler / geostyler-geoserver-plugin

GeoStyler UI for the GeoServer
GNU General Public License v2.0
8 stars 4 forks source link

geostyler geoserver plugin 1.3.0 / 1.3.2 does not start #140

Closed wumpz closed 3 months ago

wumpz commented 4 months ago

within the style window I see some GeoStyler is starting using browser debugger I see some undefined useages within a forEach loop

jansule commented 4 months ago

Thanks for the info. @KaiVolland can you have a look at that?

KaiVolland commented 4 months ago

Please check out v1.3.1.

wumpz commented 4 months ago

Checked out version v1.3.2 but got another error:

wfsDataParser-ver-F01AD2C6AA7062E180003154A5AE61EE.js:2 @babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning.
(anonym) @ wfsDataParser-ver-F01AD2C6AA7062E180003154A5AE61EE.js:2
org.geoserver.wms.we…ata.StyleEditPage:1 Uncaught (in promise) Could not parse XML document: TypeError: Cannot read properties of undefined (reading 'element')

Maybe it has to do with other plugins like ysld, CSS plugins, ... installed?

Tested on Chrome and Edge (same engine --> same problem).

GeoStyler stops loading here: image

wumpz commented 3 months ago

To be complete, I have tested this with a GeoServer including these plugins:

all matching with GeoServer Version 2.25.1.

KaiVolland commented 3 months ago

Hmm okay. I'll give this another try in the next days. Latest at the Codesprint next week.

KaiVolland commented 3 months ago

I debugged a bit into it and i guess the error org.geoserver.wms.we…ata.StyleEditPage:1 Uncaught (in promise) Could not parse XML document: TypeError: Cannot read properties of undefined (reading 'element') is related to this part of the wfs-parser.

I created a PR to make this more failsafe: https://github.com/geostyler/geostyler-wfs-parser/pull/588

I'll create a new release of the plugin once the wfs parser is updated.

KaiVolland commented 3 months ago

@wumpz try again please: https://github.com/geostyler/geostyler-geoserver-plugin/releases/tag/v1.3.3 :crossed_fingers: :see_no_evil:

wumpz commented 3 months ago

@KaiVolland Now GeoStyler starts. However, I have some remarks:

KaiVolland commented 3 months ago

This is indeed a problem. I created a new issue as this is a diffrent topic: #156