Admin panel and change default site code error
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Admin panel and change default site code error
I changed default site code from "default" to "pl" and during logging to admin panel I receive error:
https://prnt.sc/AyKuQdolTNko
I have added in shop.php:
'mshop' => [
'locale' => [
'site' => 'pl', // used instead of "default"
]
],
https://prnt.sc/AyKuQdolTNko
I have added in shop.php:
'mshop' => [
'locale' => [
'site' => 'pl', // used instead of "default"
]
],
- VirtualSpy
- Advanced
- Posts: 122
- Joined: 05 Jul 2022, 07:55
Re: Admin panel and change default site code error
in your url there is showing site code "default" so it is showing error.krzysiekp wrote: ↑14 Oct 2022, 07:53 I changed default site code from "default" to "pl" and during logging to admin panel I receive error:
https://prnt.sc/AyKuQdolTNko
I have added in shop.php:
'mshop' => [
'locale' => [
'site' => 'pl', // used instead of "default"
]
],
Re: Admin panel and change default site code error
Maybe your configuration in your config/shop.php isn't at the correct place so still "default" is used while you've already renamed the site in the database. You have to change exactly this line:
https://github.com/aimeos/aimeos-larave ... p.php#L178
Make also sure that your configuration isn't cached by Laravel and use:
https://github.com/aimeos/aimeos-larave ... p.php#L178
Make also sure that your configuration isn't cached by Laravel and use:
Code: Select all
php artisan optimize:clear
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Admin panel and change default site code error
There is still the error
Re: Admin panel and change default site code error
Most likely, your admin user doesn't have "admin" or "editor" or "super" privileges or not valid site ID in his record in the users table ("1." for single site setups).
Relevant code:
https://github.com/aimeos/ai-admin-jqad ... hp#L46-L47
Relevant code:
https://github.com/aimeos/ai-admin-jqad ... hp#L46-L47
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star