Jump to content

Error: "No decimal pattern found for numbering system"


psauleda

Recommended Posts

Hello.

This morning I have disabled imageslider module on a 1.7 prestashop.

After that, I don't remember exactly if I disabled banner module or just tried to enter its configuration, but anyway the site crashed.


On debug mode it says:


CRITICAL 13:00:38     php     Uncaught Exception: No decimal pattern found for numbering system:
CRITICAL 13:00:38     request     Uncaught PHP Exception PrestaShop\PrestaShop\Core\Localization\Exception\LocalizationException: "No decimal pattern found for numbering system: " at /var/www/MYPATH/MYSITE/src/Core/Localization/CLDR/Locale.php line 212


Looking at google, some people solved it by deleting cache. But after deleting /var/cache/dev and /var/cache/prod, I still have the error.

Link to comment
Share on other sites

19 hours ago, psauleda said:

No decimal pattern found for numbering system:

After colon, it should display the value of `$numberingSystem`

 

Function explanation about $numberingSystem :
If null, the default numbering system of this locale will be used.

/**
     * Get the number symbols to use for a given numbering system.
     *
     * @param string|null $numberingSystem
     *                                     The numbering system of the wanted symbols set.
     *                                     If null, the default numbering system of this locale will be used.
     *
     * @return NumberSymbolsData
     *                           The wanted number symbols
     *
     * @throws LocalizationException
     *                               When passed $numberingSystem is invalid
     */
    public function getNumberSymbolsByNumberingSystem($numberingSystem = null)
    {
        if (null === $numberingSystem) {
            $numberingSystem = $this->getDefaultNumberingSystem();
        }
        if (!isset($this->getAllNumberSymbols()[$numberingSystem])) {
            throw new LocalizationException('Invalid numbering system: ' . $numberingSystem);
        }

        return $this->getAllNumberSymbols()[$numberingSystem];
    }

 

Maybe check files / data related to locale 
OR functions related to disabling / configuring imageslider 

Could it be cached on hosting side?

At worst, reimport locale to the system

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...