Sparticus problem (and fix?)
Posted: Tue Feb 07, 2006 2:53 pm
I installed the 1.0b1 version yesterday and had trouble with Sparticus. It would retrieve its plugins lists, but choke trying to add entried to the database saying that "" is not a valid integer.
I'm running postgresql here and s9y was trying to insert records with the last_modified field blank causing postgresql to throw an error.
I went into plugin_api.inc.php and made the indicated change:
(sorry about the lack of line numbers)
This works for me, though there may be more appropriate ways to fix the problem.
I'm running postgresql here and s9y was trying to insert records with the last_modified field blank causing postgresql to throw an error.
I went into plugin_api.inc.php and made the indicated change:
Code: Select all
unset($data['true_name']);
unset($data['customURI']);
unset($data['groups']);
$data['last_modified'] = $lastModified; // <---- added line
$data['requirements'] = serialize($data['requirements']);
}This works for me, though there may be more appropriate ways to fix the problem.