?
Related to # 5243
avatar KrullKorg
KrullKorg
16 Oct 2014

Steps to reproduce the issue

  • install joomla (3.3.6 on postgresql 9.3) with all test data
  • open the site

Expected result

  • no errors

Actual result

in home

Database query failed (error # %s): %s SQL=SELECT "m"."tag_id","m"."core_content_id","m"."content_item_id","m"."type_alias",COUNT( "tag_id") AS "count","t"."access","t"."id","ct"."router","cc"."core_title","cc"."core_alias","cc"."core_catid","cc"."core_language" FROM "ixobg_contentitem_tag_map" AS "m" INNER JOIN "ixobg_tags" AS "t" ON m.tag_id = t.id INNER JOIN "ixobg_ucm_content" AS "cc" ON m.core_content_id = cc.core_content_id INNER JOIN "ixobg_content_types" AS "ct" ON m.type_alias = ct.type_alias WHERE "m"."tag_id" IN (2,3,4,5) AND t.access IN (1,1) AND (cc.core_access IN (1,1) OR cc.core_access = 0) AND ("m"."content_item_id" <> 24 OR "m"."type_alias" <> 'com_content.article') AND "cc"."core_state" = 1 GROUP BY "m"."core_content_id" ORDER BY "count" DESC LIMIT 5

in sample sites -> content modules
Database query failed (error # %s): %s SQL=SELECT EXTRACT (MONTH FROM "created") AS created_month,created, id, title,EXTRACT (YEAR FROM "created") AS created_year FROM ixobg_content WHERE state = 2 AND checked_out = 0 GROUP BY created_year DESC, created_month DESC LIMIT 10

in sample sites -> archive
Database query failed (error # %s): %s SQL=SELECT EXTRACT (MONTH FROM "created") AS created_month,created, id, title,EXTRACT (YEAR FROM "created") AS created_year FROM ixobg_content WHERE state = 2 AND checked_out = 0 GROUP BY created_year DESC, created_month DESC LIMIT 10

in sample sites -> related items
Database query failed (error # %s): %s SQL=SELECT a.id,a.title,DATE_FORMAT(a.created, "%Y-%m-%d") as created,a.catid,cc.access AS cat_access,cc.published AS cat_state, CASE WHEN CHAR_LENGTH(a.alias) != 0 THEN a.id::text || ':' || a.alias ELSE a.id::text END as slug, CASE WHEN CHAR_LENGTH(cc.alias) != 0 THEN cc.id::text || ':' || cc.alias ELSE cc.id::text END as catslug FROM ixobg_content AS a LEFT JOIN ixobg_content_frontpage AS f ON f.content_id = a.id LEFT JOIN ixobg_categories AS cc ON cc.id = a.catid WHERE a.id != 37 AND a.state = 1 AND a.access IN (1,1) AND ("," || REPLACE(a.metakey, ", ", ",") || "," LIKE "%modules%" OR "," || REPLACE(a.metakey, ", ", ",") || "," LIKE "%content%") AND (a.publish_up = '1970-01-01 00:00:00' OR a.publish_up <= '2014-10-16 10:43:18') AND (a.publish_down = '1970-01-01 00:00:00' OR a.publish_down >= '2014-10-16 10:43:18') LIMIT 5

System information (as much as possible)

Additional comments

Votes

# of Users Experiencing Issue
0/1
Average Importance Score
3.00

avatar KrullKorg KrullKorg - open - 16 Oct 2014
avatar nicksavov nicksavov - change - 16 Oct 2014
Labels Added: ?
avatar waader
waader - comment - 16 Oct 2014

@test
I can confirm this bug.

avatar nicksavov
nicksavov - comment - 16 Oct 2014

Thanks guys! If you know the fix, here's a really easy way to submit it:
http://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests

avatar waader
waader - comment - 17 Oct 2014

So if the test sample data where removed as proposed here - http://issues.joomla.org/tracker/joomla-cms/4213 - no fix is needed.

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4693.

avatar brianteeman
brianteeman - comment - 17 Oct 2014

LOL - yes I guess that is one fix

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4693.

avatar KrullKorg
KrullKorg - comment - 18 Oct 2014

i think the problem isn't test data, but how the sql statement is made

avatar brianteeman brianteeman - change - 18 Oct 2014
Status New Confirmed
avatar waader
waader - comment - 23 Oct 2014

I retested this one with the current staging branch and it got a lot better. I could find only one instance in the "All Modules" Menu under "Related Items" that gives the following sql error: 0 Database query failed (error # %s): %s SQL=SELECT a.id,a.title,DATE_FORMAT(a.created, "%Y-%m-%d") as created,a.catid,cc.access AS cat_access,cc.published AS cat_state, CASE WHEN CHAR_LENGTH(a.alias) != 0 THEN a.id::text || ':' || a.alias ELSE a.id::text END as slug, CASE WHEN CHAR_LENGTH(cc.alias) != 0 THEN cc.id::text || ':' || cc.alias ELSE cc.id::text END as catslug FROM xwpay_content AS a LEFT JOIN xwpay_content_frontpage AS f ON f.content_id = a.id LEFT JOIN xwpay_categories AS cc ON cc.id = a.catid WHERE a.id != 37 AND a.state = 1 AND a.access IN (1,1) AND ("," || REPLACE(a.metakey, ", ", ",") || "," LIKE "%modules%" OR "," || REPLACE(a.metakey, ", ", ",") || "," LIKE "%content%") AND (a.publish_up = '1970-01-01 00:00:00' OR a.publish_up <= '2014-10-23 18:02:33') AND (a.publish_down = '1970-01-01 00:00:00' OR a.publish_down >= '2014-10-23 18:02:33') LIMIT 5

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4693.

avatar alikon
alikon - comment - 29 Nov 2014

#5243 should fix

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4693.

avatar brianteeman brianteeman - change - 29 Nov 2014
Status Confirmed Closed
Rel_Number 5243
Relation Type Related to
avatar brianteeman brianteeman - close - 29 Nov 2014
avatar zero-24 zero-24 - close - 29 Nov 2014
avatar brianteeman brianteeman - change - 29 Nov 2014
Closed_Date 0000-00-00 00:00:00 2014-11-29 10:05:26
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment