(please specify the website or account you are asking about)
“Warning [2] unserialize() has been disabled for security reasons - Line: 112 - File: inc/class_datacache.php PHP 7.3.6 (Linux)”
(please share the FULL error message you see)
recently this was not a problem randomly MyBB is trying to get me to upgrade and when I try and do that it says the above I don’t understand how this has happened.
i want to highlight this site was fine only hours ago and i have made no changes to it.
(other information and details relevant to your question)
Hi, I’m not using MyBB, I’m using that function with Cakephp 2.9 for my sessions I would like to enabled it again if it’s possible thank’s my dear nodrog 1061 or what I need to do for that trouble.
Security issues were found in old PHP version, which most websites were using before. Disabling the unserialize function is a mitigation that was applied after this issue came to light. Of course, unserialize is a quite common function, so this is a temporary fix. But servers are being upgraded right now to a new PHP version which doesn’t have this issue.
For the account of @nodrog1061, it has been upgraded to PHP 7.4, so unserialize should be working again.
For the account of @Miceg29, your account is currently using PHP 5.4. This is a very old version of PHP which may have unsolved security problems too. Unless you have a very good reason to use an older PHP version, you should switch to PHP 7.4 as well. And if you do have to use another PHP version, please use the latest version that your website will support.