WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Topic started by: Forever on March 19, 2023, 08:07:57 PM

Title: Regional Mesonet Map Error
Post by: Forever 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
Title: Re: Regional Mesonet Map Error
Post by: saratogaWX 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.
Title: Re: Regional Mesonet Map Error
Post by: Forever on March 19, 2023, 10:53:55 PM
Thanks Ken, that fixed it. :)