Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

popup.tpl XML Error Using default template (popupDefaultContent) #1650

Closed
arno974 opened this issue May 22, 2020 · 2 comments
Closed

popup.tpl XML Error Using default template (popupDefaultContent) #1650

arno974 opened this issue May 22, 2020 · 2 comments

Comments

@arno974
Copy link

arno974 commented May 22, 2020

What is the bug?

In firefox and Chrome, if I use the QGIS Popup option my browser (firefox) returns the XML error (that causes a Javascript error) below :

Erreur d’analyse XML : données incompréhensibles après l’élément de document
Emplacement : http://localhost/lizmap/index.php/view/map/?repository=my_repo&project=my_project
Numéro de ligne 2, Colonne 5 : map:2:5
TypeError: layer.addFeatures is not a function

By looking at the template (popup.tpl) it looks like to be valid the dom section should be integrated inside a node (ex:

/div>) :

<div>
    <h4>{$layerTitle}</h4>
    <div class="lizmapPopupDiv">
    {$popupContent}
    </div>
</div>

Steps to reproduce the issue

  1. In firefox or chrome open a Lizmap project with a layer with a QGIS popup
  2. Click on a feature
  3. XML and Javascript error are displayed

Environment

  • Lizmap version: tested on 3.3.0 and 3.4.0-pre
  • QGIS Server version: ≥ 3.0
  • QGIS Project version: ≥ 3.0
  • OS : Ubuntu
  • Browser (Firefox, Chrome…): Firefox & Chrome
@arno974 arno974 added the bug label May 22, 2020
@Gustry
Copy link
Member

Gustry commented Jul 18, 2023

Is this still valid ?

If I remember correctly, you are adding a QGIS server plugin at that time updating the GetFeatureInfo ?

@arno974
Copy link
Author

arno974 commented Jul 20, 2023

With a newer Lizmap version, there is no error anymore.

@arno974 arno974 closed this as completed Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants