Upgrade problem Suitecrm 8.1.0 to 8.1.2 Failed to start the session

Hello,

I have a problem with the upgrade (php version 8.0) from 8.1.0 to 8.1.2. following error is shown:
In NativeSessionStorage.php line 152:

Failed to start the session because headers have already been sent by “//vendor/symfony/http-foundation/Session/Attribute/AttributeBag.p
hp” at line 17.

Before:
Deprecated: Return type of Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in //vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php on line 134

Can someone help me?

Thanks!
testes

Edit your php.ini in order to ignore deprecated errors.
This is the settings we apply across all the environments:
error_reporting = E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED & ~E_STRICT & ~E_NOTICE

thanks for your help andopes.
it is good to igonre the deprecated errors, but the upgrade doesn’t work because of the error:

In NativeSessionStorage.php line 152:

Failed to start the session because headers have already been sent by
/vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php" at line 17.

Hi testes, did you manage to figure this out? I’m trying to upgrade from 7 to 8.2 locally, and getting this error as well.

unfortunately not, I think it is a problem with PHP Version

Clearing cache folder fixed the error for me.

Hello which Cache did u clear? and how?
Thanks!

Hello

Same problem when i execute ./bin/console suitecrm:app:upgrade -t SuiteCRM-8.4.0 upgrading from 7.14
I cleaned cache and reinstall composer, update composer … tested with php 7.4.9 , 7.4.33, 8.2.10

And when upgrade suitecrm always messages like

In NativeSessionStorage.php line 152:

Failed to start the session because headers have already been sent by “C:\wamp64\www\crm\public\legacy\deprecated.p
hp” at line 21.

Please, any idea ?

Thank’s

Any updates? has this issue been fixed?

Hey,
for me it worked editing NativeSessionStorage.php and deactivate the lines in 146 - 166

Thank you very much, i will try and comment :clap:

It works, now i’ve other problems but your sollution is valid. Thank you very much.