Supportnet / Forum / Skripte(PHP,ASP,Perl...)
phpbb Forum - Plötzliche Sql Probleme! MSSQL-ODBC
Frage
hy leute!
vielleicht kann jemand von euch auch helfen! hab jetz schon ein paar solche foren laufen nur dieses macht probleme....
habe seit kurzem probleme!
lief bis dato problemlos doch auf einmal habe ich zB bei nen neuen beitrag wenn ich auf absenden gehe:
Warning: SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot insert the value NULL into column 'post_id', table 'phpbb.dbo.posts'; column does not allow nulls. INSERT fails., SQL state 23000 in SQLExecDirect in E:\www\Produktionssite\Forum\db\mssql-odbc.php on line 154
Warning: Cannot modify header information - headers already sent by (output started at E:\www\Produktionssite\Forum\db\mssql-odbc.php:154) in E:\www\Produktionssite\Forum\includes\page_header.php on line 449
Warning: Cannot modify header information - headers already sent by (output started at E:\www\Produktionssite\Forum\db\mssql-odbc.php:154) in E:\www\Produktionssite\Forum\includes\page_header.php on line 450
Warning: Cannot modify header information - headers already sent by (output started at E:\www\Produktionssite\Forum\db\mssql-odbc.php:154) in E:\www\Produktionssite\Forum\includes\page_header.php on line 451
wenn ich zB ein neues forum erstellen möchte:
Warning: SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot insert the value NULL into column 'auth_attachments', table 'phpbb.dbo.forums'; column does not allow nulls. INSERT fails., SQL state 23000 in SQLExecDirect in E:\www\Produktionssite\Forum\db\mssql-odbc.php on line 154
lt. datenbank shema sollten auf diese tables null nicht erlauben!?
bin ratlos! bitte um eure hilfe!
das ganze läuft auf:
Microsoft IIS Webserver
PHP Version 4.3.1
MSSQL Server 2000
__________________
lg
Chris
Antwort 1 von hendrikw
Protokolliere mal Deine Statements bzw. auch Resultsets mit. Wenn die Spalten keine NULLs erlauben, müssen sinnvolle Werte mitgeliefert werden (falls die DB sie nicht erzeugt; z.B. identity, Trigger ...). Evtl. geht ja schon die Ermittlung der Werte schief.
mfg
Hendrik
mfg
Hendrik

