I was having a bug with FuelPHP on Windows with IIS about concerning the following snippet of code in the frameworks fuel.php file on line 177. setlocale(LC_ALL, static::$locale) or logger(\Fuel::L_WARNING, 'The configured locale '.static::$locale.' is not installed on your system.', __METHOD__);
The official PHP documentation agrees with the FuelPHP implementation and configuration, and works like a charm on Linux, however on Windows that’s not the case. http://php.net/setlocale On Windows the documentation wants the local sting to use – instead of _. For example, the call setlocale( LC_ALL, "en-US" ); Instead of : For example, the call setlocale( LC_ALL, "en_US" ); (As is configured in FuelPHP) https://msdn.microsoft.com/en-us/library/39cwe7zf(v=vs.140).aspx https://msdn.microsoft.com/en-us/library/x99tb11d.aspx I’m not sure if this is a Windows issue or just “my PC,” however if I configure my application with locale to en-US, then it works. Otherwise with the default FuelPHP configuration I get a nasty error.