My former host, Machighway, was purchased by Host Papa in Canada. After the migration, the website didn’t load properly. Wim and Host Papa have informed me that I have a VERY old version of PHP, v5.4.45. Host Papa downgraded my site to work with that version and everything appears fine now. What they really want is v8.2.
NOOB ALERT! I am sorry … this is all WAY over my head. I am running a Mac 2014 MBP with Big Sur 11.7.10 … the last OS available for this Mac. I have found a couple tutorials on how to upgrade to the latest PHP using HomeBrew. It doesn’t look too hard. But is that the best way to go? What are the pros and cons on an old system? And, if I do upgrade, how do I get info that to Host Papa?
Or am I better off just accepting the downgrade from Host Papa and being done with it?
This may well be way over my head, too, but my understanding is that the PHP version on the server is dictated by the host – whatever computer you have, you don’t run PHP so you can’t upgrade it.
If you had performed all the updates for PWS dashboard 2012_lts that Wim has published it would run in PHP 8.2 – full stop.
You really do not want to have your host running PHP 5.4
The current pwsdashboard works correctly with PHP8.2
MAIL me your PWS_easyweather password and I can check “how old” your dashboard scripts are.
As far as I can see they are not that old, probably recent enough. There is no need to update your MAC
PWS_Dashboard runs on a webserver, not on your Mac.
My current password is rather sensitive and I would like to change it before I send it to you. Can I change that by going to “CPanel/public_html/_my_settings” and editing it there? I tried to do it in the Settings on the current website but all I got was a blank page.
Note that there is no download button. I’m unsure on how to proceed. I have done this once before but the download button worked and gave me files to replace the old ones.
If it fails the last error-message is important.
Please copy the messages from the screen and post them here.
If you copied all error/fatal messages you can switch back to an older PHP version.
It is night time here so I will look into your posts in < 10 hours.
How to change the easyweather password for testing?
Better use a long password without any very-special characters.
So no quotes or apostrophes as they are used in PHP instructions also.
See attached example, do not use that string but type your own version.
I will ask Host Papa to upgrade my website to PHP 8.2. They usually respond within 24 hours. I will run the test tomorrow when they let me know they are done and report back.
The move to 8.2 did it. I ran a test.php and no errors were reported.
I think that Host Papa starts everyone at 8.3 … and it failed. They set me at 5.4 … and it worked, sorta. You confirmed that my files were current, suggested 8.2 and … VOILA!
Thank you for bearing with me. I know just enough to be dangerous about this stuff. Thanks for furthering my education!
That is not the case here. Your website failed with 8.x because of the un-quoted text used.
We removed that error when you used private messages.
You modified a standard block.
Message Notice : Use of undefined constant USWestRadar - assumed ‘USWestRadar’ in**/home/soprisview/public_html/PWS_blocks.php** on line436
That line read: $blck_ttls[$script] = USWestRadar; Should be changed to avoid errors with a more strict PHP version
$blck_ttls[$script] = 'USWestRadar';
After that modification there were no problems and there are still no problems
@ALL
Be aware that default all errors / warnings are suppressed.
After modifying a script you should therefor test with pwsWD/_test.php
or even better:
the debug console pwsWD/PWS_module_test.php
That way you get the messages to iron out all minor problems.