Author Topic: PHP on New Godaddy cpanel check not working  (Read 2671 times)

0 Members and 1 Guest are viewing this topic.

Offline mexbound

  • Senior Member
  • **
  • Posts: 75
Re: PHP on New Godaddy cpanel check not working
« Reply #25 on: March 19, 2025, 12:55:35 PM »
I switched my GoDaddy to PHP 8.4 and everything is running great after I added the option "gd" in my PHP options.  Then the graphs were ok.  I also had to change some code in inc-rainfall-get-noaa.php (if you use that script)

old line:  // while (($data = fgetcsv($fp, 2500, ",")) !== FALSE) {   Changed 3-15-2025 for PHP 2.4
new line:  while (($data = fgetcsv($fp, 2500, ",", '"', "\\")) !== FALSE) {

I've been running 8.4 for a few days now and I don't have any error_log dataset.

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6439
    • Valentine Nebraska's Real-Time Weather
Re: PHP on New Godaddy cpanel check not working
« Reply #26 on: March 19, 2025, 05:33:20 PM »
I updated to PHP 8.3 but see something off on dashboard. Any Idea, I'm still where I can undo. Or is this a different issue I have going?

 [ You are not allowed to view attachments ]

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6439
    • Valentine Nebraska's Real-Time Weather
Re: PHP on New Godaddy cpanel check not working
« Reply #27 on: March 19, 2025, 05:40:58 PM »
Okay, went to 8.1 and the thermometer is working. Thanks for help everyone.  =D>

 [ You are not allowed to view attachments ]


Also ran the script to confirm. The only thing not working was the thermometer with 8.3
« Last Edit: March 19, 2025, 05:53:05 PM by ValentineWeather »

Offline mexbound

  • Senior Member
  • **
  • Posts: 75
Re: PHP on New Godaddy cpanel check not working
« Reply #28 on: March 19, 2025, 05:55:35 PM »
Make sure in your PHP options that "gd" is checked.  This is for graphics.  No check, No graphics.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9697
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP on New Godaddy cpanel check not working
« Reply #29 on: March 19, 2025, 05:59:25 PM »
Pssst... using https://www.valentinenebraska.net/check-fetch-times.php?show=versions shows you have some updates to apply.

Odd that thermometer.php (which is current) fails on 8.3 -- I'll have to look into that.  Do make sure that
https://www.valentinenebraska.net/check-fetch-times.php?show=info does show GD library enabled with your PHP 8.3
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 ValentineWeather

  • Forecaster
  • *****
  • Posts: 6439
    • Valentine Nebraska's Real-Time Weather
Re: PHP on New Godaddy cpanel check not working
« Reply #30 on: March 19, 2025, 06:18:27 PM »
Where do I find the PHP options to make sure GD is checked? I just tried 3 again, no go. I'm on 2 now and thermometer works. Running 8.2 shows this

 [ You are not allowed to view attachments ]
« Last Edit: March 19, 2025, 06:23:31 PM by ValentineWeather »

Offline mexbound

  • Senior Member
  • **
  • Posts: 75
Re: PHP on New Godaddy cpanel check not working
« Reply #31 on: March 19, 2025, 06:53:13 PM »
For Godaddy, go to "My Products", then got to "Web Hosting", choose your domain and click on "Manage". Then click on "Cpanel". Go down to software section and click on "Select PHP Version". Under the "Extensions" make sure GD is checked.

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6439
    • Valentine Nebraska's Real-Time Weather
Re: PHP on New Godaddy cpanel check not working
« Reply #32 on: March 19, 2025, 07:34:18 PM »
For Godaddy, go to "My Products", then got to "Web Hosting", choose your domain and click on "Manage". Then click on "Cpanel". Go down to software section and click on "Select PHP Version". Under the "Extensions" make sure GD is checked.

Thank you, for being patient, it worked. I see that for some reason on 8.3 and 8.4 PHP the GD isn't checked. The reason I couldn't find the setting was going directly to Cpanel server side to change the PHP. So, never saw those settings. I really spend very little time on GoDaddy.

 

anything