Author Topic: error whos-online  (Read 417 times)

0 Members and 1 Guest are viewing this topic.

Offline ea1hmy

  • Contributor
  • ***
  • Posts: 120
    • meteotorrelavega
error whos-online
« on: January 10, 2019, 03:06:01 PM »
Hello
in whos online I get:
get_whos_online_worldmap error: whos online location_plugin not enabled or installed
and the maps do not appear
It has changed:
In wo-worldmap.php (and maybe others) change
Code: [Select]
while (list ($ numl, $ line) = each ($ lines)) {
to
Code: [Select]
foreach ($ lines as $ numl => $ line) {
to fix the code.

http://www.meteotorrelavega.com/saratoga/whos-online.php
any suggestions
Thank you


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9282
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: error whos-online
« Reply #1 on: January 11, 2019, 11:22:37 AM »
I hope you meant chang
Code: [Select]
while (list($numl, $line) = each($lines)) { to
change to
Code: [Select]
foreach ($lines as $numl => $line) { (which should work with PHP7 given that the each() function was deprecated.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline ea1hmy

  • Contributor
  • ***
  • Posts: 120
    • meteotorrelavega
Re: error whos-online
« Reply #2 on: January 11, 2019, 12:11:45 PM »
the map appeared without touching anything :?:
 #-o #-o

 

anything