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

[Bug]: Error when displaying the tooltip as of Lizmap 3.8 #4926

Open
1 task done
guenterw opened this issue Nov 1, 2024 · 14 comments
Open
1 task done

[Bug]: Error when displaying the tooltip as of Lizmap 3.8 #4926

guenterw opened this issue Nov 1, 2024 · 14 comments
Assignees

Comments

@guenterw
Copy link

guenterw commented Nov 1, 2024

What is the bug? (in English)

when activating the display of tooltips in Lizmap (3.8, 3.9, 3.10) the error “An error prevented to load the tooltip data” appears.
See https://cx21-8.webgis.biz/index.php/view/map?repository=buergergis8&project=bauleitplanung_3_8

In version 3.7 it works perfectly with identical data
https://cx21-7.webgis.biz/index.php/view/map?repository=buergergis7&project=bauleitplanung_3_7

Steps to reproduce the issue

image

Versions, safeguards, check summary etc

Versions :

  • Lizmap Web Client : 3.8.3-pre.8030
  • Lizmap plugin : 4.4.4
  • QGIS Desktop : 3.34.11
  • QGIS Server : 3.34.12
  • Py-QGIS-Server : not used
  • QGIS Server plugin atlasprint : 3.4.1
  • QGIS Server plugin lizmap_server : 2.11.2
  • QGIS Server plugin wfsOutputExtension : 1.8.2
List of Lizmap Web Client modules :
* altiProfil : 0.5.5 * altiProfilAdmin : 0.5.5
List of safeguards :
* Mode : normal
* Allow parent folder : yes
* Number of parent : 2 folder(s)
* Prevent other drive : no
* Prevent PG service : yes
* Prevent PG Auth DB : yes
* Force PG user&pass : yes
* Prevent ECW : yes

Check Lizmap plugin

  • I have done the step just before in the Lizmap QGIS desktop plugin before opening this ticket. Otherwise, my ticket is not considered valid and might get closed.

Operating system

Ubuntu 24.04. (Server), Win10

Browsers

Chrome

Browsers version

130.0.6723.92

Relevant log output

No response

@guenterw guenterw added the bug label Nov 1, 2024
@Gustry
Copy link
Member

Gustry commented Nov 4, 2024

Just quickly looking on GitHub, the error

An error prevented to load the tooltip data

comes from tooltip.loading.error

lizMap.addMessage(lizDict['tooltip.loading.error'], 'danger', true);

About this code, the message must have a higher warning :

console.log(Tooltip layer '${layerName}' could not be loaded.);

Any error in your QGIS Server logs ?

@guenterw
Copy link
Author

guenterw commented Nov 4, 2024

No, there are no entries in the QGIS error log. Neither in the Lizmap error log (backend).
But in the Apache error.log there is close to this entry:
QFont::fromString: Invalid description '(empty)'

The error also occurs in V3.9 and 3.10

@Antoviscomi
Copy link
Contributor

Antoviscomi commented Nov 5, 2024

@Gustry @guenterw I confirm this behaviour even in mine 3.8.2 LWC version, with no entry to logs details, only in browser console there is:
Tooltip layer 'psc_cetraro_prova_cat' could not be loaded.


Schermata del 2024-11-05 13-21-34

@Gustry
Copy link
Member

Gustry commented Nov 5, 2024

I'm not sure what is happening, but it works with the test data : https://sandbox.lizmap.com/lizmap_3_8/index.php/view/map?repository=tests&project=tooltip

@Gustry
Copy link
Member

Gustry commented Nov 5, 2024

I think the issue is when you use the first tab in the plugin when you set the tooltips.
No error occurs if you use the HTML template. Someone can confirm ?

@Antoviscomi
Copy link
Contributor

Antoviscomi commented Nov 5, 2024

I think the issue is when you use the first tab in the plugin when you set the tooltips.
No error occurs if you use the HTML template. Someone can confirm ?

@Gustry here I noticed that tooltips error it come only at map startup, if I close it (by close error modal popup as well as selection dropdown popup) the tooltips tool end to working. The error come out again after a page refresh, and no error in html template but, in template mode there are no contents in tooltips modal popup (in other words, it doesn't works)

Video.del.05-11-2024.15.16.06.webm

@Antoviscomi
Copy link
Contributor

in template mode there are no contents in tooltips modal popup (in other words, it doesn't works)

@Gustry sorry for mistake in html mode it works but I doesn't seen the contents because of white color font

Video.del.05-11-2024.15.51.12.webm

@Gustry
Copy link
Member

Gustry commented Nov 5, 2024

@Gustry sorry for mistake in html mode it works but I doesn't seen the contents because of white color font

This is because of your theme

@Antoviscomi
Copy link
Contributor

Antoviscomi commented Nov 5, 2024

You're right @Gustry in html it works as expected and also it's customizable with few html tags

Video.del.05-11-2024.16.23.45.webm

@josemvm
Copy link
Collaborator

josemvm commented Nov 5, 2024

i can confirm the problem, for a lizmap tooltip (i don´t try the qgis/html tooltip)

@Antoviscomi
Copy link
Contributor

Antoviscomi commented Nov 5, 2024

i can confirm the problem, for a lizmap tooltip (i don´t try the qgis/html tooltip)

@josemvm it's not qgis/html tooltip but @Gustry meants the html model builder located in Map Suggestions under Lizmap Plugin, using the second tab HTML Model as in screenshot

Schermata del 2024-11-05 17-38-05

@josemvm
Copy link
Collaborator

josemvm commented Nov 5, 2024

@josemvm it's not qgis/html tooltip but @Gustry meants the html model builder located in Map Suggestions under Lizmap Plugin, using the second tab HTML Model as in screenshot

thanks @Antoviscomi

@guenterw
Copy link
Author

guenterw commented Nov 5, 2024

I can also confirm this.
Just using the HTML template from the Lizmap plugin is enough to make it work.
image

results in
image

at least a workaround until the error is corrected

@Gustry
Copy link
Member

Gustry commented Nov 6, 2024

at least a workaround until the error is corrected

Yes, it's a workaround, but I would keep this HTML template. It's way more powerful, as you can write your own HTML and use QGIS expressions.

@nboisteault nboisteault self-assigned this Nov 7, 2024
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

5 participants