YAFLogo

billyboy
  • billyboy
  • 65% (Friendly)
  • YAF Forumling Topic Starter
14 years ago
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?
Sponsor

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
14 years ago
Thanks for the bug report -- I've fixed the issue with bbCodeImport.
billyboy
  • billyboy
  • 65% (Friendly)
  • YAF Forumling Topic Starter
14 years ago
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button