-
-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Null deprecation in UnserializeArray.php #4352
Comments
This one is especially tricky, because when your product option is a non-numeric string (from a text-input) it causes a warning too: magento-lts/app/code/core/Mage/Sales/Model/Quote/Item.php Lines 519 to 523 in 7806f0e
|
For some reason the error does not get triggered - only with manual testing |
It's captured in |
Id suggest adding that to $str = is_null($str) ? '' : $str; |
Check for string type: if (!is_string($str) || $str === '') {
throw new Exception('Error unserializing data.');; // current behavior
} |
Turning Can you try to add "@" before Lets merge before changes #4389 ... this covers current behavoir. |
Preconditions (*)
Steps to reproduce (*)
Trace:
[1] .../app/code/core/Mage/Core/Helper/UnserializeArray.php:32
[2] .../app/code/core/Mage/Admin/Model/Resource/User.php:470
[3] .../app/code/core/Mage/Admin/Model/Resource/User.php:171
[4] .../app/code/core/Mage/Core/Model/Resource/Db/Abstract.php:385
[5] .../app/code/core/Mage/Core/Model/Abstract.php:285
Discussion
There are many potential errors, see https://github.com/search?q=repo%3AOpenMage%2Fmagento-lts+Mage%3A%3Ahelper%28%27core%2FunserializeArray%27%29&type=code
Not sure how best to fix this: go through each call to
unserialize()
or fix inMage_Core_Helper_UnserializeArray
.The text was updated successfully, but these errors were encountered: