Author Topic: Regional Mesonet Map Error  (Read 536 times)

0 Members and 1 Guest are viewing this topic.

Offline Forever

  • Senior Contributor
  • ****
  • Posts: 241
Regional Mesonet Map Error
« on: March 19, 2023, 08:07:57 PM »
I tried to update the Regional Mesonet Map scrip and get the error below when I make the new_strftime changes. What did I do wrong?
http://www.weathercat.net/wxmesonetmap.php

PHP Fatal error:  Uncaught Error: Call to undefined function locale_get_default() in C:\inetpub\weathercat\mesonet-map-common.php:921
Stack trace:
#0 C:\inetpub\weathercat\mesonet-map-genhtml-inc.php(202): new_strftime()
#1 C:\inetpub\weathercat\mesonet-map-inc.php(168): include_once('...')
#2 C:\inetpub\weathercat\wxmesonetmap.php(75): include_once('...')
#3 {main}
  thrown in C:\inetpub\weathercat\mesonet-map-common.php on line 921
« Last Edit: March 19, 2023, 08:31:52 PM by Forever »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9560
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Regional Mesonet Map Error
« Reply #1 on: March 19, 2023, 09:08:38 PM »
Looks like your PHP doesn't have the intl extension enabled.

Try to uncomment extension=intl in the php.ini to enable it.
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 Forever

  • Senior Contributor
  • ****
  • Posts: 241
Re: Regional Mesonet Map Error
« Reply #2 on: March 19, 2023, 10:53:55 PM »
Thanks Ken, that fixed it. :)