|
[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. |
|||
|
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'])."'"); |
|||
|
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 |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help


