Difference between revisions of "User talk:Cerw"

From FollowTheScore
Jump to: navigation, search
Line 32: Line 32:
 
SELECT DISTINCT `page`.page_namespace as page_namespace, `page`.page_title as page_title  FROM `page` WHERE 1=1 AND `page`.page_namespace IN ('14') AND `page`.page_is_redirect=0 ORDER BY sortkey ASC LIMIT 0, 500  
 
SELECT DISTINCT `page`.page_namespace as page_namespace, `page`.page_title as page_title  FROM `page` WHERE 1=1 AND `page`.page_namespace IN ('14') AND `page`.page_is_redirect=0 ORDER BY sortkey ASC LIMIT 0, 500  
 
</pre>
 
</pre>
 +
Maybe you should look for a more recent version of MySQL ...
 
:[[User:Gero|Gero]] 09:43, 7 November 2007 (CET)
 
:[[User:Gero|Gero]] 09:43, 7 November 2007 (CET)

Revision as of 09:45, 7 November 2007

Help with DPL -GUI

Hi there I install Winter and SimpleForm extension and Call extenstion but still getting this:

Picture 1.png

also I can not list Category from DPL, any ideas why?


Can you execute a normal DPL query (apart from GUI and Call extension)? What does the Special:Call page show?

Gero 08:57, 2 November 2007 (CET)

Picture 5.png

I can run normal DPL query but can not list Categories it self. This code give me error

{{#dpl: namespace=Category | format=,\n*%TITLE%,, }}

%DPL-1.5.0-WARNING: No results!
cerw

Set debug=3 to see the SQL statement which is fired by DPL against your database. Then copy/paste that statement and use a SQL tool (mysqladmin e.g.) to find out why the result set is empty. You can simplify the statement to find the problem cause.

SELECT DISTINCT `page`.page_namespace as page_namespace, `page`.page_title as page_title, REPLACE(REPLACE(CONCAT( IF(`page`.page_namespace=0, , CONCAT(CASE `page`.page_namespace WHEN 1 THEN 'Talk' WHEN 2 THEN 'User' WHEN 3 THEN 'User_talk' WHEN 4 THEN 'Dpldemo' WHEN 5 THEN 'Dpldemo_talk' WHEN 6 THEN 'Image' WHEN 7 THEN 'Image_talk' WHEN 8 THEN 'MediaWiki' WHEN 9 THEN 'MediaWiki_talk' WHEN 10 THEN 'Template' WHEN 11 THEN 'Template_talk' WHEN 12 THEN 'Help' WHEN 13 THEN 'Help_talk' WHEN 14 THEN 'Category' WHEN 15 THEN 'Category_talk' WHEN 100 THEN 'Type' WHEN 101 THEN 'Type_talk' WHEN 102 THEN 'Test' WHEN 103 THEN 'Test_talk' WHEN 104 THEN 'DPL' WHEN 105 THEN 'DPL_talk' WHEN 106 THEN 'Wgraph' WHEN 107 THEN 'Wgraph_talk' WHEN 108 THEN 'Issue' WHEN 109 THEN 'Issue_talk' END, ':')), `page`.page_title), '_', ' '),'♣','⣣') as sortkey FROM `page` WHERE 1=1 AND `page`.page_namespace IN ('14') AND `page`.page_is_redirect=0 ORDER BY sortkey ASC LIMIT 0, 500 

Simplified

SELECT DISTINCT `page`.page_namespace as page_namespace, `page`.page_title as page_title  FROM `page` WHERE 1=1 AND `page`.page_namespace IN ('14') AND `page`.page_is_redirect=0 ORDER BY sortkey ASC LIMIT 0, 500 

Maybe you should look for a more recent version of MySQL ...

Gero 09:43, 7 November 2007 (CET)