Newsbox SQL Query Fehler

Hier können Probleme und alles andere in Deutscher Sprache gelöst werden.
Post Reply
Guest

Newsbox SQL Query Fehler

Post by Guest »

NAchdem ich eben auf 1.0-beta1 ein update gemacht habe, wollte ich mal das NewsBox-Plugin ausprobieren, jedoch nach Zuweisung der Kategorie die Dargestellt werden soll und speichern der Einstellungen kommt bei mir auf der Hauptseite dieser Fehler.

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.email
, e.body, e.extended

FROM
syentries AS e
LEFT JOIN syauthors a
ON e.authorid = a.authorid
LEFT JOIN syentrycat ec
ON e.id = ec.entryid
LEFT JOIN sycategory c
ON ec.categoryid = c.categoryid
LEFT OUTER JOIN syentryproperties ep_no_frontpage
ON (e.id = ep_no_frontpage.entryid AND ep_no_frontpage.property = 'ep_no_frontpage')
LEFT OUTER JOIN syentryproperties ep_access
ON (e.id = ep_access.entryid AND ep_access.property = 'ep_access')
LEFT JOIN syentryproperties ep_sticky
ON (e.id = ep_sticky.entryid AND ep_sticky.property = 'ep_is_sticky') LEFT JOIN syauthorgroups AS acl_a
ON acl_a.authorid = 1
LEFT JOIN syaccess 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 <= 1138268121 AND
e.id IN
(SELECT entryid FROM syentrycat
WHERE categoryid IN (3)
) 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
LIMIT 5

/ You have an error in your SQL syntax near 'SELECT entryid FROM syentrycat WHERE categoryid IN (3) ) AND (ep_access.proper' at line 41

Könnte mir jemand erklären was dieses ist.
Gruß Alex
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Newsbox SQL Query Fehler

Post by garvinhicking »

Deine MySQL Version ist leider zu alt und unterstützt keine Sub-Selects, die das Plugin jedoch benötigt.

Man könnte das Plugin zwar umschreiben damit es keine Sub-Selects benötigt, aber das wäre doch etwas aufwändiger - und ab MySQL 4.1 unterstützt MySQL durchaus Sub-Selects und ist sowieso um einiges schneller als ältere Versionen...

Viele 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/
Guest

Post by Guest »

Wie kann ich denn die DB konvertieren von MySQL 3.23.58 nach 4.1.14. Oder geht das gar nicht ?
Guest

Post by Guest »

Habs hinbekommen. Danke für die Hilfe.
Post Reply