Author Topic: Warnings showing after server change at hosting  (Read 771 times)

0 Members and 1 Guest are viewing this topic.

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4175
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Warnings showing after server change at hosting
« on: December 22, 2024, 11:06:46 AM »
I am seeing "Warnings" showing on a couple of my pages on my site after a recent server change with my hosting service:

Quote
Warning: file(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/rogersci/public_html/cwopstats.php on line 87

Warning: file(http://weather.gladstonefamily.net/site/C4114?days=28;tile=10#Data): failed to open stream: no suitable wrapper could be found in /home/rogersci/public_html/cwopstats.php on line 87

Warning: implode(): Invalid arguments passed in /home/rogersci/public_html/cwopstats.php on line 87

On this page: https://www.rogerscityweather.com/wxcwopstats.php

I am also seeing this warning on the Davis Consoles page:
Quote
Warning: A non-numeric value encountered in /home/rogersci/public_html/davconvp2CW-inc.php on line 94
And
Quote
Notice: Undefined variable: console_moonage in /home/rogersci/public_html/davconvp2CW.php on line 233

on https://www.rogerscityweather.com/davconvp2CW.php The last one was a "Notice".

Any suggestions?

UPDATE: I commented out a bunch of stuff and got rid of everything except the notice. I'll just let it go at that...

Greg H.
« Last Edit: December 23, 2024, 09:30:33 AM by miraculon »


Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9722
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Warnings showing after server change at hosting
« Reply #1 on: December 22, 2024, 11:10:37 AM »
In your php.ini or cPanel PHP configuration make sure you have
Quote
allow_url_fopen = 1
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 miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4175
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: Warnings showing after server change at hosting
« Reply #2 on: December 22, 2024, 01:56:42 PM »
I found an option to set it in the PHP Options and it worked for the CWOP page, but not for the Davis Consoles. I know that the Console one is an old script, probably not worth doing anything on that.

Thanks,

Greg H.



Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF