Piwigo / piwigo-openstreetmap

OpenStreetMap integration for Piwigo
http://piwigo.org/ext/extension_view.php?eid=701
GNU General Public License v3.0
37 stars 35 forks source link

PHP warning in header #250

Closed Ilav1 closed 5 months ago

Ilav1 commented 8 months ago

Hi,

I got some warnings in header with newest versions

Piwigo: 14.3.0 Piwigo OSM: 14.b PHP: 8.1.2

At the start page there are these warnings:

Warning: Undefined array key "display_gpx" in /.../piwigo/plugins/piwigo-openstreetmap/include/functions_map.php on line 96

Warning: Cannot modify header information - headers already sent by (output started at /.../piwigo/plugins/piwigo-openstreetmap/include/functions_map.php:96) in /.../piwigo/include/page_header.php on line 99

In a album there are these warninhgs:

Warning: Undefined array key "display_gpx" in /.../piwigo/plugins/piwigo-openstreetmap/include/functions_map.php on line 96

Warning: Cannot modify header information - headers already sent by (output started at /.../piwigo/plugins/piwigo-openstreetmap/include/functions_map.php:96) in /.../piwigo/include/page_header.php on line 99
Photonoxx commented 7 months ago

Hi,

I have almost the same matter since the 14.3 update, but have only the first line, and categorized as a notice and not a warning. Notice: Undefined index: display_gpx in /.../plugins/piwigo-openstreetmap/include/functions_map.php on line 96