Bug Fixing the Pligg Importer
by, 11-22-2009 at 04:07 AM (1051 Views)
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:
Here's an object:PHP Code:
$role = 'admin';
Of course, I understood that $child was an object, but I thought $child->user_level was a string. Silly me.PHP Code:
$child->user_level = 'admin';
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.
Total Trackbacks 0