Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Fatal Error in Gdn_Database.Query();

edited November 2011 in Vanilla 2.0 - 2.8
Hi,
Now I'm getting this error with Vanilla. Now I get that this item doesn't exhist but it does: tvgamesh_tvpmmvanilla.GDN_discussion

Terry

Table 'tvgamesh_tvpmmvanilla.GDN_discussion' doesn't exist
SELECT DiscussionID, CategoryID, Name, Body, DateLastComment, LastCommentUserID, CountComments From GDN_discussion order by CountComments desc LIMIT 10
The error occurred on or near: /home5/tvgamesh/public_html/tvpmmforum/library/database/class.database.php
283: $PDOStatement = $this->Connection()->query($Sql);
284: }
285:
286: if ($PDOStatement === FALSE) {
287: trigger_error(ErrorMessage($this->GetPDOErrorMessage($this->Connection()->errorInfo()), $this->ClassName, 'Query', $Sql), E_USER_ERROR);
288: }
289:
290: // Did this query modify data in any way?
291: if ($ReturnType == 'ID') {
Backtrace:
[/home5/tvgamesh/public_html/tvpmmforum/library/database/class.database.php:287] PHP::Gdn_ErrorHandler();
[/home5/tvgamesh/public_html/tvpmmforum/library/database/class.sqldriver.php:1650] Gdn_Database->Query();
[/home5/tvgamesh/public_html/tvpmmforum/plugins/LatestComment/class.latestcommentmodule.php:24] Gdn_SQLDriver->Query();
[/home5/tvgamesh/public_html/tvpmmforum/plugins/LatestComment/default.php:64] LatestCommentModule->GetData();
[/home5/tvgamesh/public_html/tvpmmforum/library/core/class.pluginmanager.php:648] LatestCommentPlugin->Base_Render_Before();
[/home5/tvgamesh/public_html/tvpmmforum/library/core/class.pluginmanager.php:594] Gdn_PluginManager->CallEventHandler();
[/home5/tvgamesh/public_html/tvpmmforum/library/core/class.pluggable.php:179] Gdn_PluginManager->CallEventHandlers();
[/home5/tvgamesh/public_html/tvpmmforum/applications/vanilla/controllers/class.discussionscontroller.php:148] Gdn_Pluggable->__call();
[/home5/tvgamesh/public_html/tvpmmforum/applications/vanilla/controllers/class.discussionscontroller.php:148] DiscussionsController->Render();
[/home5/tvgamesh/public_html/tvpmmforum/library/core/class.dispatcher.php:322] DiscussionsController->Index();
[/home5/tvgamesh/public_html/tvpmmforum/index.php:53] Gdn_Dispatcher->Dispatch();
Variables in local scope:
[Sql] 'SELECT DiscussionID, CategoryID, Name, Body, DateLastComment, LastCommentUserID, CountComments From GDN_discussion order by CountComments desc LIMIT 10'
[InputParameters] array (
)
[Options] array (
'ReturnType' => 'DataSet',
)
[ReturnType] 'DataSet'
[PDOStatement] false
Need Help?
If you are a user of this website, you can report this message to a website administrator.
If you are an administrator of this website, you can get help at the Vanilla Community Forums.
Additional information for support personnel:
Application: Vanilla
Application Version: 2.0.18.1
PHP Version: 5.2.17
Operating System: Linux
Server Software: Apache
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.8 (KHTML, like Gecko) Chrome/17.0.942.0 Safari/535.8
Request Uri: /
Controller: Gdn_Database
Method: Query

Best Answer

  • Options
    LincLinc Detroit Admin
    Answer ✓
    Disable the Latest Comment plugin via your config.

Answers

Sign In or Register to comment.