Fatal error: Class 'NumberFormatter' not found
This error message is indicating that the PHP script is trying to use a class called "NumberFormatter" but it cannot be found.
This error message is indicating that the PHP script is trying to use a class called "NumberFormatter" but it cannot be found. This class is part of the Intl extension in PHP, which provides internationalization support. To fix this error, you need to make sure that the Intl extension is installed and enabled in your PHP environment. You can do this by editing your php.ini file and uncommenting the line that says extension=intl or by using the following command on modern Linux systems: sudo apt-get install php8.2-intl (replace 8.2 with your PHP version). After installing or enabling the extension, restart your web server (e.g., sudo systemctl restart apache2 or sudo systemctl restart nginx). You can verify the extension is active by running php -m | grep intl. Once confirmed, you should be able to run your script without encountering this error. Note that on some managed hosting environments, you may need to enable the Intl extension via your hosting control panel instead of using the command line.