« welcome back to the edge | Main | pfizer's coxcomb »

changing more MT source

I've been having a problem with MT-Blacklist 2.x for a while now; it stopped saving my preferences.

After loads of fruitless and frustrated (and frustrating) Google and code searches, I finally found an oblique reference to the same problem with someone using Postgres — and a workaround.

It turns out that it's another bug in MT 3.1: in the mt_plugindata table, the plugindata_data column is of type mediumtext. However, there's no binary-to-text conversion performed on a Storable freeze/thaw of this data inside MT::PluginData, so any plugin using binary data has a data loss.

David had a replacement for MT::PluginData::data already written that worked like a charm for mysql as well. In effect, all it does is perform a simple pack/unpack to convert the data.

David Raynes: Thank you, dude. Seriously.

Sixapart: That's two codebase mods I've made to 3.121. Please don't let this continue! I really hope at least the Storable fix is present in the forthcoming release (3.13) that Jay announced regarding the resource drain bugs on comment firehosing.

TrackBack

TrackBack URL for this entry:
http://blog.truegeek.org/tg-tb.cgi/1912

Comments (2)

You're welcome. :)

With every new release, I pester the folks at 6A about the problem with Postgres. Considering some of the other stuff they have to deal with out there, I can understand why this isn't exactly at the top of their priority list right now.

Scott Swanson [TypeKey Profile Page]:

Just a followup note: in 3.2, they did away with Storable, and thus also this bug.

Post a comment

About

This page contains a single entry from the blog posted on December 17, 2004 12:24 PM.

The previous post in this blog was welcome back to the edge.

The next post in this blog is pfizer's coxcomb.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type 3.34