Welcome Guest Search | Active Topics | Log In | Register

Install issue SQL 2000 Options · View
billyboy
#1 Posted : Friday, June 20, 2008 4:35:24 PM
Rank: Member



Joined: 6/20/2008
Posts: 25
Location: NY
getting this error with new database
INSERT statement conflicted with column foreign key constraint 'FK_BBCode_Board'. the conflict occurred in 'YafTest' 'table 'yaf_Board' column 'BoardID'.
The statement has been terminated.

it's related to the import of BBCodeExtensions.xml the page board id (obviously) isn't found. Bigger problem than I am capable of digging up as I am to new to this. so...
UPDATE:
For a work around I put a try catch block around the offending code
// load default bbcode if available...
if ( File.Exists( Request.MapPath( _bbcodeImport ) ) )
{
// import into board...
using ( StreamReader bbcodeStream = new StreamReader( Request.MapPath( _bbcodeImport ) ) )
{
try
{
YAF.Classes.Data.Import.DataImport.BBCodeExtensionImport(PageBoardID, bbcodeStream.BaseStream);
bbcodeStream.Close();
}
catch
{

}

}
}

Looks like it's just the position in the code, the import should come after the board is created, and there apparently is no baord at this point?

Any ideas?
Jaben
#2 Posted : Wednesday, June 25, 2008 2:13:51 AM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 2,949
Location: Honolulu, HI
Thanks for the bug report -- I've fixed the issue with bbCodeImport.
"When you are grateful, fear disappears and abundance appears”."

billyboy
#3 Posted : Wednesday, June 25, 2008 2:21:04 AM
Rank: Member



Joined: 6/20/2008
Posts: 25
Location: NY
you da man!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.053 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET