Author Topic: Another sunposa problem  (Read 1012 times)

0 Members and 1 Guest are viewing this topic.

Offline W Thomas

  • Welcome to my area!
  • Forecaster
  • *****
  • Posts: 1689
  • In Loving Memory Of Hooker The Weather Dog !
    • Smyth-Grayson Weather
Another sunposa problem
« on: April 02, 2025, 02:01:57 AM »
I keep getting the following errors when I try to display the sjy position chart. I have entered the time zone for my area to what I thought was correct but the script seems to disagree. (America_New York )  Any suggestions?


Thanks

Notice: date_default_timezone_set(): Timezone ID 'America/New York' is invalid in /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/Settings.php on line 351

Warning: session_start(): Cannot start session when headers already sent in /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/include-style-switcher.php on line 29

Notice: date_default_timezone_set(): Timezone ID 'America/New York' is invalid in /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/sunposa.php on line 1092

Notice: date_default_timezone_set(): Timezone ID 'America/New York' is invalid in /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/sunposa.php on line 2124

Fatal error: Uncaught Error: Call to undefined function gregoriantojd() in /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/sunposa.php:2428 Stack trace: #0 /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/sunposa.php(2136): calcMoonRiSet->getJulianDate(1743566400) #1 /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/sunposa.php(2115): calcMoonRiSet->setDate('2025', '4', '2') #2 /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/sunposa.php(1382): calcMoonRiSet->__construct('36.601389', '-81.538056', 'America/New Yor...') #3 /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/sunposa.php(166): get_sunmoon(true, '36.601389', '-81.538056', 'America/New Yor...') #4 {main} thrown in /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/sunposa.php on line 2428
« Last Edit: April 02, 2025, 02:17:40 AM by W Thomas »


     Best Regards
     Wayne

CWOP CW8217
KVAWHITE22 Wunderground   Davis VUE &  Davis Vantage Pro 2  /   Dedicated Server
GR Level 3 ,Level 2 AE Radars  Weather Display 10.37P  Mid Atlantic Weather Network Member
SkyWarn & Spotter Network 6092

Offline Vasco

  • Forecaster
  • *****
  • Posts: 678
    • PWS
Re: Another sunposa problem
« Reply #1 on: April 02, 2025, 05:07:29 AM »
Try America/New_York for the TZ (see https://www.php.net/manual/en/timezones.america.php), and then run sunposa.php?debug=y in your browser. I expect it will tell you that

function 'gregoriantojd()'  is not available

and you should ask your host to enable calendar in PHP.
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10