Sparticus problem (and fix?)

Discussion corner for Developers of Serendipity.
Post Reply
volkris
Posts: 1
Joined: Tue Feb 07, 2006 12:41 pm
Location: College Station, TX

Sparticus problem (and fix?)

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Sparticus problem (and fix?)

Post by garvinhicking »

Hi volkris!

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

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply