Author Topic: New host, getting this error.  (Read 2861 times)

0 Members and 1 Guest are viewing this topic.

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
New host, getting this error.
« on: November 28, 2021, 10:08:24 AM »
Now I know I need to update a few things but i switched servers and getting this, before i switched servers everything worked...

Quote
Fatal error: Uncaught Error: Call to undefined function gregoriantojd() in /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/get-USNO-sunmoon.php:1765 Stack trace: #0 /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/get-USNO-sunmoon.php(1473): calcMoonRiSet->getJulianDate(1638075600) #1 /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/get-USNO-sunmoon.php(1452): calcMoonRiSet->setDate('2021', '11', '28') #2 /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/get-USNO-sunmoon.php(516): calcMoonRiSet->__construct('39.298080', '-86.699142', 'America/Indiana...') #3 /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/ajax-dashboard.php(303): getUSNOsunmoon() #4 /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/wxindex.php(98): include_once('/hermes/walnacw...') #5 {main} thrown in /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/get-USNO-sunmoon.php on line 1765

www.gosportwx.com
« Last Edit: November 28, 2021, 10:12:28 AM by mkutche »
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: New host, getting this error.
« Reply #1 on: November 28, 2021, 11:23:27 AM »
Now I know I need to update a few things but i switched servers and getting this, before i switched servers everything worked...

Quote
Fatal error: Uncaught Error: Call to undefined function gregoriantojd() in /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/get-USNO-sunmoon.php:1765 Stack trace: #0 /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/get-USNO-sunmoon.php(1473): calcMoonRiSet->getJulianDate(1638075600) #1 /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/get-USNO-sunmoon.php(1452): calcMoonRiSet->setDate('2021', '11', '28') #2 /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/get-USNO-sunmoon.php(516): calcMoonRiSet->__construct('39.298080', '-86.699142', 'America/Indiana...') #3 /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/ajax-dashboard.php(303): getUSNOsunmoon() #4 /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/wxindex.php(98): include_once('/hermes/walnacw...') #5 {main} thrown in /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/get-USNO-sunmoon.php on line 1765

www.gosportwx.com

I deleted the file until I can get an answer to the solution
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: New host, getting this error.
« Reply #2 on: November 28, 2021, 10:40:01 PM »
Now I know I need to update a few things but i switched servers and getting this, before i switched servers everything worked...

Quote
Fatal error: Uncaught Error: Call to undefined function gregoriantojd() in /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/get-USNO-sunmoon.php:1765 Stack trace: #0 /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/get-USNO-sunmoon.php(1473): calcMoonRiSet->getJulianDate(1638075600) #1 /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/get-USNO-sunmoon.php(1452): calcMoonRiSet->setDate('2021', '11', '28') #2 /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/get-USNO-sunmoon.php(516): calcMoonRiSet->__construct('39.298080', '-86.699142', 'America/Indiana...') #3 /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/ajax-dashboard.php(303): getUSNOsunmoon() #4 /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/wxindex.php(98): include_once('/hermes/walnacw...') #5 {main} thrown in /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/get-USNO-sunmoon.php on line 1765

www.gosportwx.com

anyone know how to fix this error? jw right now i currently deleted it (get-USNO-sunmoon.php) from server until i can get someone to help me fix it. I didn't change anything on it not sure why it popped up with error.
« Last Edit: November 28, 2021, 10:58:34 PM by mkutche »
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: New host, getting this error.
« Reply #3 on: November 29, 2021, 10:06:00 AM »
From a first glance, it looks like your host doesn't support the Gregorian to Julian PHP call (I don't know why it wouldn't, though). What version PHP are you running?

If you unzip and put the attached file into the root directory of your site and run it, it'll allow us to get a thorough dump of the PHP that's running.

https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: New host, getting this error.
« Reply #4 on: November 29, 2021, 12:44:36 PM »
It’s running php 7.4.. I will unzip and upload when I get off work and reply here thanks
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: New host, getting this error.
« Reply #5 on: November 29, 2021, 01:47:05 PM »
The PHP plugin for calendar functions wasn't enabled:

Quote
o get these functions to work, you have to compile PHP with --enable-calendar.

Ask your hoster to fix that issue.
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 mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: New host, getting this error.
« Reply #6 on: November 29, 2021, 03:48:38 PM »
The PHP plugin for calendar functions wasn't enabled:

Quote
o get these functions to work, you have to compile PHP with --enable-calendar.

Ask your hoster to fix that issue.

is that found in the php.ini?
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: New host, getting this error.
« Reply #7 on: November 29, 2021, 04:16:34 PM »
No, it's a compile option when the php.exe file is being generated.  https://www.php.net/manual/en/ref.calendar.php

