ai-cache error

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
WarisAli
Posts: 10
Joined: 08 Sep 2022, 05:54

ai-cache error

Post by WarisAli » 13 Sep 2022, 06:58

Hello
Below configuration I have done in config/shop.php
'resource' => [
.....
'cache' => [
'redis' => [
'scheme' => 'tcp',
'host' => '10.0.0.1',
'port' => 6379,
]
]
.....
],
'madmin' => [
.....
'cache' => [
'manager' => [
'name' => 'redis',
],
],
.....
]

mshop' => [
.....
'cache' => [
'manager' => [
'name' => 'redis',
]
],
.....
]
When I run this command -> php artisan aimeos:clear it show the error below are the error.
Aimeos\MShop\Exception

Locale object not available

at C:\xampp\htdocs\shopping\aimeos\bhs-aimeos\shop\vendor\aimeos\aimeos-core\src\MShop\Context.php:366
362▕ */
363▕ public function locale() : \Aimeos\MShop\Locale\Item\Iface
364▕ {
365▕ if( !isset( $this->locale ) ) {
➜ 366▕ throw new \Aimeos\MShop\Exception( sprintf( 'Locale object not available' ) );
367▕ }
368▕
369▕ return $this->locale;
370▕ }

1 C:\xampp\htdocs\shopping\aimeos\bhs-aimeos\shop\vendor\aimeos\ai-cache\src\MAdmin\Cache\Manager\Redis.php:57
Aimeos\MShop\Context::locale()

2 C:\xampp\htdocs\shopping\aimeos\bhs-aimeos\shop\vendor\aimeos\aimeos-laravel\src\Aimeos\Shop\Command\ClearCommand.php:48
Aimeos\MAdmin\Cache\Manager\Redis::getCache()
it's not getting the Locale.

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

Re: ai-cache error

Post by aimeos » 13 Sep 2022, 09:05

Can you please update to aimeos/ai-cache:2022.07.x-dev?
The locale isn't required any more.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply