Error when try to add new tennant in multishop

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
AleksandarJovanovic
Posts: 53
Joined: 01 Jun 2022, 21:26

Error when try to add new tennant in multishop

Post by AleksandarJovanovic » 25 Sep 2024, 19:55

Php 8.2
Linux
Version 2024.07.

Hello everyone,
I have a problem when trying to add a new tenant in the multi-shop using the command:
php artisan aimeos:setup <site code>.

I get the following error:

No item found for conditions: Array
(
[locale.site.code] => proba
)

The new site does not appear in the admin panel, so I can't change the language or add it there.
Thanks in advance.
Attachments
Screenshot from 2024-09-25 21-55-17.png
Screenshot from 2024-09-25 21-55-17.png (52.51 KiB) Viewed 19998 times

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

Re: Error when try to add new tennant in multishop

Post by aimeos » 26 Sep 2024, 09:03

Can you please run "composer up" and try again? That problem should have been fixed recently.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
AleksandarJovanovic
Posts: 53
Joined: 01 Jun 2022, 21:26

Re: Error when try to add new tennant in multishop

Post by AleksandarJovanovic » 26 Sep 2024, 09:15

I try that first but the problem still exist. I found another whay that i create first in admin and add locale for new tennant than activate comand for new multi shop. In that way works but on standard way cant create.

If you have idea will be great.

Best regards

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

Re: Error when try to add new tennant in multishop

Post by aimeos » 26 Sep 2024, 09:30

Sorry, you need to reinstall the Aimeos distribution from scratch because the change was here and this code isn't updated automatically like a package:
https://github.com/aimeos/aimeos/commit ... 4725fc5324
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
AleksandarJovanovic
Posts: 53
Joined: 01 Jun 2022, 21:26

Re: Error when try to add new tennant in multishop

Post by AleksandarJovanovic » 26 Sep 2024, 10:23

Ok just to install new installation?

Tnx

User avatar
AleksandarJovanovic
Posts: 53
Joined: 01 Jun 2022, 21:26

Re: Error when try to add new tennant in multishop

Post by AleksandarJovanovic » 26 Sep 2024, 10:45

I have installed a completely new installation, and the problem is the same.
Am I making a mistake somewhere?

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

Re: Error when try to add new tennant in multishop

Post by aimeos » 30 Sep 2024, 10:01

OK, we've understood the problem now. In the 2024.10 version released in the next days, the setup command will be able to create new sites and add the necessary locale item automatically. You will be also able to configure the language and currently of the locale item (if different from en/USD) by using:

Code: Select all

php artisan aimeos:setup --option=setup/language:de --option=setup/currency:EUR testsite
AleksandarJovanovic wrote: 26 Sep 2024, 09:15 I try that first but the problem still exist. I found another whay that i create first in admin and add locale for new tennant than activate comand for new multi shop. In that way works but on standard way cant create.
Up to now, this is the way to go. Sorry for the misunderstanding!
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
AleksandarJovanovic
Posts: 53
Joined: 01 Jun 2022, 21:26

Re: Error when try to add new tennant in multishop

Post by AleksandarJovanovic » 30 Sep 2024, 14:06

Thank you for all support.

Best regards. Alex

Post Reply