Home > Plesk > Internal error: session has already been started by session.auto-start or session_start()

Internal error: session has already been started by session.auto-start or session_start()

 

 

I have upgraded Plesk version 10.3.3 to 10.4.4 via Autoinstaller, after that Plesk was showing the following error,

Internal error: session has already been started by session.auto-start or session_start()

 

In the plesk error log file “/var/log/sw-cp-server/error_log” the following message is shown,

Message session has already been started by session.auto-start or session_start()
File /opt/psa/admin/plib/Zend/Session.php
Line 451
Type Zend_Session_Exception
Stack trace #0 /opt/psa/admin/plib/Zend/Session/Namespace.php(143): Zend_Session::start(true)
#1 /opt/psa/admin/plib/Zend/Auth/Storage/Session.php(87): Zend_Session_Namespace->__construct('Zend_Auth')
#2 /opt/psa/admin/plib/Zend/Auth.php(91): Zend_Auth_Storage_Session->__construct()
#3 /opt/psa/admin/plib/Zend/Auth.php(151): Zend_Auth->getStorage()
#4 /opt/psa/admin/smb/application/library/Smb/Auth.php(38): Zend_Auth->getIdentity()
#5 /opt/psa/admin/smb/application/library/Smb/Controller/Action/Admin.php(173): Smb_Auth::getUser()
#6 /opt/psa/admin/smb/application/library/Smb/Controller/Action/Admin.php(81): Smb_Controller_Action_Admin->_initCurrentUser()
#7 /opt/psa/admin/plib/Zend/Controller/Action.php(133): Smb_Controller_Action_Admin->init()
#8 /opt/psa/admin/plib/Zend/Controller/Dispatcher/Standard.php(268): Zend_Controller_Action->__construct(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http), Array)
#9 /opt/psa/admin/plib/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#10 /opt/psa/admin/smb/application/library/Smb/Application/Web.php(48): Zend_Controller_Front->dispatch(NULL)
#11 /opt/psa/admin/smb/application/public/index.php(15): Smb_Application_Web->run()
#12 {main}
Code fragment 
#446: 
#447: // See http://www.php.net/manual/en/ref.session.php for explanation
#448: if (!self::$_unitTestEnabled && defined('SID')) {
#449: /** @see Zend_Session_Exception */
#450: ;// require_once 'Zend/Session/Exception.php';
#451: throw new Zend_Session_Exception('session has already been started by session.auto-start or session_start()');
#452: }
#453: 
#454: /**
#455: * Hack to throw exceptions on start instead of php errors

 

 

Steps to fix the issue:

1) In the error message problem was found to be with line 451 of file “/opt/psa/admin/plib/Zend/Session.php”. Find out the plesk package related to this file using ‘dpkg’ command.

root@4444:/# dpkg -S /opt/psa/admin/plib/Zend/Session.php
plesk-core: /opt/psa/admin/plib/Zend/Session.php
root@4444:/#

 

2) Download the plesk-core package from “http://autoinstall.plesk.com” , remove the existing plesk-core package and then install the plesk-core package again. After that restart the plesk service.

wget http://autoinstall.plesk.com/PSA_10.4.4/dist-deb-Debian-5.0-x86_64/base/plesk-core_10.13.4-debian5.0.build1013111102.18_amd64.deb
dpkg -r --force-depends plesk-core
dpkg -i plesk-core_10.13.4-debian5.0.build1013111102.18_amd64.deb 
/etc/init.d/psa restart

 

Advertisements
Categories: Plesk
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: