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
 Members.asp Crashes After PM Install
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

wolv
Starting Member

13 Posts

Posted - 13 February 2006 :  19:41:44  Show Profile
I receive this crash, after clicking on the Members page link from the top right hand menu. The members page loads, but when I try to locate a user using the A-Z listing, the page crashes.


I am using Snitz version 3.4 with MS SQL...

Here is the error message:


Technical Information (for support personnel)

* Error Type:
Microsoft JET Database Engine (0x80040E14)
The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect.
/forum/members.asp, line 233

* Browser Type:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5

* Page:
GET /forum/members.asp

* Time:
Monday, February 13, 2006, 5:41:23 PM

* More information:





Here is the code that is referenced. Can anyone tell me what to edit or change?



else 'end MySql specific code

set rs = Server.CreateObject("ADODB.Recordset")
rs.cachesize = strPageSize
rs.open strSql & strSql2 & strSql3 & strSql4, my_Conn, adOpenStatic (LINE 233-referenced in error message)
If not (rs.EOF or rs.BOF) then
rs.movefirst
rs.pagesize = strPageSize
rs.absolutepage = mypage '**
maxpages = cLng(rs.pagecount)
arrMemberData = rs.GetRows(strPageSize)
iMemberCount = UBound(arrMemberData, 2)
else
iMemberCount = ""
end if
rs.Close
set rs = nothing
end if



Thanks guys.

-Wolv

Edited by - wolv on 13 February 2006 19:44:53

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 13 February 2006 :  20:12:02  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message
You'll have to show us the lines that define strSql, strSql2, strSql3 & strSql4, or just upload a text version of your members.asp page.

eXtremeGossip
Go to Top of Page

wolv
Starting Member

13 Posts

Posted - 13 February 2006 :  20:33:31  Show Profile
Hi again, Jorrit!

http://www.railroadforum.com/forum/members.asp.txt



Thanks.

-Wolv


Edited by - wolv on 13 February 2006 20:39:39
Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 13 February 2006 :  20:48:14  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message
On second thought, do a Response.Write strSql & strSql2 & strSql3 & strSql4 right before line 233 - That would probably make spotting the error easier

eXtremeGossip
Go to Top of Page

wolv
Starting Member

13 Posts

Posted - 13 February 2006 :  21:10:52  Show Profile

Jorrit,

This text shows up at the top of members.asp after implementing your line of code, saving the file and reuploading to the server:


SELECT MEMBER_ID, M_STATUS, M_NAME, M_LEVEL, M_EMAIL, M_COUNTRY, M_HOMEPAGE, M_AIM, M_ICQ, M_MSN, M_YAHOO, M_TITLE, M_POSTS, M_LASTPOSTDATE, M_LASTHEREDATE, M_DATE, M_PMRECEIVE FROM FORUM_MEMBERS WHERE M_NAME <> 'n/a' ORDER BY M_POSTS DESC, M_NAME ASC


-Wolv
Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 13 February 2006 :  21:17:02  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message
Hm, I don't see anything wrong with that at first glance. Maybe someone sharper can spot the error

eXtremeGossip
Go to Top of Page

wolv
Starting Member

13 Posts

Posted - 13 February 2006 :  22:11:18  Show Profile

Joritt,

I scanned the first SELECT statement and it was fine. The one below that one however, had TWO commas in it, and I deleted the extra comma, resaved and reuploaded and voila! She works!!

I took out the response.write statement that you had me add, and now everything is fine.

Thanks for your help, once again!


-Wolv
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.46 seconds. Powered By: Snitz Forums 2000 Version 3.4.07