Author Topic: GoDaddy Changeover  (Read 3383 times)

0 Members and 1 Guest are viewing this topic.

Online 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
GoDaddy Changeover
« on: December 28, 2016, 03:36:51 PM »
Looking for some help.  Changing over from GoDaddy Classic Linux to my new GoDaddy CPanel Linux.  I'm sure most of my issues are related to the old site using PHP 5.3 and the new one using PHP 5.6.  New site will let me downgrade to 5.4, but not to 5.3.

Original site still up and running at http://www.bismarckweather.net
Temp site has some files uploaded, but not set to update yet.  http://temp.bismarckweather.net

1.  Degree symbols are showing question marks instead of the degree symbol.
2.  Forecast icons that are dual image don't appear.
3.  Bloomsky cam page gets an error.   Weird part is the "phone version" works just fine.

I'll need to figure out my Plains Weather Cron job as well eventually.  But that's a lower priority.

As always, help is appreciated.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Online 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: GoDaddy Changeover
« Reply #1 on: December 28, 2016, 03:38:18 PM »
I see I need to figure out where to put index.php as the default file as well.

http://temp.bismarckweather.net/index.php
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Online 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: GoDaddy Changeover
« Reply #2 on: December 28, 2016, 03:52:25 PM »
I dropped my PHP to version 5.4   That fixed my degree issue.  But the other two issues remain.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Online 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: GoDaddy Changeover
« Reply #3 on: December 29, 2016, 11:34:44 AM »
I've been playing with my PHP options.  Not sure what I turned on.  But now I see this error: 

( ! ) Fatal error: Call to undefined function json_decode() in /home/bismarckweather/public_html/bloomsky/ws_bloomsky_v.php on line 159

Also, my "phone version" of the Bloomsky isn't working either. I didn't realize I had the link hard coded to my old site.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Online 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: GoDaddy Changeover
« Reply #4 on: December 30, 2016, 12:54:40 PM »
Hoping Ken can help me out here.  I worked on the advforecast2.php file.  I downloaded the latest version.  Still having issues with the dual image.  I downloaded the latest version of that too.  It still doesn't work.

What does work is if I rename that dualimage.php file, then the regular single picture version does work.  Worst case, I may just have to resort backwards to that setup.

Still having issues with the Bloomsky for some reason.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6375
    • Valentine Nebraska's Real-Time Weather
Re: GoDaddy Changeover
« Reply #5 on: December 30, 2016, 02:17:19 PM »
Did you make the changes in advforecast2.php for icons? One I remember was changing .jpg to .png

Code: [Select]
$iconDir = './forecast/images/';
$iconType = '.png';        // default type='.jpg' -- use '.gif' for animated icons from http://www.meteotreviglio.com/
$cacheFileDir = './';      // default cache file directory
$iconHeight = 55;  // default height of conditions icon (saratoga-icons.zip)
$iconWidth  = 55;  // default width of conditions icon  (saratoga-icons.zip)
$refreshTime = 600; // default refresh of cache 600=10 minutes
// ----------------------END OF SETTINGS--------------------------------------

Randy

Online 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: GoDaddy Changeover
« Reply #6 on: December 30, 2016, 03:21:14 PM »
My advforecast2.php file has jpg as the file and default folder of ./forecast/images.  And in there I do have JPG files.

But the dualimage.php file I have set to PNG and set to ./forecast/icon-templates/

And that's how I still have it set on my production site.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: GoDaddy Changeover
« Reply #7 on: December 30, 2016, 03:24:36 PM »
json_decode was introduced in version 5.2, if it shows as undefined function, either you accidentally downgraded to even something lower, or something is seriously wrong with the PHP installation on your server.
I also think it is not the best idea to downgrade PHP, rather you should aim to upgrade to eg. 7.
Can you post the code for your pages where you had the degree symbol issue? It is strange, higher PHP versions can of course show a degree symbol as well.

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: GoDaddy Changeover
« Reply #8 on: December 30, 2016, 03:27:04 PM »
create a new file, call it test.php

inside it put this:

<?php echo phpinfo();?>

then save it on your server and post a link here to this file

Online 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: GoDaddy Changeover
« Reply #9 on: December 30, 2016, 03:49:49 PM »
http://temp.bismarckweather.net/test.php

I only have versions 5.4, 5.5, and 5.6 available.  It's when I upgrade to 5.6 that I get the degree issue.

I put the test file on my production site for comparision.  I'm guessing it's more of a config issue than a version issue.  I had to make a change to the new php.ini file so that my PlainsWeather network page would work.  It wanted a default time zone set in there.

http://www.bismarckweather.net/test.php

https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Online 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: GoDaddy Changeover
« Reply #10 on: December 30, 2016, 03:56:44 PM »
One big thing I'm seeing different between the 2 is json support.  Temp site doesn't show it on the list.  Prod site does.  I'm fairly certain my Bloomsky page uses json.

On my CPanel page for PHP, I have JSON checked.  I might have to check with GoDaddy on this.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: GoDaddy Changeover
« Reply #11 on: December 30, 2016, 04:12:35 PM »
Can you post here the script that shows the degree issue and tell me where exactly? Or upload it temporarily somewhere on your server and send me a link I will check the HTML and console.

Online 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: GoDaddy Changeover
« Reply #12 on: December 30, 2016, 04:30:44 PM »
I can run PHP 5.4 or PHP 5.5 with no issue.  It's when I bump it up to 5.6 that it happens.

I made the change so you can see it on my homepage.

http://temp.bismarckweather.net/index.php
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: GoDaddy Changeover
« Reply #13 on: December 30, 2016, 04:45:03 PM »
Hi,
can you email me the script, this wont help because I only see the result, but not how it was generated. Or just save it as text file and attach it in your post here on the forum.

Online 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: GoDaddy Changeover
« Reply #14 on: December 30, 2016, 05:07:28 PM »
Attached.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: GoDaddy Changeover
« Reply #15 on: December 30, 2016, 05:30:19 PM »
Add this in your head section after the </title>

Code: [Select]
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

Online 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: GoDaddy Changeover
« Reply #16 on: December 30, 2016, 05:42:28 PM »
Added.  No change.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: GoDaddy Changeover
« Reply #17 on: December 30, 2016, 05:43:37 PM »
Its not there, look:

http://temp.bismarckweather.net/index.php

It is not in the HTML

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: GoDaddy Changeover
« Reply #18 on: December 30, 2016, 05:45:28 PM »
OK sorry, it is, it looks like some editor you are using is converting it, try in the file, bulk replacing the degree symbols with this:

Code: [Select]
&deg;

Online 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: GoDaddy Changeover
« Reply #19 on: December 30, 2016, 06:17:47 PM »
Yep, that was it.  Thanks.

I'll be putting in a ticket to GoDaddy about those test pages.  I'm betting it's something in the PHP settings that isn't sticking causing the issue.

I think if I can get that json and other options actually working, Bloomsky and my DualImages will start working again.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: GoDaddy Changeover
« Reply #20 on: December 30, 2016, 07:00:45 PM »
Great :) Glad it helped

Online 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: GoDaddy Changeover
« Reply #21 on: January 02, 2017, 03:06:33 PM »
Well, GoDaddy support was crap.  Got through to them reasonable quick.  But they said JSON support for PHP was turned on.  Even though that test script doesn't show it listed.

It was "Nope, it's on.  Must be your scripts.  Nothing more we can do."  When I asked to explain why the old site shows and new one doesn't, it was "Nope, we don't have anyone that knows that much to explain it.".  And when I asked to move it up to a higher tech, it was "Nope, I'm it."

I see a few of you are using 1&1.  How happy are you with that?  I'm leaning towards going that direction.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline Maumelle Weather

  • Forecaster
  • *****
  • Posts: 1825
    • Maumelle Weather
Re: GoDaddy Changeover
« Reply #22 on: January 02, 2017, 03:17:58 PM »
Hi,

I use ICDSoft as my host and have been very happy with them for the last 6 years. Their U.S. datacenter is located outside of Boston, MA. Any issues that have cropped up have been solved inside of 15 minutes. Their tech support is awesome!!!  I highly recommend them.

John
GR2AE, GR3, Cumulus

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3360
    • Emmett Weather
Re: GoDaddy Changeover
« Reply #23 on: January 02, 2017, 04:14:35 PM »
I've used both ICDSOFT and 1&1. Both provide excellent hosting services. You can't go wrong with either one of them.

ICDSOFT: The only problems I had with ICDSOFT many years ago was when someone cut their main data pipe with a backhoe somewhere in New England. I was down for several hours. The other issue I had with them was that they monitored the number of FTP links you had going at a time quite closely and I had major issues with VWS creating numerous FTP streams simultaneously and not releasing them. That resulted in ICDSOFT blocking my IP until I could reach them via phone. Then, it took upwards of 12 hours to get back on-line. Not a fun time even though it was a VWS issue and not really one with ICDSOFT.

1&1: Hands-down the best from my perspective. I've never had an outage that they caused. The availability with 1&1 is there whenever needed. Can't ask for much more.

And finally, getting to upper levels of support can be a challenge, if not impossible. Often the lower levels of support have no direct access to the real gurus other than via the submission of escalation tickets they generate internally.
Don - W3DRM - Emmett, Idaho --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KBOI7
Davis Wireless VP2, WD 10.37s150,
StartWatch, VirtualVP, VPLive, Win10 Pro
--- Logitech HD Pro C920 webcam (off-line)
--- RIPE Atlas Probe - 32849

Online 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: GoDaddy Changeover
« Reply #24 on: January 02, 2017, 04:15:45 PM »
Well, with a little help from Andy G at http://sacrey.info/ , I was able to get my issue figured out.

For any others that may have GoDaddy, you have to go into your "Select PHP Version" section of the Software section in the hosting area.  Change the option to version (Native) 5.4.  5.4, 5.5, and 5.6 won't work. 

Changing the option shows a message "Warning: Changing php modules and php options via PHP Selector for native php version is impossible".  That warning is why I never tried it.  I figured I had nothing to lose and did it.  My test.php file started showing JSON being there as soon as I did.

I just hope GoDaddy doesn't screw me over at some future point and drop that PHP option.

Now I just need to flip over my actual uploads and get the name re-pointed.  I need to go work on some snow first.  We're in the midst of a 10-12 inch storm.  We're up to 50 inches for the year.  On pace to beat our all time record snow of 111 inches.  I really hope this doesn't keep up to that pace.  I'll need a new tractor if that's going to happen.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI