WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   phpbb Forum ->Plötzliche Sql Probleme! MSSQL-ODBC (http://www.wcm.at/forum/showthread.php?t=101192)

reichr 30.06.2003 08:38

phpbb Forum ->Plötzliche Sql Probleme! MSSQL-ODBC
 
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

Flink 30.06.2003 10:12

Re: phpbb Forum ->Plötzliche Sql Probleme! MSSQL-ODBC
 
Zitat:

Original geschrieben von reichr
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
Irgendwas mit deiner Konfiguration stimmt nicht. Hier müsstest du in PHP zurückverfolgen, wie es zu diesem (richtig von der SQL-Datenbank zurückgewiesenen) NULL-Wert in den entsprechenden Spalten kommt. Auch die post_id hat ja einen NULL-Wert, was unzulässig ist. Die post_id kann von der Software (PHP) erzeugt werden oder sie wird von der Datenbank automatisch erzeugt. Du musst dann die Datenbank-Spalte so einstellen, dass automatisch der Primärindex post_id erzeugt und eingetragen wird, und die SW dies nicht tun muss. Offensichtlich trägt die PHP-SW die post_id aus diesem Grund nicht ein und liefert NULL.
Link nur für 30.6.2003: MS SQL-Server 2000 in 21 Tagen


Alle Zeitangaben in WEZ +2. Es ist jetzt 13:31 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag