Keine Artikel auf der Startseite

Hier können Probleme und alles andere in Deutscher Sprache gelöst werden.
Post Reply
radarin
Regular
Posts: 150
Joined: Sat Nov 25, 2006 5:33 pm
Location: St.Gallen/Schweiz
Contact:

Keine Artikel auf der Startseite

Post by radarin »

ich habe im adminbereich die anzahl artikel auf der startseite auf 0 (null) gesetzt, weil ich da keine artikel haben will. jetzt läuft das blog gar nicht mehr, wird nur das ausgegeben:

Code: Select all

Query failed:

SELECT 
                    ep_sticky.value AS orderkey,

                    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_entries AS e
                    LEFT JOIN blog_authors a
                        ON e.authorid = a.authorid
                    LEFT JOIN blog_entrycat ec
                        ON e.id = ec.entryid
                    LEFT JOIN blog_category c
                        ON ec.categoryid = c.categoryid
                     LEFT OUTER JOIN blog_entryproperties ep_no_frontpage
                                                  ON (e.id = ep_no_frontpage.entryid AND ep_no_frontpage.property = 'ep_no_frontpage')
 LEFT OUTER JOIN blog_entryproperties ep_access
                                              ON (e.id = ep_access.entryid AND ep_access.property = 'ep_access')
 LEFT JOIN blog_entryproperties ep_sticky
                                            ON (e.id = ep_sticky.entryid AND ep_sticky.property = 'ep_is_sticky') LEFT JOIN blog_authorgroups AS acl_a
                                   ON acl_a.authorid = 1
                            LEFT JOIN blog_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 <= 1174121712 AND  (ep_access.property IS NULL OR ep_access.value = 'member' OR ep_access.value = 'public' OR (ep_access.value = 'private' AND e.authorid = 1))  AND  (ep_no_frontpage.property IS NULL OR ep_no_frontpage.value != 'true')   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 orderkey DESC, timestamp DESC
                     0

/ 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 '0' at line 49
gruss rene
www.darin.ch - blog.darin.ch - rad.darin.ch
radarin
Regular
Posts: 150
Joined: Sat Nov 25, 2006 5:33 pm
Location: St.Gallen/Schweiz
Contact:

Post by radarin »

habe gerade festgestellt, dass die anzahl nicht nur für die seite gilt die ich als startseute verstehe, sondern für jede seite, da muss ich mir wohl was anderes einfallen lassen...
www.darin.ch - blog.darin.ch - rad.darin.ch
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Warum installierst Du nicht einfach eine Staticpage und setzt diese als Startseite?

Grüße,
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