MySQL Error with stop_before and start_on variables
Posted: 24 November 2007 09:54 PM   [ Ignore ]
Newbie
Rank
Total Posts:  1
Joined  2007-08-05

Hey.

I’m trying to keep future entries from displaying in my tag cloud, which they currently do. I tried setting a dynamic stop_before variable with the current date and time, but it returned a SQL error on the page. I thought it might be something with the php parsing, so I tried just inputting a static date variable:

stop_before="2007-06-1 5:00 PM" 

to see if was working and I got the same error.

MySQL ERROR:

Error Number: 1054

Description: Unknown column ‘e.entry_date’ in ‘where clause’

Query: SELECT t.tag_name, COUNT(e.tag_id) AS count FROM exp_tag_tags AS t LEFT JOIN exp_tag_entries e ON t.tag_id = e.tag_id INNER JOIN exp_weblogs w ON w.weblog_id = e.weblog_id WHERE t.site_id IN (‘1’) AND t.tag_id != ‘’ AND e.type = ‘weblog’ AND w.is_user_blog = ‘n’ AND (e.weblog_id = ‘2’ OR e.weblog_id = ‘3’ ) AND e.entry_date < ‘1195993800’ GROUP BY e.tag_id ORDER BY count DESC LIMIT 20

I tried using start_on and different dates but all returned the same error.

Any clue why this might be happening? I couldn’t find anyone with a similar problem in the solspace or ee forums.

Also, closed entry tags display in all the clouds. Is this normal tag module behavior?

I’m running the latest tag module, upgraded right before I tried messing with the tag cloud, and here is the code I’m using for the cloud.

{exp:tag:cloud weblog="regular|lede" groups="4" start="8" step="4" stop_before="2008-11-25 12:00 PM"}
<a href="{path="tags/tag"}{websafe_tag}" title="{tag_name} ({count})" style="font-size:{step}px;">{tag}</a>  
{/exp:tag:cloud} 

Thanks.

Profile
 
 
Posted: 25 November 2007 05:07 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Thank you,

I’ll document this as a bug, and should be corrected soon smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 14 January 2008 12:37 PM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

This bug has been fixed in the latest version of Tag 2.0.9, which is available for download now smile

Thank you for your patience! smile

 Signature 

Check out the new Solspace Blog!

Profile