Skip to content
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

Script for correcting corrupted serialized data #1014

Open
oricgn opened this issue Oct 11, 2016 · 0 comments
Open

Script for correcting corrupted serialized data #1014

oricgn opened this issue Oct 11, 2016 · 0 comments

Comments

@oricgn
Copy link
Contributor

oricgn commented Oct 11, 2016

When database encoding changed from single to multibyte character set unserialize function fails for data with multibyte characters if database content is not converted too.

We need a script to correct corrupted serialized data.

The script is quit simple:

  • loop through all messages (see scripts/rebuild_thread_info.php as example)
  • try to unserialize the meta data
  • catch the error and fix the serialized data with a preg_replace (like we did in this commit 1778174)

We need to run the script against the support forums on phorum.org!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant