No more cards or letters, folks, we have a winner!
The reason my wxspace.php page changed mysteriously was because an update to a Wordpress security plug-in on another site I run changed the php.ini file. Sheees.
Thanks for solving the problem! Thatās one fix I never would have dreamed of.
Now that NOAA has changed over to using https for some of the images & links used in the Space Weather addon page, Iāve updated the script to V1.5.
Youāll need to update if youāre seeing errors on the EIT 284 & EIT 304 images and the latest aurora images arenāt showing.
This is what Iāve put in the change log:
[i]Version 1.5 - 22-Jun-2017 by Martin Collins (Budgie)
updated image URLās for NOAA Website in the following files:
image-space-aurora.php
image-space-aurora-s.php
image-space-eit-284.php
image-space-eit-304.php
updated URLās for NOAA Website & Mauna Loa Solar Observatory in the following files:
wxspace.php
wxspace_narrow.php[/i]
I really appreciate the work Budgie has put into updating this script. Iām busy resurrecting my weather site after having āmothballed itā over a year ago and I had discovered a number of 018 errors. Gone now.
However, I have come across one problem with the output of the script, which may have to do with file permissions:
3-day Solar-Geophysical Forecast Space Weather Forecast Unavailable
Error reading spaceweather current update data.
Could someone point me in the right direction for this?
Hi Jim,
The forecast should be cached into the spaceweather-current.txt file in the script. It was an empty file in the download so make sure itās on the server and has something in it.
If not, check the settings in the wxspace.php or wxspace_narrow.php file to make sure the location is correct for the cache file.
The permissions for this file should be 644.
I spoke too soon. I needed to re-upload the space weather script after I stuffed something up and now the 3-day forecast is coming up with the same error as before. Iāve checked the file permissions and all ok. However, the spaceweather-current.txt is empty.
Can you post a URL for the page?
This isnāt part of the script I altered in any way and the cache script is part of the wxspace.php. Try re-uploading that in case it got corrupted in some way.
Ok, I donāt know what happened but it is working again sigh. Iām going to leave well alone, I think. Thanks again, Martin. Maybe the script got frightened into behaving when it realised you were on the case.
Iāve done an update to V1.7 for the Space Weather scripts ā¦ the services.swpc.noaa.gov site has changed to HTTPS only necessitating updates to many of the scripts (including wxspace.php and wxspace_narrow.php which now use curl for the 3-Day Geophysical Forecast).
Thanks, Ken! Itās working just fine. (I had to find and delete the cache file, spaceweather-current.txt, before the Space Weather Observations, Alerts, and Forecasts showed up.) As is my preference you can see that Iāve centered things a bit.
You can view my customized source here. I did this a few years ago and I have just carried the customizations forward into each new version using āCompare It!ā.
Thanks for sharing your customization. Much appreciated! :D/ Iāll have to remember to use āCompare Itā for future script updates to maintain the customization.
This script has been nothing but a painā¦I can never get all the images to display. Of all the scripts I run this one is by far the one I waste more time trying to fixā¦
Is there a more comprehensive set of instructions on setting this up? I have read the threads over WXForum and there are underlying requirements for making it work that i donāt understand. Itād be nice to see them work with PWSDashboard. Its trying to read in settings.php and menu.php, which i guess i donāt have. All i get is a 500 error which tells me nothing, except āits brokeā.