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 214721787
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

dhutten
New Member

Netherlands
66 Posts

Posted - 16 November 2005 :  14:19:56  Show Profile
I Get this error when i want to MOD the forum. I tried several mods

2147217871 | [MySQL][ODBC 3.51 Driver][mysqld-4.1.15-nt]Invalid default value for 'RULES_ID'

So no tables are being created should i do this manual as a workaround?

Edited by - dhutten on 16 November 2005 14:20:20

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 November 2005 :  14:27:48  Show Profile  Send ruirib a Yahoo! Message
http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=52219


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

dhutten
New Member

Netherlands
66 Posts

Posted - 17 November 2005 :  12:53:02  Show Profile
quote:
Originally posted by ruirib

http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=52219



I have checked that topic and check my files but nothing has wrong default value


Code removed by ruirib: please post lengthy code only as a link to a text file
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 17 November 2005 :  16:52:11  Show Profile  Send ruirib a Yahoo! Message
Anyway, your problem is with the definition of RULES_ID, and there was no such field in the posted code.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

dhutten
New Member

Netherlands
66 Posts

Posted - 21 November 2005 :  12:07:31  Show Profile
quote:
Originally posted by ruirib

Anyway, your problem is with the definition of RULES_ID, and there was no such field in the posted code.



But how do i solve this problem?
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 21 November 2005 :  13:18:07  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Do you get the error when running the dbs file for the mod you're trying to install?
Is there a 'RULES_ID' column in any of the tables in your forum database?

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

dhutten
New Member

Netherlands
66 Posts

Posted - 23 November 2005 :  05:35:32  Show Profile
The problem is with a lot of MOD's who have a _ID with no value.

For example



[CREATE]
FAQ
F_ID
F_FAQ_QUESTION#VARCHAR (100)#NULL#
F_FAQ_ANSWER#memo#NULL#
F_FAQ_ORDER#int#NULL#1#
F_FAQ_CATEGORY#int#NULL#1#
F_FAQ_TYPE#int#NULL#0#
[END]
[CREATE]
FAQ_CATEGORY
FCAT_ID
FCAT_TITLE#varchar(100)#NULL#
FCAT_ORDER#int#NULL#1#
FCAT_LEVEL#int#NULL#
[END]


When i execute this,



Database Update


Creating table(s)...
CREATE TABLE FORUM_FAQ( F_ID INT (11) DEFAULT '' NOT NULL auto_increment , F_FAQ_QUESTION varchar (100) NULL , F_FAQ_ANSWER text NULL , F_FAQ_ORDER int NULL DEFAULT 1, F_FAQ_CATEGORY int NULL DEFAULT 1, F_FAQ_TYPE int NULL DEFAULT 0,KEY FORUM_FAQ_F_ID(F_ID))
CREATE TABLE FORUM_FAQ( F_ID INT (11) DEFAULT '' NOT NULL auto_increment , F_FAQ_QUESTION varchar (100) NULL , F_FAQ_ANSWER text NULL , F_FAQ_ORDER int NULL DEFAULT 1, F_FAQ_CATEGORY int NULL DEFAULT 1, F_FAQ_TYPE int NULL DEFAULT 0,KEY FORUM_FAQ_F_ID(F_ID))
-2147217871 | [MySQL][ODBC 3.51 Driver][mysqld-4.1.15-nt]Invalid default value for 'F_ID'

--------------------------------------------------------------------------------

Creating table(s)...
CREATE TABLE FORUM_FAQ_CATEGORY( FCAT_ID INT (11) DEFAULT '' NOT NULL auto_increment , FCAT_TITLE varchar(100) NULL , FCAT_ORDER int NULL DEFAULT 1, FCAT_LEVEL int NULL ,KEY FORUM_FAQ_CATEGORY_FCAT_ID(FCAT_ID))
CREATE TABLE FORUM_FAQ_CATEGORY( FCAT_ID INT (11) DEFAULT '' NOT NULL auto_increment , FCAT_TITLE varchar(100) NULL , FCAT_ORDER int NULL DEFAULT 1, FCAT_LEVEL int NULL ,KEY FORUM_FAQ_CATEGORY_FCAT_ID(FCAT_ID))
-2147217871 | [MySQL][ODBC 3.51 Driver][mysqld-4.1.15-nt]Invalid default value for 'FCAT_ID'


Edited by - dhutten on 23 November 2005 05:37:32
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 23 November 2005 :  05:45:12  Show Profile  Send ruirib a Yahoo! Message
And the fix is posted on the link above, in my starting post. Just follow Davio's instructions to change the code.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

dhutten
New Member

Netherlands
66 Posts

Posted - 23 November 2005 :  05:52:35  Show Profile
quote:
Originally posted by ruirib

And the fix is posted on the link above, in my starting post. Just follow Davio's instructions to change the code.



I did that but nothing worked.

I hope that someone can help otherwise i think i'm considering to use other software.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 23 November 2005 :  06:00:42  Show Profile  Send ruirib a Yahoo! Message
Please post a text link to your admin_mod_dbsetup.asp file.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 23 November 2005 :  07:23:17  Show Profile  Visit modifichicci's Homepage
You need to modify also admin_mod_dbsetup.asp and admin_mod_dbsetup2.asp.
These files have the same error as inc_create_forum_mysql.asp setting a default value for autoincrement field in mysql.

Search for autoincrement and delete the DEFAULT '' before.

There is a post (from Davio i think...) about it but i cannot find at this moment.

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 23 November 2005 :  08:46:04  Show Profile  Send ruirib a Yahoo! Message
Sorry dhutten, I thought Davio's post was about admin_mod_dbsetup.asp, not inc_create_mysql.asp. Yes, you need to perform similar corrections to both files as mofichicci wrote.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

dhutten
New Member

Netherlands
66 Posts

Posted - 23 November 2005 :  08:54:40  Show Profile
quote:
Originally posted by modifichicci

You need to modify also admin_mod_dbsetup.asp and admin_mod_dbsetup2.asp.
These files have the same error as inc_create_forum_mysql.asp setting a default value for autoincrement field in mysql.

Search for autoincrement and delete the DEFAULT '' before.

There is a post (from Davio i think...) about it but i cannot find at this moment.



Thanks this was the solution

Problems are solved

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