502 error response on new site ( Routing issue )

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!
unknow76616
Posts: 48
Joined: 30 Apr 2023, 12:46

502 error response on new site ( Routing issue )

Post by unknow76616 » 19 Sep 2023, 20:41

After successfully installing Aimeos/Aimeos and adding a new site, I am trying to open the new site, but I am getting a 502 error response. The default site is working, and I have verified that SHOP_MULTISHOP=true is set in .env.


environment: Linux,ubuntu
PHP version: 8.2

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

Re: 502 error response on new site ( Routing issue )

Post by aimeos » 19 Sep 2023, 21:21

Need more information and you should also have a look into the ./storage/logs/laravel.log file
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

unknow76616
Posts: 48
Joined: 30 Apr 2023, 12:46

Re: 502 error response on new site ( Routing issue )

Post by unknow76616 » 20 Sep 2023, 07:44

here the error when try to visit the new shop
Note: the new shop code is 'nomos'
Image
It is the same error showing because it cannot find the item (product) on the shop

Code: Select all

[2023-09-20 07:38:24] local.ERROR: Locale item for site "nomos" not found {"exception":"[object] (Aimeos\\MShop\\Locale\\Exception(code: 0): Locale item for site \"nomos\" not found at ~/myapp/vendor/aimeos/aimeos-core/src/MShop/Locale/Manager/Standard.php:650)
[stacktrace]
#0 ~/myapp/vendor/aimeos/aimeos-core/src/MShop/Locale/Manager/Standard.php(258): Aimeos\\MShop\\Locale\\Manager\\Standard->bootstrapBase()
#1 [internal function]: Aimeos\\MShop\\Locale\\Manager\\Standard->bootstrap()
#2 ~/myapp/vendor/aimeos/aimeos-core/src/MShop/Common/Manager/Decorator/Base.php(51): call_user_func_array()
#3 [internal function]: Aimeos\\MShop\\Common\\Manager\\Decorator\\Base->__call()
#4 ~/myapp/vendor/aimeos/aimeos-core/src/MShop/Common/Manager/Decorator/Base.php(51): call_user_func_array()
#5 ~/myapp/vendor/aimeos/aimeos-laravel/src/Base/Locale.php(70): Aimeos\\MShop\\Common\\Manager\\Decorator\\Base->__call()
#6 ~/myapp/vendor/aimeos/aimeos-laravel/src/Base/Context.php(101): Aimeos\\Shop\\Base\\Locale->get()
#7 ~/myapp/vendor/aimeos/aimeos-laravel/src/Base/Shop.php(42): Aimeos\\Shop\\Base\\Context->get()
#8 ~/myapp/vendor/aimeos/aimeos-laravel/src/ShopServiceProvider.php(109): Aimeos\\Shop\\Base\\Shop->__construct()
#9 ~/myapp/vendor/laravel/framework/src/Illuminate/Container/Container.php(908): Aimeos\\Shop\\ShopServiceProvider->Aimeos\\Shop\\{closure}()
#10 ~/myapp/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\\Container\\Container->build()
#11 ~/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(937): Illuminate\\Container\\Container->resolve()
#12 ~/myapp/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\\Foundation\\Application->resolve()
#13 ~/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(922): Illuminate\\Container\\Container->make()
#14 ~/myapp/vendor/laravel/framework/src/Illuminate/Container/Container.php(1454): Illuminate\\Foundation\\Application->make()
#15 ~/myapp/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(236): Illuminate\\Container\\Container->offsetGet()
#16 ~/myapp/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(207): Illuminate\\Support\\Facades\\Facade::resolveFacadeInstance()
#17 ~/myapp/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(347): Illuminate\\Support\\Facades\\Facade::getFacadeRoot()
#18 ~/myapp/vendor/aimeos/aimeos-laravel/src/Controller/CatalogController.php(81): Illuminate\\Support\\Facades\\Facade::__callStatic()
#19 ~/myapp/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): Aimeos\\Shop\\Controller\\CatalogController->homeAction()
#20 ~/myapp/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction()
#21 ~/myapp/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\\Routing\\ControllerDispatcher->dispatch()
#22 ~/myapp/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#23 ~/myapp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\\Routing\\Route->run()
#24 ~/myapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()
#25 ~/myapp/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#26 ~/myapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle()
#27 ~/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#28 ~/myapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle()
#29 ~/myapp/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#30 ~/myapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle()
#31 ~/myapp/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#32 ~/myapp/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest()
#33 ~/myapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Session\\Middleware\\StartSession->handle()
#34 ~/myapp/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#35 ~/myapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle()
#36 ~/myapp/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#37 ~/myapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle()
#38 ~/myapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#39 ~/myapp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(800): Illuminate\\Pipeline\\Pipeline->then()
#40 ~/myapp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(777): Illuminate\\Routing\\Router->runRouteWithinStack()
#41 ~/myapp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(741): Illuminate\\Routing\\Router->runRoute()
#42 ~/myapp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(730): Illuminate\\Routing\\Router->dispatchToRoute()
#43 ~/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch()
#44 ~/myapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}()
#45 ~/myapp/app/Http/Middleware/SetLocale.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#46 ~/myapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\SetLocale->handle()
#47 ~/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#48 ~/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#49 ~/myapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle()
#50 ~/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#51 ~/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#52 ~/myapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle()
#53 ~/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#54 ~/myapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle()
#55 ~/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(89): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#56 ~/myapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()
#57 ~/myapp/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#58 ~/myapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Http\\Middleware\\HandleCors->handle()
#59 ~/myapp/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#60 ~/myapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Http\\Middleware\\TrustProxies->handle()
#61 ~/myapp/app/Http/Middleware/TrustHosts.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#62 ~/myapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\TrustHosts->handle()
#63 ~/myapp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#64 ~/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then()
#65 ~/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#66 ~/myapp/public/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle()
#67 ~/myapp/vendor/laravel/framework/src/Illuminate/Foundation/resources/server.php(16): require_once('...')
#68 {main}
"} 
I already have one product on my new shop, but I cannot find a way to add stock because the Add button on the stock section is not showing.
Image

unknow76616
Posts: 48
Joined: 30 Apr 2023, 12:46

Re: 502 error response on new site ( Routing issue )

Post by unknow76616 » 20 Sep 2023, 14:57

i solve it by add Locale record

Post Reply