Page 1 of 1

Problem with the Plugin -> serendipity_plugin_showentries

Posted: Tue Jan 23, 2007 6:03 pm
by Googol
Hello

Ive installed the plug and get on the front end instead of the Sidebar this

Code: Select all

Query failed:

SELECT 
                    

                    e.id,
                    e.title,
                    e.timestamp,
                    e.comments,
                    e.exflag,
                    e.authorid,
                    e.trackbacks,
                    e.isdraft,
                    e.allow_comments,
                    e.last_modified,

                    a.realname AS author,
                    a.username AS loginname,
                    a.email
                     , e.body, e.extended
                     
                FROM
                    blog_karlauer_entries AS e
                    LEFT JOIN blog_karlauer_authors a
                        ON e.authorid = a.authorid
                    LEFT JOIN blog_karlauer_entrycat ec
                        ON e.id = ec.entryid
                    LEFT JOIN blog_karlauer_category c
                        ON ec.categoryid = c.categoryid
                     LEFT JOIN blog_karlauer_authorgroups AS acl_a
                                   ON acl_a.authorid = 13
                            LEFT JOIN blog_karlauer_access AS acl_acc
                                   ON (    acl_acc.artifact_mode = 'read'
                                       AND acl_acc.artifact_type = 'category'
                                       AND acl_acc.artifact_id   = c.categoryid
                                      )
                    WHERE isdraft = 'false' AND e.timestamp <= 1169571900 AND     (
                                 c.categoryid IS NULL
                                 OR ( acl_acc.groupid = acl_a.groupid OR acl_acc.groupid = 0)
                                 OR ( acl_acc.artifact_id IS NULL
                                      
                                    )
                               )
                     GROUP BY e.id
            ORDER BY timestamp DESC
                      LIMIT 0, 15, 5

/ You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' 5' at line 44
Can someone help me?

Iam using Serendipity 1.1 and PHP 4.4.1

Re: Problem with the Plugin -> serendipity_plugin_showent

Posted: Wed Jan 24, 2007 9:49 am
by garvinhicking
Hi!

The error is that "Limit 0, 15, 5" statement. Could it be that you modified some plugin files, or entered some a "15, 5" string in the configuration of the amount of entries per page in the s9y configuration?

Actually that plugin should not be related to this problem, I guess it must be something else you did?

Best regards,
Garvin

Posted: Thu Jan 25, 2007 3:19 pm
by Googol
thx a lot for this hint, there was such a string in the config :(
Your plugin works fine!!!