With the update of the serendipity_event_category plugin from version, 0.32 to 0.34, I have this error when I want to show the serendipity_archives_plugin sidebar plugin :
It has something to do with the "ORDER BY" directive. I can see on the CVS view of Spartacus that some changed here have been made :Query failed: <pre>SELECT count(DISTINCT e.id) AS orderkey
FROM
serendipity_entries AS e
LEFT OUTER JOIN serendipity_entryproperties ep_no_frontpage
ON (e.id = ep_no_frontpage.entryid AND ep_no_frontpage.property = 'ep_no_frontpage')
LEFT OUTER JOIN serendipity_entryproperties ep_cache_extended
ON (e.id = ep_cache_extended.entryid AND ep_cache_extended.property = 'ep_cache_extended')
LEFT OUTER JOIN serendipity_entryproperties ep_cache_body
ON (e.id = ep_cache_body.entryid AND ep_cache_body.property = 'ep_cache_body')
LEFT OUTER JOIN serendipity_entryproperties ep_access
ON (e.id = ep_access.entryid AND ep_access.property = 'ep_access')
WHERE e.timestamp >= 1259622000 AND e.timestamp <= 1262300399 AND isdraft = 'false' 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')
ORDER BY orderkey DESC, timestamp DESC,/*categorytemplate*/
</pre> / 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 '' at line 17
Code: Select all
$eventData['orderby'] = $this->sort_order;
Code: Select all
$eventData['orderby'] = $this->sort_order . (!empty($this->sort_order) ? ',' : '') . $eventData['orderby'] . '/*categorytemplate*/';
Thank you.
Barberousse.