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
 Private Messages 3.5.05 Mod Question
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

Hopeful
Junior Member

130 Posts

Posted - 29 January 2005 :  02:14:52  Show Profile
Private Messages Mod (Default)

Creating table(s).....


-2147467259 | [MySQL][ODBC 3.51 Driver][mysqld-4.1.8-max]Invalid default value for 'M_ID'

When I went to admin section and clicked on the mod a new window appeared with a bunch of code but this one line above was in red... At the end of the page box it said this...

"If there were errors please post a question in the MOD Implementation Forum at
Snitz Forums "

Then it had a button to click that said "Finish"

I have not clicked finish because I did not know if I had an error due to the red lettering???

Do I click finish or does the red line mean there is an error?
While uploading it said a file pop_deleate.asp already exisited and wanted to know if I wanted to replace it and I answered no because I was not sure, could this be a problem?

All help appreciated, I am running the newest version of snitz on a mysql db.

Thank you!

Please explain everything in layman terms!!!

Edited by - Hopeful on 21 February 2005 14:59:40

Hopeful
Junior Member

130 Posts

Posted - 29 January 2005 :  02:36:07  Show Profile
I clicked finish and aparently there are errors... I now have 4 red lines of code...

-2147467259 | [MySQL][ODBC 3.51 Driver][mysqld-4.1.8-max]Invalid default value for 'M_ID'

-2147217900 | [MySQL][ODBC 3.51 Driver][mysqld-4.1.8-max]Duplicate column name 'M_PMEMAIL'

-2147217900 | [MySQL][ODBC 3.51 Driver][mysqld-4.1.8-max]Duplicate column name 'M_PMRECEIVE'

-2147217900 | [MySQL][ODBC 3.51 Driver][mysqld-4.1.8-max]Duplicate column name 'M_PMBLOCKLIST'


Can someone explain what I need to do?

Thanks so much!

Please explain everything in layman terms!!!
Go to Top of Page

Hopeful
Junior Member

130 Posts

Posted - 29 January 2005 :  12:27:58  Show Profile
Anyone??????????????

Please explain everything in layman terms!!!
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 29 January 2005 :  13:16:46  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Patience is a virtue. I'm sure that if someone knows the answer they will reply.

I don't use mySql as my database so the help I can give is limited. Have you tried
using PM's ? Are they broken or working?

Do you have a test account setup ?

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

GarethMoore1979
Junior Member

United Kingdom
220 Posts

Posted - 29 January 2005 :  13:58:30  Show Profile
quote:
Originally posted by Hopeful

I clicked finish and aparently there are errors... I now have 4 red lines of code...

-2147467259 | [MySQL][ODBC 3.51 Driver][mysqld-4.1.8-max]Invalid default value for 'M_ID'

-2147217900 | [MySQL][ODBC 3.51 Driver][mysqld-4.1.8-max]Duplicate column name 'M_PMEMAIL'

-2147217900 | [MySQL][ODBC 3.51 Driver][mysqld-4.1.8-max]Duplicate column name 'M_PMRECEIVE'

-2147217900 | [MySQL][ODBC 3.51 Driver][mysqld-4.1.8-max]Duplicate column name 'M_PMBLOCKLIST'


Can someone explain what I need to do?

Thanks so much!



For the first error- read this post: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=55925 it looks like a similar error I had when I swicthed to a new server last week.

The other 3 errors.... well its saying DUPLICATE, which surley means that those table have already been created in your database. So go and check to see if they are there!
Go to Top of Page

Hopeful
Junior Member

130 Posts

Posted - 01 February 2005 :  11:29:23  Show Profile
I already changed the option number and that worked for the forum to run without errors.
After that was taken care of I tried a new install of the private messages (I have never had this MOD installed before) this is the messages I get. As far as going to check if there are extra tables created in my database... How do I do that?

Thanks for the reply!

Please explain everything in layman terms!!!

Edited by - Hopeful on 01 February 2005 11:30:32
Go to Top of Page

GarethMoore1979
Junior Member

United Kingdom
220 Posts

Posted - 08 February 2005 :  21:20:42  Show Profile
well whats your forum database? access or mysql? go into your database and check the members table for those duplicate cumomns.
Go to Top of Page

Hopeful
Junior Member

130 Posts

Posted - 17 February 2005 :  08:59:23  Show Profile
How do I "go into my database" and check for the extra columns?

Thanks!

Please explain everything in layman terms!!!
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 17 February 2005 :  09:27:52  Show Profile
Depends on what database you're using, as Gareth said. If it's Access, you can simply download it and open it up. If it's a SQL database, your host should have provided you with some way of accessing it online. If not, you should get in contact with them and ask them for details on how to do so.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Hopeful
Junior Member

130 Posts

Posted - 17 February 2005 :  10:29:03  Show Profile
It is a mysql database and there is on option online with my server to manage my database, but since I don't know much about them I came here hoping someone could walk me through it. The online database manager asks me for a "querry" and I do not understand what I need to enter at that point.
Can anyone explain how the databases work and an easy way to access them or view them and make changes in the tables?
Thanks!

Please explain everything in layman terms!!!
Go to Top of Page

Hopeful
Junior Member

130 Posts

Posted - 17 February 2005 :  15:20:04  Show Profile
CREATE TABLE FORUM_PM( M_ID INT (11) DEFAULT '' NOT NULL auto_increment , M_SUBJECT varchar (100) NULL , M_FROM int NULL , M_TO int NULL , M_SENT varchar (50) NULL , M_MESSAGE text NULL , M_PMCOUNT varchar (50) NULL , M_READ int NULL DEFAULT 0, M_MAIL varchar (50) NULL , M_OUTBOX smallint NULL DEFAULT 1,KEY FORUM_PM_M_ID(M_ID))



I found the problem in the data base...
some columns were created in other tables like forum_members but the forum_pm table was not created...
I tried to create the forum_pm table in the database and it gave me an error saying that I had to create at least 1 column...
out of curiosity I copied the text that said "create table forum_pm" straight from my /forum/admin_mod_dbsetup.asp (text shown above in red) and entered it as a querry and it gave me the same error as the /forum/admin_mod_dbsetup.asp page did...

Invalid default value for 'M_ID'

This leads me to believe there is a value wrong in this querry that is not allowing the table to be created in my database (MySQL)...

I do not know anything about writting querrys so can anyone tell me what value needs to be changed in this querry or can anyone write a querry that will allow the table to be created???

Thanks so much!!!

Edited by - Hopeful on 18 February 2005 02:52:34
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 18 February 2005 :  10:28:40  Show Profile  Visit modifichicci's Homepage
Sql statement doesnt' want default value for autoincrement field.
That is a primary key.
Try to change to CREATE TABLE FORUM_PM( M_ID INT (11) auto_increment,....

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

Hopeful
Junior Member

130 Posts

Posted - 19 February 2005 :  03:19:33  Show Profile
Well I finally got that figured out, don't know how but I made the table and columns one by one in the data base and got Private messages installed!!! WHEW!!!

Only one problem..............

I am getting an error in ALL my topics... the first post shows, the second post has an error on it as follows:


Microsoft VBScript runtime error '800a000d'

Type mismatch: 'cLng'

/forum/inc_func_common.asp, line 652



and no other post show in any topics beyond the second one with the error.

I did not change inc_func_common.asp as the instructions did not call for me to do so. Can anyone tell me how to correct this???

Thanks!!!

Please explain everything in layman terms!!!

Edited by - Hopeful on 19 February 2005 03:34:54
Go to Top of Page

Hopeful
Junior Member

130 Posts

Posted - 19 February 2005 :  04:25:06  Show Profile
Got it Fixed!!!

The error was with the topics on my forum so I decided to try uploading my back up copy of topics.asp to see if the problem was gone... It was!!!
So I made another copy of my good backup copy of topics.asp and started to make the changes in the instructions from scratch and low and behold... when I got to the fourth instruction, something hit me... The instruction was this:

Find following: (about line 513)

Select All
rM_YAHOO = 5


Add the following directly below on line 514:

Select All
rM_PM = 6


When I added the line it made two number 6's in the string and I remember thinking "well that's weird" but It did not say to do anything else, so I left both 6's...
So I just decided to go to the revised copy and try changing all the numbers in the row to count up the rest of the way down and WOW............. It worked!!! Problem fixed there!!!
Maybe someone could update the read me file to include an instruction to do so (unless they already have )
Anyway... Hope that is the end of errors with this mod install!!!
Thanks!

Please explain everything in layman terms!!!
Go to Top of Page

Hopeful
Junior Member

130 Posts

Posted - 19 February 2005 :  04:47:44  Show Profile
quote:
Originally posted by modifichicci

Sql statement doesnt' want default value for autoincrement field.
That is a primary key.
Try to change to CREATE TABLE FORUM_PM( M_ID INT (11) auto_increment,....



This is the statement that it was trying to run automatically:


Private Messages Mod (Default)

Creating table(s)...
CREATE TABLE FORUM_PM( M_ID INT (11) DEFAULT '' NOT NULL auto_increment , M_SUBJECT varchar (100) NULL , M_FROM int NULL , M_TO int NULL , M_SENT varchar (50) NULL , M_MESSAGE text NULL , M_PMCOUNT varchar (50) NULL , M_READ int NULL DEFAULT 0, M_MAIL varchar (50) NULL , M_OUTBOX smallint NULL DEFAULT 1,KEY FORUM_PM_M_ID(M_ID))

After just changing and trying different stuff and not knowing what I was doing for hours... This is the one I stumbled onto that worked to create the table and one column (which it required at least one column...)

CREATE TABLE FORUM_PM(M_ID INT (11) DEFAULT " NOT NULL auto_increment " , KEY FORUM_PM_M_ID(M_ID))

One thing I noticed is it worked when I added the " after auto_increment (it was not in the default statement.)

Then I used this statement to add the columns one by one just changing the column name and value each time

ALTER TABLE FORUM_PM ADD M_PMRECEIVE int NULL DEFAULT 1

Maybe this will help someone else !!!

Thanks for your reply!!!

Please explain everything in layman terms!!!

Edited by - Hopeful on 19 February 2005 04:56:05
Go to Top of Page

Hopeful
Junior Member

130 Posts

Posted - 19 February 2005 :  23:19:10  Show Profile
Found a glitch today and need some help please...

When you have read a PM sent to you and want to reply to the sender and click on the reply logo picture it redirects you to the default.asp page of the forum instead of giving you a reply box... Any Ideas how to correct this???

Thank!

Please explain everything in layman terms!!!
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.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07