Page 1 of 1

Sparticus problem (and fix?)

Posted: Tue Feb 07, 2006 2:53 pm
by volkris
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:

Code: Select all

   
            unset($data['true_name']);
            unset($data['customURI']);
            unset($data['groups']);
            $data['last_modified'] = $lastModified;  // <---- added line
            $data['requirements'] = serialize($data['requirements']);
        }
(sorry about the lack of line numbers)

This works for me, though there may be more appropriate ways to fix the problem.

Re: Sparticus problem (and fix?)

Posted: Tue Feb 07, 2006 3:22 pm
by garvinhicking
Hi volkris!

Many thanks for pointing this out! I have fixed the error like you suggested, basically.

Best regards,
Garvin