mprins / dokuwiki-plugin-openlayersmap

Add maps (OpenStreetMap, Bing, ... and your own data) to your wiki pages using the OpenLayers toolkit
https://www.dokuwiki.org/plugin:openlayersmap
Other
5 stars 0 forks source link

Last update doesn't work on PHP 5.6 #7

Closed Digitalin closed 3 years ago

Digitalin commented 3 years ago

Hi, I don't know if it is by design but last update of GeoPHP and Openlayersmap on server running PHP 5.6 doesn't work anymore and gives a blank page. As I understand, the coding style use type of return like : public function get($key) : string which leads multiple PHP errors like

GeoPHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/directory/lib/plugins/geophp/helper.php on line 31

Openlayersmap Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/directory/lib/plugins/openlayersmap/syntax/olmap.php on line 54

mprins commented 3 years ago

PHP 5.6 is no longer supported, it is EOL since 31 dec 2018, had another year of security fixes only during 2019 and is now gone. We are more than 2 years down the line and getting ready for PHP 8.

The wiki page provides a link to old releases that you can download and install manually