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...
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 ) ) )
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?
Edited by user
14 years ago
| Reason: Not specified