It should be a part of all commercial PHP installations.  Ask your hoster to fix the php.exe by recompiling and add the --enable-calendar option.

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 mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: New host, getting this error.
« Reply #8 on: November 29, 2021, 06:19:54 PM »
No, it's a compile option when the php.exe file is being generated.  https://www.php.net/manual/en/ref.calendar.php

It should be a part of all commercial PHP installations.  Ask your hoster to fix the php.exe by recompiling and add the --enable-calendar option.

Patiently waiting for my host to fix this.. have a question advforecast2.php seems like it doesn't want to auto update is calendar issue the reason why it doesn't want to auto update?
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: New host, getting this error.
« Reply #9 on: November 29, 2021, 07:34:52 PM »
You're using the V4.05 of advforecast2.php (screen scraper for weather.gov point-printable forecast).  It does seem to be working with current data... what are the symptoms around the possible failure to auto update?  Does it happen at a similar time of day?  What does the script show when it happens ( via a view-source of the wxforecast.php?force=1 page)?
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 mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: New host, getting this error.
« Reply #10 on: November 29, 2021, 07:43:08 PM »
You're using the V4.05 of advforecast2.php (screen scraper for weather.gov point-printable forecast).  It does seem to be working with current data... what are the symptoms around the possible failure to auto update?  Does it happen at a similar time of day?  What does the script show when it happens ( via a view-source of the wxforecast.php?force=1 page)?

That it wasn't updated as of 1:15am this morning, I just did a ?force=1 and it updates it by force.
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: New host, getting this error.
« Reply #11 on: November 29, 2021, 09:46:19 PM »
The advforecast2.php script has
Code: [Select]
$refreshTime = 600; // default refresh of cache 600=10 minutes so it should try to refresh the cache file every 10 minutes.  That is more than enough as the forecasts are only updated about 4 times a day currently.
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 mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: New host, getting this error.
« Reply #12 on: November 30, 2021, 10:02:53 AM »
What does get-UNSO-sunmoon.php do? It seemed to be working fine without it and noticed everything was updating correctly since we last spoke

My host is slowly working on it I think.. said it could take 24-48hrs
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: New host, getting this error.
« Reply #13 on: November 30, 2021, 10:21:04 AM »
get-USNO-sunmoon.php will provide calculated moonrise/moonset, %illumination and moonphase info for all weather software except Weather-Display (which natively calculates those).  You can temporarily rename get-USNO-sunmoon.php to another name and the template will use some rough calculations about moonphase/%illumination, but not show moonrise/moonset times.

The moon details are shown in the dashboard (on the homepage), and in the wxastronomy.php page.

Getting the calendar functions back into php is the preferred method to allow the calculations in get-USNO-sunmoon.php to function.
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 mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: New host, getting this error.
« Reply #14 on: November 30, 2021, 05:12:24 PM »
get-USNO-sunmoon.php will provide calculated moonrise/moonset, %illumination and moonphase info for all weather software except Weather-Display (which natively calculates those).  You can temporarily rename get-USNO-sunmoon.php to another name and the template will use some rough calculations about moonphase/%illumination, but not show moonrise/moonset times.

The moon details are shown in the dashboard (on the homepage), and in the wxastronomy.php page.

Getting the calendar functions back into php is the preferred method to allow the calculations in get-USNO-sunmoon.php to function.

Looks like they got it working! Thanks for your help Ken! :)
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: New host, getting this error.
« Reply #15 on: December 01, 2021, 05:14:16 AM »
Sorry to bug again but now I'm getting this error..

Quote
Notice: Undefined offset: 0 in /hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/ajax-dashboard.php on line 936

seemed to of fixed itself? lol
« Last Edit: December 01, 2021, 05:39:16 AM by mkutche »
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: New host, getting this error.
« Reply #16 on: December 01, 2021, 11:26:47 AM »
Your line 936 in your modified ajax-dashboard.php is
Code: [Select]
<?php echo get_UVrange($UVfcstUVI[$UVptr]); ?>
The error message said that $UVfcstUVI[0] was not set .. likely there was an issue between your website and temis.nl that prevented get-UV-forecast.php from properly initializing that variable.  It fixed itself when the data was again available from temis.nl for the UV forecasts.
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 StevySokal7

  • Member
  • *
  • Posts: 1
Re: New host, getting this error.
« Reply #17 on: August 26, 2022, 06:13:29 AM »
This message often appears when the DNS server settings are incorrect (if it is located in the local network) or when the server is 1C is not in the local network when trying to access the cluster of servers 1C in its local name. I believe that first, you should check whether the server is visible from the client computer; to do this, you need to open a command line. In Windows 10, just right-click on the start and select Windows PowerShell, but if you have an earlier version of Windows, press the key combination "Win" + "R." In the window that opens, type "CMD" and execute. Too bad this problem took up a lot of my time. After all, I was just in the middle of a work-in-progress and had to transfer the finished files via https://fastupload.io/en.
« Last Edit: August 26, 2022, 08:40:51 AM by StevySokal7 »