PHP 7.2 session_set_save_handler() cannot change save handler
1
2
So i'm struggling with updating PHP for my magento from 7.0 to 7.2. Currently running Magento version 1.9.4.0. And i get those errors now on a save event in my ERP system Warning: session_set_save_handler(): Cannot change save handler when headers already sent in app/code/local/Mage/Core/Model/Resource/Session.php on line 160 Warning: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 119 Warning: session_start(): Cannot start session when headers already sent in app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 134 The code i assume is causing this is the following: $orderItem = Mage::getModel('sales/order_item')->load($orderItemId); $erpOrderItem = Mage:...