Author Topic: Whos Online PHP Script for your template site  (Read 22723 times)

0 Members and 2 Guests are viewing this topic.

Offline ed2kayak

  • Ed
  • Forecaster
  • *****
  • Posts: 574
  • Davis Vantage Pro2 w/12 hr FARS, solar/uv
    • Cumberland Valley Weather
Re: Whos Online PHP Script for your template site
« Reply #100 on: August 15, 2018, 01:05:29 PM »
Hello Toxic

Currently on php 7.2.6, not seeing your error currently.

But my map no longer displays  :-(.

http://cvweather.org/whos-online-maps.php

Ed
CoCoRaHS PA-CD-6,  Weather Underground KPAMECHA7, CWOP DW5425

Offline Toxic

  • Senior Contributor
  • ****
  • Posts: 255
  • #conligwx
    • conligwx.org
Re: Whos Online PHP Script for your template site
« Reply #101 on: August 16, 2018, 04:13:12 AM »
I think there was a fix for this somewhere out on the net. I know there was about 4-5 files released with fixes a few years back. lemme check....

 [ You are not allowed to view attachments ]  make a backup of your files first and see if this fixes it.

The other issue is this script will need a re-write most as the geolite dat file has stopped and a new version will take its place.

Quote
You have the latest available Maxmind GeoLiteCity database
Note: Maxmind usually updates GeoLiteCity once monthly on the 1st, but sometimes they update on the 2nd or 3rd or even later dates!
Maxmind last updated it 03-27-2018 (142 days ago) this is the newest file available.
You updated to the current GeoLiteCity database on 08-16-2018 (0 days ago), no new updates are available today.


https://dev.maxmind.com/geoip/legacy/geolite/

Quote
Updated versions of the GeoLite Legacy databases are now only available to redistribution license customers, although anyone can continue to download the March 2018 GeoLite Legacy builds. Starting January 2, 2019, the last build will be removed from our website. GeoLite Legacy database users will need to switch to the GeoLite2 or commercial GeoIP databases and update their integrations by January 2, 2019.
« Last Edit: August 16, 2018, 04:34:56 AM by Toxic »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1258
    • Support site Leuven Template and scripts
Re: Whos Online PHP Script for your template site
« Reply #102 on: August 16, 2018, 04:53:59 AM »
Hello Toxic

Currently on php 7.2.6, not seeing your error currently.

But my map no longer displays  :-(.

http://cvweather.org/whos-online-maps.php
The map is a background:url
http://cvweather.org/whos-online/wo-worldmap.php?time=1&units=days&map=3&pin=1&pins=off&text=on&textcolor=000000&textshadow=FFFFFF&textalign=cb&ul_lat=0&ul_lon=0&lr_lat=360&lr_lon=180&offset_x=0&offset_y=0&type=jpg
As you (or your hoster) is running your site with error messages turned on, there is a message just before the image.
Code: [Select]
Deprecated: The each() function is deprecated.
This message will be suppressed on further calls in /home/cvweather/www/www/whos-online/wo-worldmap.php on line 333

Warning: Cannot modify header information - headers already sent by (output started at /home/cvweather/www/www/whos-online/wo-worldmap.php:333) in /home/cvweather/www/www/whos-online/wo-worldmap.php on line 234
Solution: Switch af error reporting for your site.
At least switch it off in  whos-online/wo-worldmap.php
Check that script for all lines with either of the two below
Code: [Select]
ini_set('display_errors', 'On');
ini_set('display_errors', '1');
and replace the ini_set with
Code: [Select]
ini_set('display_errors', '0'); That is a literal zero. If you can not find such  a line, replace the first
Code: [Select]
<?php  with
Code: [Select]
<?php  ini_set('display_errors''0');If all fails zip the wo-worldmap.php  script and post it here.
Wim
« Last Edit: August 16, 2018, 05:01:52 AM by wvdkuil »
Vantage VUE with a WLIP connected to a Meteobridge used for https://weer.sluispark.be/
Same VUE+WLIP uploads to WL.com (1.0)  used for https://sluispark.be/weather28/
Vantage VP2 with a USB logger/Meteobridge for https://www.weerstation-herent.be/
Envoy with a WLIP uploads to WL.com(1.0) as a backup / test for the same site.

Offline Toxic

  • Senior Contributor
  • ****
  • Posts: 255
  • #conligwx
    • conligwx.org
Re: Whos Online PHP Script for your template site
« Reply #103 on: August 16, 2018, 05:21:10 AM »
Thx Wim

I have added

Code: [Select]
<?php  ini_set('display_errors''0');
to my include-whos-been-online.php since the error seems to be cosmetic and not actually a real error.

Offline ed2kayak

  • Ed
  • Forecaster
  • *****
  • Posts: 574
  • Davis Vantage Pro2 w/12 hr FARS, solar/uv
    • Cumberland Valley Weather
Re: Whos Online PHP Script for your template site
« Reply #104 on: August 17, 2018, 09:53:00 AM »
Thanks for comments.

I have to review my installation, may have multiple issues. Hope to have time in the next few days. Will report back.

Ed
Ed
CoCoRaHS PA-CD-6,  Weather Underground KPAMECHA7, CWOP DW5425

 

anything