Web Weather > Weather Website PHP/AJAX scripting

Warnings showing after server change at hosting

(1/1)

miraculon:
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
--- End quote ---

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

--- End quote ---
And

--- Quote ---Notice: Undefined variable: console_moonage in /home/rogersci/public_html/davconvp2CW.php on line 233
--- End quote ---

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.

saratogaWX:
In your php.ini or cPanel PHP configuration make sure you have
--- Quote ---allow_url_fopen = 1
--- End quote ---

miraculon:
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.

Navigation

[0] Message Index

Go to full version