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
Exception caught in the wrong namespace #3192
Comments
Cool ... that prevents it dying on a fatal error in serialize The additonal issue on that site is that the db value is a string so unserialize fails (as it should), but then I'm not sure if the db value was supposed to be array serialized in the upgrade or we are mishandling the value when it is a string and not a serialized array. |
In theory the attachments directory code was already "protected" by empty unserialize due to all the fallbacks to the single-directory structure from pre-SMF2.0, unless something is gone in the meantime... 😇 |
If I put a string in the db it bombs but I'm not sure if thats even possible anyway shrugs |
/me adds streamlining of attachments handling among the priorities for 2.0. 👼 |
That code is such a disaster, and so hard to "reuse" from addons (like the attachment resize one I have, what a PITA to get it working). I'm going to redo the graphic subs as well, another disastrous chunk of code. |
In /sources/ext/serialize.php the exception:
is in the "wrong" namespace and so it's not caught at all.
to avoid changing the code, I'd just add:
after the namespace declaration (that was anyway added by me).
The text was updated successfully, but these errors were encountered: