Multisites not working

Questions around the Aimeos bundle for the Symfony framework
Forum rules
Always add your Symfony, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
humsterman86
Posts: 2
Joined: 22 Nov 2018, 16:05

Multisites not working

Post by humsterman86 » 22 Nov 2018, 16:13

Im added custom settings for routing from documentation https://aimeos.org/docs/Symfony/Configu ... iple_shops, run command php bin/console aimeos:setup testshop, no errors and other, but - when I send request to http://localhost:8099/testshop/, http://localhost:8099/testshop/list, etc - always got error 'No route found for "GET /testshop/list"'. Environment already switched to PROD. Symfony 4.1. Could you explain me, what is missed?

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

Re: Multisites not working

Post by aimeos » 22 Nov 2018, 18:00

Did you forgot to run

Code: Select all

./bin/console cache:clear
to update the changed routing?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

humsterman86
Posts: 2
Joined: 22 Nov 2018, 16:05

Re: Multisites not working

Post by humsterman86 » 26 Nov 2018, 11:08

Yep, and I got message:

Code: Select all

./bin/console cache:clear

 // Clearing the cache for the dev environment with debug true                                                          


In RouteCompiler.php line 137:
                                                                                                                
  Route pattern "/{site}/admin/{site}/jqadm/file/{type}" cannot reference variable name "site" more than once.  
                                                                                                                

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

Re: Multisites not working

Post by aimeos » 26 Nov 2018, 11:37

Did you forget to set the "aimeos_shop_admin" and "aimeos_shop_admin_check" routes?
https://aimeos.org/docs/Symfony/Configu ... he_routing
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply