This is a screenshot with the error dump:
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?
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