cancel
Showing results for 
Search instead for 
Did you mean: 

Magento Fatal ERROR on SERVER - A session is active.

Magento Fatal ERROR on SERVER - A session is active.

Hi,

 

I uploaded my Magento project files to the server. But getting below fatal error.

 

 A session is active. You cannot change the session module's ini settings at this time in /home/vln9w1ofdev8/public_html/vendor/magento/framework/Session/SessionManager.php on line 129";i:1;s:9436:"#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'ini_set(): A se...', '/home/vln9w1ofd...', 129, Array)

 

Thanks,

KARTHIK

2 REPLIES 2

Re: Magento Fatal ERROR on SERVER - A session is active.

kinldy refer below links,

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

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

 

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Magento Fatal ERROR on SERVER - A session is active.

I solved this issue by editing the below file

 

/vendor/magento/framework/Session/SessionManager.php

/vendor/magento/framework/Session/SessionManager.php
// Enable session.use_only_cookies
if (!$this->isSessionExists()) {
    // Enable session.use_only_cookies
    ini_set('session.use_only_cookies', '1');
}

URL => https://www.hrms-systems.com/sfkapps/

-Thanks & Best Regards, Zohaib