Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start()

clime picture clime · Feb 24, 2012 · Viewed 7.9k times · Source

This is a screenshot with the error dump: any idea what can be caused of this?

I occassionaly get this error while browsing a website i am developing. Obviously session can't be started but i have no idea how to prevent this error because it occurs randomly (as it seems to me). Any idea how can I prevent this error to occur?

Answer

user2712873 picture user2712873 · Nov 27, 2019

I faced the same error and found the root case that PHP application was developed using PHP 5.6. Later on, I installed PHP 7.2 & trying to run PHP 5.6 application using PHP 7.2. Disabling PHP 7.2 worked for me.

Sharing below commands for reference:

sudo a2dismod php7.2 
sudo a2enmod php5.6 
sudo service apache2 restart 
sudo update-alternatives --set php /usr/bin/php5.6 
sudo update-alternatives --set phar /usr/bin/phar5.6 
sudo update-alternatives --set phar.phar /usr/bin/phar.phar5.6