cancel
Showing results for 
Search instead for 
Did you mean: 

Session errors on multisite.

Highlighted

Session errors on multisite.

Hello,

 

I cant seem to solve this.

 

We have two websites with 2 different store views. site one is www.shop.com. second site is www.site.shop.com. Magento version is 2.2.9

 

Was adding products and working on the website no problem for a few days, had 2 days off, came back to it and our second site is now showing:

 

There has been an error processing your request

Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in /home/shop/public_html/vendor/magento/framework/Session/SessionManager.php on line 142

Error log record number: 1051481970402

That error log displays:

{"0":"Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in \/home\/greenhea\/public_html\/vendor\/magento\/framework\/Session\/SessionManager.php on line 142","1":"<pre>#1 ini_set() called at [vendor\/magento\/framework\/Session\/SessionManager.php:142]\n#2 Magento\\Framework\\Session\\SessionManager->__construct() called at [vendor\/magento\/module-customer\/Model\/Session.php:168]\n#3 Magento\\Customer\\Model\\Session->__construct() called at [generated\/code\/Magento\/Customer\/Model\/Session\/Interceptor.php:14]\n#4 Magento\\Customer\\Model\\Session\\Interceptor->__construct() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:111]\n#5 Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->createObject() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:66]\n#6 Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create() called at [vendor\/magento\/framework\/ObjectManager\/ObjectManager.php:70]\n#7 Magento\\Framework\\ObjectManager\\ObjectManager->get() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:144]\n#8 Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgument() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:230]\n#9 Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgumentsInRuntime() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:34]\n#10 Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->_resolveArguments() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:59]\n#11 Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create() called at [vendor\/magento\/framework\/ObjectManager\/ObjectManager.php:70]\n#12 Magento\\Framework\\ObjectManager\\ObjectManager->get() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:144]\n#13 Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgument() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:230]\n#14 Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgumentsInRuntime() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:34]\n#15 Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->_resolveArguments() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:59]\n#16 Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create() called at [vendor\/magento\/framework\/ObjectManager\/ObjectManager.php:70]\n#17 Magento\\Framework\\ObjectManager\\ObjectManager->get() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:144]\n#18 Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgument() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:230]\n#19 Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgumentsInRuntime() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:34]\n#20 Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->_resolveArguments() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:59]\n#21 Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create() called at [vendor\/magento\/framework\/ObjectManager\/ObjectManager.php:70]\n#22 Magento\\Framework\\ObjectManager\\ObjectManager->get() called at [vendor\/magento\/framework\/Interception\/PluginList\/PluginList.php:250]\n#23 Magento\\Framework\\Interception\\PluginList\\PluginList->getPlugin() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:119]\n#24 Magento\\Framework\\App\\Http\\Context\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#25 Magento\\Framework\\App\\Http\\Context\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Framework\/App\/Http\/Context\/Interceptor.php:78]\n#26 Magento\\Framework\\App\\Http\\Context\\Interceptor->getVaryString() called at [vendor\/magento\/framework\/App\/PageCache\/Identifier.php:57]\n#27 Magento\\Framework\\App\\PageCache\\Identifier->getValue() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#28 Magento\\Framework\\App\\PageCache\\Identifier\\Interceptor->___callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#29 Magento\\Framework\\App\\PageCache\\Identifier\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#30 Magento\\Framework\\App\\PageCache\\Identifier\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Framework\/App\/PageCache\/Identifier\/Interceptor.php:26]\n#31 Magento\\Framework\\App\\PageCache\\Identifier\\Interceptor->getValue() called at [vendor\/magento\/framework\/App\/PageCache\/Kernel.php:115]\n#32 Magento\\Framework\\App\\PageCache\\Kernel->load() called at [vendor\/magento\/module-page-cache\/Model\/App\/FrontController\/BuiltinPlugin.php:71]\n#33 Magento\\PageCache\\Model\\App\\FrontController\\BuiltinPlugin->aroundDispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n#34 Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/swissup\/module-amp\/Plugin\/Framework\/FrontController.php:48]\n#35 Swissup\\Amp\\Plugin\\Framework\\FrontController->aroundDispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n#36 Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#37 Magento\\Framework\\App\\FrontController\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Framework\/App\/FrontController\/Interceptor.php:26]\n#38 Magento\\Framework\\App\\FrontController\\Interceptor->dispatch() called at [vendor\/magento\/framework\/App\/Http.php:136]\n#39 Magento\\Framework\\App\\Http->launch() called at [generated\/code\/Magento\/Framework\/App\/Http\/Interceptor.php:24]\n#40 Magento\\Framework\\App\\Http\\Interceptor->launch() called at [vendor\/magento\/framework\/App\/Bootstrap.php:257]\n#41 Magento\\Framework\\App\\Bootstrap->run() called at [site.shop.com\/index.php:39]\n<\/pre>","url":"\/","script_name":"\/index.php"}

Cookies domains seem to be set right.

 

Thanks in advance for any help!

1 REPLY 1

Re: Session errors on multisite.

Hi @TonyLeeB 

 

Please refer below links, these links will help to resolve this issue:

 

https://github.com/joomla/joomla-cms/issues/15680

https://mage2.pro/t/topic/5232/4

 Issue Solved, Click Kudos/Accept As solutions.