• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

Class 'NumberFormatter' not found when use with domain

Bug Report
2
2
1.2k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    Jeffrey K last edited by 28 Nov 2019, 20:38

    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 miss intl extension.

    Thank you

    1 Reply Last reply Reply Quote 0
    • R
      rahul last edited by 30 Nov 2019, 07:28

      Hi @Jeffrey-K

      This is problem with intl extension, can you check once again that your server does not miss this.

      Thanks

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post