We offer professional Design/Code Customisation and Website Optimisation Service Request Customisation
  • Status: Waiting on customer

Ticket #11821 - Problems with the theme in multistore.

We need to create a MultiStore site with the Alysum theme.
At present, we have configured the Prestashop as one Store, but when we create the second Store and active the Alysum theme, we get the next error:

Fatal error: Uncaught TypeError: Argument 5 passed to PrestaShop\PrestaShop\Core\Addon\Theme\ThemeManager::construct() must be an instance of Employee, null given, called in /usr/home/ka-international.com/web/okisam/src/Core/Addon/Theme/ThemeManagerBuilder.php on line 73 and defined in /usr/home/ka-international.com/web/okisam/src/Core/Addon/Theme/ThemeManager.php:62 Stack trace: #0 /usr/home/ka-international.com/web/okisam/src/Core/Addon/Theme/ThemeManagerBuilder.php(73): PrestaShop\PrestaShop\Core\Addon\Theme\ThemeManager→construct(Object(Shop), Object(PrestaShop\PrestaShop\Adapter\Configuration), Object(PrestaShop\PrestaShop\Core\Addon\Theme\ThemeValidator), Object(PrestaShopBundle\Translation\TranslatorComponent), NULL, Object(Symfony\Component\Filesystem\Filesystem), Object(Symfony\Component\Finder\Finder), Object(PrestaShop\PrestaShop\Core\Module\HookConfigurator), Object(PrestaShop\PrestaShop\Core\Addon\Theme\ThemeRepository), Object(PrestaShop\PrestaShop\Core\Image\ImageTypeRepository)) #1 /usr/home/ka-intern in /usr/home/ka-international.com/web/okisam/src/Core/Addon/Theme/ThemeManager.php on line 62

If we change the theme from the admin panel, and reactive the Alysum, the theme seems to be charged but without the modules and wrong CSS.
Firstly, I supossed that the Alysum theme don’t support multistore, but then I saw, that it does have that feature.

I would like a Multistore, with the same theme settings and hooks positions, because I need the “same” store with different languages and prices.
Please, I need to solve this urgently, because the client needs to have the site already.


This ticket does not depend on any other tickets.

Marek (marek) 09 Mar 2018, 11:41

Hi, Jaime.
Please fill out all necessary fields in your profile https://support.promokit.eu/index.php?do=myprofile to access to your back office

Jaime Rico (franciscojover) 09 Mar 2018, 13:12

the user details have been update.

Marek (marek) 09 Mar 2018, 14:28

I'm not able to login to back office

Jaime Rico (franciscojover) 09 Mar 2018, 16:02

Sorry, the password is already updated.

Marek (marek) 09 Mar 2018, 16:21

I just checked out all your shops and there is no any issues with the Theme Settings. Our demo contain 10 stores and ask works fine

Jaime Rico (franciscojover) 09 Mar 2018, 16:32

I wanna duplicate the theme settings of the main shop, but the in the others one I can't do that.
How can I replicate the same Home, hooks positions and modules?

Marek (marek) 09 Mar 2018, 16:34

try to save configured preset and select in in other stores

Jaime Rico (franciscojover) 09 Mar 2018, 17:35

Hi again,

I do what you say, and some thing of the theme are loaded.
But the other modules can not load the setting of the main shop.
¿Should we have to configure again all the modules?

If this is the solution, maybe is easier to copy all the prestashop files and database. Translate and change the prices.
This being so, I am not understanding the advantages of the multishop.

Marek (marek) 09 Mar 2018, 19:15

Should we have to configure again all the modules? - yes, right. That is a prestashop peculiarity
How to decide if you need the multistore feature - You can read here http://doc.prestashop.com/display/PS16/Managing+Multiple+Shops