2009-04-20, 10:52 PM
If new threads in a forum are moderated you get a sql error after submitting the form:
Quote:SQL Error:Fix: Open inc/datahandlers/post.php and find:
0 - ERROR: invalid input syntax for integer: ""
Query:
SELECT replies,unapprovedposts,attachmentcount,attachmentcount FROM mybb_threads WHERE tid=''
update_thread_counters($thread['tid'], array("replies" => 0, "unapprovedposts" => 1));
Replace with:update_thread_counters($this->tid, array("replies" => 0, "unapprovedposts" => 1));