Skip to content

Script for correcting corrupted serialized data #1014

@oricgn

Description

@oricgn

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions