Current time: 05-24-2012, 04:12 PM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] SQL error when editing thread
11-12-2008, 07:37 AM
Post: #1
[F] SQL error when editing thread
I'm running 1.4.2. When I edit (quick edit) an existing thread and click on save changes I get

MyBB SQL Error
MyBB has experienced an internal SQL error and cannot continue.
SQL Error:
0 - ERROR: invalid input syntax for integer: ""
Query:
DELETE FROM mybb_threadsubscriptions WHERE uid='' AND tid='10'

This is with Postgresql 8.2.9.

Funny enough when looking at the thread the changes where successfully made.
Find all posts by this user
11-16-2008, 07:50 AM
Post: #2
RE: SQL error when editing thread
Try this; in inc/datahandlers/post.php find:

PHP Code:
$db->delete_query("threadsubscriptions""uid='{$post['uid']}' AND tid='{$post['tid']}'"); 

replace with

PHP Code:
$db->delete_query("threadsubscriptions""uid='".intval($post['uid'])."' AND tid='".intval($post['tid'])."'"); 
Visit this user's website Find all posts by this user
11-20-2008, 09:01 PM
Post: #3
[F] SQL error when editing thread
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
Visit this user's website 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