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
 Event Calendar Problem !
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

twin
New Member

78 Posts

Posted - 19 July 2002 :  05:05:43  Show Profile
Hi all,

i implemented the event-mod to my Intranet-Forum, Version 3.3.03 running with SQL-Server 7.0. The Forum is running fine and i recently implemented the active_users-mod without any Problems, but:

When i try to add a new event i'm running into following Error:


Kompilierungsfehler in Microsoft VBScript- Fehler '800a03ea'

Syntaxfehler

/iisHelp/common/500-100.asp, line 122

on error go to 0
---------^
Microsoft OLE DB Provider for ODBC Drivers- Fehler '80040e21'

Fehler bei einer aus mehreren Schritten bestehenden OLE DB-Operation.
Prüfen Sie die einzelnen OLE DB-Statuswerte, falls vorhanden. Daten wurden nicht verarbeitet .

/forum/events.asp, line 1328




And this is line 1328:


if (rs("PRIVATE") <> 1) or (rs("PRIVATE") = 1 and lcase(rs(strDBNTSQLNAME)) = lcase(strDBNTUSerName)) then%>
<br>
<table align="center" width="95%" cellpadding="0" cellspacing="0" border="0" bgcolor="gray">
<tr>
<td>
<table WIDTH="100%" CELLSPACING="1" BORDER="0" CELLPADDING="3" align="center">
<tr>
<td align="left" bgcolor="<% =strHeadCellColor %>"><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>">
<%Response.Write Trim(Rs("Event_Title"))
line 1328 strMessage = Rs("Event_Details")%>
<%
if not(memberErased) then
Response.Write " - hinzugefügt von " & lcase(rs(strDBNTSQLNAME))
else
Response.Write " - hinzugefügt durch gelöschtes Mitglied"
end if



I know there was Profile-Bug (the wrong order of Variables) throwing the same Error, so may be the Problem is similar.


Thank you very much for any Help !!


twin

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 19 July 2002 :  05:20:50  Show Profile  Visit Gremlin's Homepage
quote:
I know there was Profile-Bug (the wrong order of Variables) throwing the same Error, so may be the Problem is similar.
Yes that is extremely likely.

Try finding the select query that will be earlier up in the code and make sure event_detals is the LAST column selected.

Heres the original thread on the MOD, a few people did mention similar problems with that field and I think changing the order in the select worked for them

http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&whichpage=4&TOPIC_ID=4463

www.daoc-halo.com

Edited by - Gremlin on 19 July 2002 05:21:25
Go to Top of Page

twin
New Member

78 Posts

Posted - 19 July 2002 :  06:06:50  Show Profile
Thanks a lot for immediate Response Gremlin !!!!

I will try out and post here again.


twin

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 19 July 2002 :  06:10:24  Show Profile  Visit HuwR's Homepage
it is because event_details is a memo type field, so it must me declared at the end of your select statement, and if there are multiple memo fields, they should be assigned to local variabls imediately after the queery is executed, and in the order in which they appear in the select statement, this is due to some quirk of the ADO drivers

Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 19 July 2002 :  06:32:47  Show Profile  Visit Gremlin's Homepage
Your welcome Twin, hope the fix works ok for you.

www.daoc-halo.com
Go to Top of Page

twin
New Member

78 Posts

Posted - 19 July 2002 :  07:06:49  Show Profile
Hi Gremlin,

as described in the Topic i changed all select-queries from:

"SELECT event_id, start_date, end_date, event_title, event_details, PRIVATE FROM "

to

"SELECT event_id, start_date, end_date, event_title, PRIVATE, event_details FROM "



But that doesn't change anything. Same Error.

When i take out line 1328, this error doesn't occur, but there are following other errors then, so that can't be the Solution.


What can i do ???




Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 19 July 2002 :  10:01:27  Show Profile  Visit Gremlin's Homepage
That is weird, I did expect that change to fix it. What other errors occur when you comment out that line ?

I've compared your code posted with the code from my own forum and It looks identical so should work (as mine does)

www.daoc-halo.com
Go to Top of Page

twin
New Member

78 Posts

Posted - 19 July 2002 :  10:27:57  Show Profile
Hi gremlin, Hi HuwR !!


