I've also previously fixed the shutterfly link--I'll take a look and compare, if there are any noteworthy differences I'll post more info.
Error: Unable to move file.
SP:/tmp/phpg6d1et
DP:var/www/html/modules/dms/repository/1/1/1/800001
#
# Table structure for table 'xoops_ws_restrictions'
#
CREATE TABLE xoops_ws_restrictions (
#
# Table structure for table 'ws_restrictions'
#
CREATE TABLE ws_restrictions (
$pm_arr =& $pm_handler->getObjects(new Criteria('to_userid', $xoopsUser->getVar('uid')));
$criteria = new CriteriaCompo(new Criteria('to_userid', $xoopsUser->getVar('uid')));
$criteria->setSort('msg_time');
$criteria->setOrder('desc');
$pm_arr =& $pm_handler->getObjects($criteria);