Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Error in Search Log MOD after conv. to MySql
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

acoustika
Junior Member

Denmark
311 Posts

Posted - 29 November 2003 :  10:45:52  Show Profile  Visit acoustika's Homepage  Send acoustika an ICQ Message
I get this error in the search log after I have upgraded from Access to MySql, anyone who can help with this.

Error:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[MySQL][ODBC 3.51 Driver][mysqld-4.0.12-nt]Invalid use of group function

/forum/searchlog.asp, line 771


The code lines: I believ it's the part in red where it's wrong

Sub DisplayTopSearchers()
strsql = "SELECT SLS_MEMBER, Count(SLS_MEMBER) AS MSCount FROM " & strTablePrefix & "SEARCHLOG_SEARCHES GROUP BY SLS_MEMBER ORDER BY Count(SLS_MEMBER) DESC"
Set rsq = my_Conn.Execute(TopSQL(strsql,CInt(strSLPageSize)))
Response.Write " <br /><table width=""100%"" align=""center"" border=0 cellspacing=1 cellpadding=3 bgcolor=""" & strTableBorderColor & """>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgcolor=""" & strHeadCellColor & """ colspan=""3"">" & vbNewLine & _
" <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strCategoryFontColor & """>" & vbNewLine & _
" <a href=""#top"" tabindex=""-1"">" & getCurrentIcon(strIconGoUp,"Go To Top Of Page","align=""right""") & "</a>" & vbNewLine & _
" <b><a name=""searchers""></a>Top Searchers</b></font>" & vbNewLine & _
" </td>" & vbNewLine & _
" </tr>" & vbNewLine
If rsq.Eof or rsq.BOF Then

May The Code Be With You
www.UniqueDk.dk *** The Open Forums of Denmark ***

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 29 November 2003 :  11:03:53  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
I have tested the MOD with MySQL and haven't had any problems.
I will take a look at tomorrow.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

acoustika
Junior Member

Denmark
311 Posts

Posted - 29 November 2003 :  13:14:49  Show Profile  Visit acoustika's Homepage  Send acoustika an ICQ Message
ok thanks alot :-)

May The Code Be With You
www.UniqueDk.dk *** The Open Forums of Denmark ***
Go to Top of Page

acoustika
Junior Member

Denmark
311 Posts

Posted - 29 November 2003 :  13:18:22  Show Profile  Visit acoustika's Homepage  Send acoustika an ICQ Message
I have a this error in my DB, but one og the moderators/DB helpers said that it would not affect SNITZ, but this is a mod so maybe it's affecting that, I dont know.
This is the error

The additional Features for working with linked Tables have been deactivated

May The Code Be With You
www.UniqueDk.dk *** The Open Forums of Denmark ***
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 29 November 2003 :  14:16:22  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Sounds like this could be the reason, I'm not sure though.
Maybe Davio ("Mr. MySQL" ) will be able to tell us more.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 29 November 2003 :  15:40:18  Show Profile
I dunno. From reading up on GROUP BY it doesn't seem like you should use GROUP BY and ORDER BY togther. You need to use one of the other.

Try removing the ORDER BY Count(SLS_MEMBER) section from the sql query and try again.

If that doesn't work, try removing the GROUP BY SLS_MEMBER section and leave the ORDER BY Count(SLS_MEMBER) section in.

Support Snitz Forums

Edited by - Davio on 30 November 2003 22:26:46
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 29 November 2003 :  15:43:31  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Thanks Davio, will do as soon as I'm back at my PWS.
What makes me wonder though is that I have tested it with Access, MySQL and SQL Server and have never experienced any problems...

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 29 November 2003 :  15:45:34  Show Profile
What version of MySQL did you use? He is using v4.

Support Snitz Forums
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 29 November 2003 :  15:51:58  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Oh... 3.23.55
Will upgrade and test again. Thanks Davio

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

acoustika
Junior Member

Denmark
311 Posts

Posted - 30 November 2003 :  00:27:18  Show Profile  Visit acoustika's Homepage  Send acoustika an ICQ Message
Thanks alot Davio I removed the ORDER BY COUNT in two places in the file and now it's working as a dream, Thanks alot I Would be totally lost without snitz :-) and wauw Im Learning alot, but that's also something the GPL was meant for I think, so Thumbs up for that

May The Code Be With You
www.UniqueDk.dk *** The Open Forums of Denmark ***
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 30 November 2003 :  22:29:31  Show Profile
Glad I could help!

acoustika, I didn't know anything about mysql, until I came here. I didn't even know what a database was either. All the knowledge I gained about MySQL was from experience here and doing a lot of reading and hands on experience with the mysql server on my computer.

My knowledge increased when we needed someone to bug test the forums on a mysql server. So I'm no expert. I just did a lot of reading.

Support Snitz Forums
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07