Without line 1328 i can add an event but when i view the calendar by months then i get the following:


Kompilierungsfehler in Microsoft VBScript- Fehler '800a03ea'
Syntaxfehler

/iisHelp/common/500-100.asp, line 122

on error go to 0
---------^
ADODB.Recordset- Fehler '800a0cc1'

Ein Objekt, das dem angeforderten Namen oder dem Ordinalverweis entspricht, kann nicht gefunden werden.

/forum/events.asp, line 1107



Line 1107: If ((rs("PRIVATE") <> 1) or ((rs("PRIVATE") = 1) and (lcase(rs(strDBNTSQLNAME)) = lcase(strDBNTUSerName)))) and (dToday >= strToDate(Rs("Start_Date")) AND dToday <= strToDate(Rs("End_Date"))) then



Sorry for my bad english and my "not existing" ASP-Knowledge :)

Perhaps you can send me your events.asp ?


Edit: Oh, i've forgotten soemthing. Do i have to change only the Select-Statements or the update, create....., too ??



twin




Edited by - twin on 19 July 2002 10:32:50
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 19 July 2002 :  10:47:20  Show Profile  Visit HuwR's Homepage
try this events.asp (make a copy of yours first in case you need to put it back)


http://magicmushroom.org.uk/snitzmods/eventsasp.zip

Go to Top of Page

twin
New Member

78 Posts

Posted - 19 July 2002 :  11:18:17  Show Profile
Sorry,
this events.asp isn't working because there have to be included Files like events_styles.asp, events_functions.asp .... which i don't have here.

this File is only 12 KB. The Original events.asp is 57 KB.

Maybe this have something to do with the wrong Date-Format of the Forum ? In Admin-Panel i choosed UK-Short.
By the way, it's Germany....


i really like to get this working, because i like this mod.




Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 19 July 2002 :  12:15:43  Show Profile  Visit HuwR's Homepage
quote:

Sorry,
this events.asp isn't working because there have to be included Files like events_styles.asp, events_functions.asp .... which i don't have here.




If you don't have these files, then what version are you using, you should if you are using the latest version

Go to Top of Page

twin
New Member

78 Posts

Posted - 19 July 2002 :  18:42:39  Show Profile
quote:


i implemented the event-mod to my Intranet-Forum, Version 3.3.03 running with SQL-Server 7.0



It's the german Version Snitz 4 Beta 3



Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 19 July 2002 :  20:23:20  Show Profile  Visit Gremlin's Homepage
I think Huwr was asking what version of the Calendar MOD are you using. The latest version has much of the functions split out into separate include files now. I wondered when you said it was line 1328 how you had a file that large as with mine that particular piece of code was in events_functions.asp not events.asp

Perhaps you should try downloading and trying the most current version of the mod, it should be available at the Exchange

www.daoc-halo.com
Go to Top of Page

twin
New Member

78 Posts

Posted - 21 July 2002 :  08:24:03  Show Profile
Thank you Gremlin,

i didn't know that there is a newer Version of events, so i try to use the newest Version with the non-US-update now.

i'll be back tomorrow :-)


twin



Go to Top of Page

twin
New Member

78 Posts

Posted - 23 July 2002 :  12:25:07  Show Profile
Well,
i implemented the most current Version of Events Mod with the non-US-update and it works !!!

But:

i normally use this Date-Format: TT.MM.YYYY and not TT/MM/YY. But whatever Date-Format i choose in Admin-Panel, the events always appear in DD/MM/YY. For what then is the non-US-update ??

When i can get this short Date-Problem running, i would be happy and i can live with the english Language in Events Calendar :-)

Or is there an german Patch ? ;-)



twin



Edit: Is there any way to delete Events ?? I put on my glasses but i can't find anything.......

Edit2: Oops, i found this very, very small :-) trashcan, sorry.




Edited by - twin on 23 July 2002 12:52:06

Edited by - twin on 23 July 2002 12:55:31
Go to Top of Page

twin
New Member

78 Posts

Posted - 25 July 2002 :  04:58:25  Show Profile
Push up


Nobody who knows about the Date-Format ?


twin

Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.42 seconds. Powered By: Snitz Forums 2000 Version 3.4.07