Class 'NumberFormatter' not found when use with domain
-
Open: /Users/jeffreyk/Sites/zarabox/packages/Webkul/Core/src/Core.php if (is_null($price)) $price = 0; $formatter = new \NumberFormatter( app()->getLocale(), \NumberFormatter::CURRENCY ); return $formatter->formatCurrency($price, $currencyCode); } /** * Format price with base currency symbol * * @param float $price * @return string */ public function formatBasePrice($price) { if (is_null($price)) $price = 0; $formatter = new \NumberFormatter( app()->getLocale(), \NumberFormatter::CURRENCY ); return $formatter->formatCurrency($price, $this->getBaseCurrencyCode()); } /** * Checks if current date of the given channel (in the channel timezone) is within the range * * @param int|string|Channel $channel * @param string|null $dateFrom * @param string|null $dateTo * @return bool */ public function isChannelDateInInterval($dateFrom = null, $dateTo = null) { $channel = $this->getCurrentChannel(); $channelTimeStamp = $this->channelTimeStamp($channel); $fromTimeStamp = strtotime($dateFrom); Arguments "Class 'NumberFormatter' not found"
Hi develop team,
I really do not understand what exactly happen, when I run server by
php artisan serve
, no problem happen, but when I use domain, error above occur. I think my system does not missintl extension
.Thank you
-
Hi @Jeffrey-K
This is problem with intl extension, can you check once again that your server does not miss this.
Thanks