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
 Avatar MOD Error on install - Creating Table
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

pmycrackin
Starting Member

1 Posts

Posted - 25 December 2004 :  15:04:57  Show Profile
Hi there,

I am running Snitz Forum v3.4.05 with MySQL 4.1.8-nt, MySQL ODBC 3.51 driver on a Windows 2000 Advanced Server box running IIS 5 - When I went to install the Avatar MOD everything went through a-okay except for the following table error (This happened on creation)

I go to install the mod using the admin function and the DBS file... It runs thogh the error on the screen looks like this



Avatar Mod for 3.4 Creating table(s)... CREATE TABLE FORUM_AVATAR( A_ID INT (11) DEFAULT '' NOT NULL auto_increment , A_URL varchar (255) NULL , A_NAME varchar (50) NULL , A_MEMBER_ID int NULL DEFAULT 0,KEY FORUM_AVATAR_A_ID(A_ID)) CREATE TABLE FORUM_AVATAR( A_ID INT (11) DEFAULT '' NOT NULL auto_increment , A_URL varchar (255) NULL , A_NAME varchar (50) NULL , A_MEMBER_ID int NULL DEFAULT 0,KEY FORUM_AVATAR_A_ID(A_ID)) -2147217871 | [MySQL][ODBC 3.51 Driver][mysqld-4.1.8-nt]Invalid default value for 'A_ID' -------------------------------------------------------------------------------- Adding Column M_AVATAR_URL... ALTER TABLE FORUM_MEMBERS ADD M_AVATAR_URL varchar (255) NULL ALTER TABLE FORUM_MEMBERS ADD M_AVATAR_URL varchar (255) NULL
<snip><snip>... The rest runs through without an error


The Parameter passed to MySQL when this error occurred is as follows (Highlighted in RED)

Filename: dbs_avatar.asp

Avatar Mod for 3.4[CREATE]
AVATAR
A_ID
A_URL#varchar (255)#NULL#
A_NAME#varchar (50)#NULL#
A_MEMBER_ID#int#NULL#0
[END]
[ALTER]
MEMBERS
ADD#M_AVATAR_URL#varchar (255)#NULL#
[END]
[ALTER]
MEMBERS_PENDING
ADD#M_AVATAR_URL#varchar (255)#NULL#
[END]
[INSERT]
CONFIG_NEW
(C_VARIABLE,C_VALUE)#('intShowAvatar','1')
(C_VARIABLE,C_VALUE)#('strAvatarFolder','avatars/')
(C_VARIABLE,C_VALUE)#('intAvatarWidth','64')
(C_VARIABLE,C_VALUE)#('intAvatarHeight','64')
(C_VARIABLE,C_VALUE)#('intAvatarBorder','1')
[END]


The rest of the tables created successfully - I pressed on and installed the rest of the mod using the readme.html file. Can anyone help me with the error shown here

Thanks

Phil

Edited by - pmycrackin on 26 December 2004 00:27:59

Blackpearl
Starting Member

Thailand
35 Posts

Posted - 21 July 2005 :  02:56:23  Show Profile  Visit Blackpearl's Homepage
some of me but why is NO answer


^_^....If you see me....you will love me....I"M SO HANDSOME....^_^
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 21 July 2005 :  04:50:12  Show Profile  Send ruirib a Yahoo! Message
I have installed the AVATAR mod with a MySQL Db and had no problems whatsoever. I guess that may be due to the fact that you're using MySQL 4.1.x.

Also since you did not specify a default value in the DBS file, that's probably something that needs to be fixed in the admin_mod_dbsetup.asp file.

Try this. Where you now have, in line# 225

				strSql = strSql & idFieldName &" INT (11) DEFAULT '' NOT NULL auto_increment "

replace it by

				strSql = strSql & idFieldName &" INT (11) NOT NULL auto_increment "



Snitz 3.4 Readme | Like the support? Support Snitz too
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.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07