Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

Getting an error when trying to post a link with Anonymouse plugin

This discussion is related to the Anonymouse addon.
HalfCatHalfCat ✭✭
edited March 2013 in Vanilla 2.0 - 2.3

This is the error I get:

FATAL ERROR IN: Gdn_Database.Query();

"Duplicate entry '0' for key 'PRIMARY'" insert GDN_AnonymousComment (IntIp, Name, CommentID) values (:IntIp, :Name, :CommentID) LOCATION: C:\wamp\www\redesign2\vanilla\library\database\class.database.php > 276: > 277: if (!is_object($PDOStatement)) { > 278: trigger_error(ErrorMessage('PDO Statement failed to prepare', $this->ClassName, 'Query', $this->GetPDOErrorMessage($this->Connection()->errorInfo())), E_USER_ERROR); > 279: } else if ($PDOStatement->execute($InputParameters) === FALSE) { >>> 280: trigger_error(ErrorMessage($this->GetPDOErrorMessage($PDOStatement->errorInfo()), $this->ClassName, 'Query', $Sql), E_USER_ERROR); > 281: } > 282: } else { > 283: $PDOStatement = $this->Connection()->query($Sql); > 284: } BACKTRACE: [C:\wamp\www\redesign2\vanilla\library\database\class.database.php] PHP::Gdn_ErrorHandler(); [C:\wamp\www\redesign2\vanilla\library\database\class.database.php 280] PHP::trigger_error(); [C:\wamp\www\redesign2\vanilla\library\database\class.sqldriver.php 1650] Gdn_Database->Query(); [C:\wamp\www\redesign2\vanilla\library\database\class.sqldriver.php 1121] Gdn_SQLDriver->Query(); [C:\wamp\www\redesign2\vanilla\plugins\Anonymouse\class.anonymousmodel.php 17] Gdn_SQLDriver->Insert(); [C:\wamp\www\redesign2\vanilla\plugins\Anonymouse\class.anonymouse.plugin.php 412] AnonymousModel::StaticSave(); [C:\wamp\www\redesign2\vanilla\library\core\class.pluginmanager.php 648] AnonymousePlugin->PostController_All_Handler(); [C:\wamp\www\redesign2\vanilla\library\core\class.pluginmanager.php 601] Gdn_PluginManager->CallEventHandler(); [C:\wamp\www\redesign2\vanilla\library\core\class.pluggable.php 127] Gdn_PluginManager->CallEventHandlers(); [C:\wamp\www\redesign2\vanilla\library\core\class.controller.php 451] Gdn_Pluggable->FireEvent(); [C:\wamp\www\redesign2\vanilla\applications\vanilla\controllers\class.vanillacontroller.php 44] Gdn_Controller->AddModule(); [C:\wamp\www\redesign2\vanilla\applications\vanilla\controllers\class.postcontroller.php 538] VanillaController->Initialize(); [C:\wamp\www\redesign2\vanilla\library\core\class.dispatcher.php 304] PostController->Initialize(); [C:\wamp\www\redesign2\vanilla\index.php 53] Gdn_Dispatcher->Dispatch();

Additionally, the comment is correctly added to the spam list in the dashboard, so this works fine. Apparently the error message that should be shown to the user trying to post a link is creating this error.

Any help is appreciated.

Comments

Sign In or Register to comment.