Current time: 05-19-2013, 07:06 PM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] [pgsql] SQL error if threads are moderated [C-StefanT]
04-20-2009, 10:52 PM
Post: #1
[F] [pgsql] SQL error if threads are moderated [C-StefanT]
If new threads in a forum are moderated you get a sql error after submitting the form:
Quote:SQL Error:
0 - ERROR: invalid input syntax for integer: ""
Query:
SELECT replies,unapprovedposts,attachmentcount,attachmentcount FROM mybb_threads WHERE tid=''
Fix: Open inc/datahandlers/post.php and find:
PHP Code:
update_thread_counters($thread['tid'], array("replies" => 0"unapprovedposts" => 1)); 
Replace with:
PHP Code:
update_thread_counters($this->tid, array("replies" => 0"unapprovedposts" => 1)); 

Greets,
Michael
-------------
[Image: donation_drive_sig.png]
Visit this user's website Find all posts by this user
05-13-2009, 02:04 AM
Post: #2
RE: [pgsql] SQL error if threads are moderated
[08-May-2009 17:12:21] PHP Parse error: parse error, expecting `'}'' in root\editpost.php(616) : eval()'d code on line 4

is this the error your referring to, if so thank you i replaced on what you posted
Find all posts by this user
05-13-2009, 02:05 AM
Post: #3
RE: [pgsql] SQL error if threads are moderated
(05-13-2009 02:04 AM)technoman Wrote:  [08-May-2009 17:12:21] PHP Parse error: parse error, expecting `'}'' in root\editpost.php(616) : eval()'d code on line 4

is this the error your referring to, if so thank you i replaced on what you posted

That has nothing to do with this
Visit this user's website Find all posts by this user
05-13-2009, 02:24 AM
Post: #4
RE: [pgsql] SQL error if threads are moderated
thats right, so since this is a php error im recieving where can this be forwarded to since my responce isnt related to SQL.
Find all posts by this user
05-13-2009, 04:25 AM
Post: #5
RE: [pgsql] SQL error if threads are moderated
(05-13-2009 02:24 AM)technoman Wrote:  thats right, so since this is a php error im recieving where can this be forwarded to since my responce isnt related to SQL.

Try the general support forum
Visit this user's website Find all posts by this user
05-13-2009, 03:33 PM
Post: #6
[F] [pgsql] SQL error if threads are moderated
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group
Find all posts by this user


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication