MyBB Community Forums

Full Version: MySql error Anti-DDoS Plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello to everyone,
I'm trying to install the plugin : Anti DDos _ Floods_#1_dev,
but after i copied the " antifloodsecurity.php " into " /htdocs/inc/plugins " and 
I try to active the plugin from the ACP this error occured 

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1366 - Incorrect integer value: 'NULL' for column 'sid' at row 1
Query:
INSERT INTO mybb_settings (`sid`,`name`,`title`,`description`,`optionscode`,`value`,`disporder`,`gid`) VALUES ('NULL','antifloodsecurity_enable','Do you want to activate Plugin?','Protect your forum from Floods and Attacks.','yesno','1',1,0)
Please contact the MyBB Group for technical support.

Can someone explain me how to solve please ?
For errors like these (passing values for columns that are incremented automatically), if you're able to modify the plugin source manually you can remove/comment lines that reference such columns:
//'sid' => 'null',

The file to modify usually would be inc/plugins/*.php.
Hello Devilshakers, it works.
Thank you very much