3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
259 stars 143 forks source link

Many errors about array_exists in datavizPlot.class.php #1476

Open laurentj opened 4 years ago

laurentj commented 4 years ago

What is the bug?

In the var/log/errors.log of a lizmap instance, I got many errors like this:

 warning 2020-01-24 11:20:41     [2]     array_key_exists(): The first argument should be either a string or an integer  /srv/lizmap-web-client/lizmap/modules/dataviz/classes/datavizPlot.class.php     486

On the latest version of the file, it is at line 489

Steps to reproduce the issue

I don't know how to reach this line of code. But it should be fixed.

Expected behavior

Such errors should not be appeared.

Environment

nboisteault commented 4 years ago

@laurentj Do you have a project reproducing this warning ?

laurentj commented 4 years ago

@nboisteault no.

josemvm commented 4 years ago

hi @laurentj

sorry, i'm using your issue for reporting another recurrent error:

2020-01-28 10:34:17 10.27.10.58 warning 2020-01-28 10:34:17 [2] strpos(): Empty needle  /var/www/html/lizmap-web-client-release_3_3/lizmap/modules/lizmap/classes/lizmapProject.class.php   459
laurentj commented 4 years ago

@josemvm I fixed it into f50e4d2b6a00abc9e1758d498d0f61f60841e7f7 . Thanks for your report.

nboisteault commented 4 years ago

@laurentj Can it be closed ?

rldhont commented 4 years ago

It is in the pie chart https://github.com/3liz/lizmap-web-client/blob/release_3_3/lizmap/modules/dataviz/classes/datavizPlot.class.php#L538