View RSS Feed

Nick's Hotaru CMS Blog

Bug Fixing the Pligg Importer

Rate this Entry
The Pligg Importer takes such a long time to import data, that I have time for another blog post!

It turns out that the changes I made to the way user permissions work broke the Pligg Importer, but finding out why took ages to figure out!

The plugin takes an XML file and break it down into objects, but I never thought that assigning a string to an object would then make that string an object!

Here's a string:

PHP Code:
$role 'admin'
Here's an object:

PHP Code:
$child->user_level 'admin'
Of course, I understood that $child was an object, but I thought $child->user_level was a string. Silly me.

Anyway, to cut a long story short, that one little glitch led to a series of errors that took forever to work through because the Pligg Importer takes such a looooooooong time.

Ah! I think it's finished. Time to wrap this one up and upload the latest version.

Submit "Bug Fixing the Pligg Importer" to Digg Submit "Bug Fixing the Pligg Importer" to del.icio.us Submit "Bug Fixing the Pligg Importer" to StumbleUpon Submit "Bug Fixing the Pligg Importer" to Google

Comments

Trackbacks

Total Trackbacks 0
Trackback URL: