Locale object not available

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Spixi
Posts: 9
Joined: 14 Sep 2021, 12:20

Locale object not available

Post by Spixi » 03 Oct 2021, 14:30

Heyy,
I renamed my default site, now I can't access anything due to "Aimeos\MShop\Exception
Locale object not available" - vendor/aimeos/aimeos-core/lib/mshoplib/src/MShop/Context/Item/Standard.php:425

I tried hardcoding the setting of Locale object - it just changes the error to " Internationalization object not available for "" "

Any help, please?

Aimeos core 2021.07.5, PHP 7.4, Linux/Mac shows the same.

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Locale object not available

Post by aimeos » 04 Oct 2021, 06:58

The "default" site is the only one you can not rename because it's the hard-coded fallback whenever no site is part of the URL.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Spixi
Posts: 9
Joined: 14 Sep 2021, 12:20

Re: Locale object not available

Post by Spixi » 04 Oct 2021, 15:18

Thanks, but how can I make it work again?

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Locale object not available

Post by aimeos » 05 Oct 2021, 11:32

Use phpMyAdmin or the mysql console command to update the value in the database back to "default"
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply