Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] [pgsql] Report posts [C-StefanT]
#1
If the board is set to notify the moderators via PM about reported posts you get two SQL errors using PostgreSQL.

Quote:SQL Error:
22P02 - ERROR: invalid input syntax for integer: ""
Query:
SELECT pmid FROM mybb_privatemessages WHERE folder='3' AND uid='' AND pmid='0'
You can find the query in inc/datahandlers/pm.php in line 511.

Quote:SQL Error:
22P02 - ERROR: invalid input syntax for integer: ""
Query:
INSERT INTO mybb_privatemessages (fromid,folder,subject,icon,message,dateline,status,includesig,smilieoff,receipt,readtime,recipients,uid,toid) VALUES ('','1','Reported post at Forums','0','tester from Forums has reported this post: Test http://michael-laptop/~michael/mybb/showthread.php?tid=4&pid=5#pid5 The reason this user gave for reporting this post: Test This message has been sent to all moderators of this forum, or all administrators and super moderators if there are no moderators. Please check this post out as soon as possible.','1241369915','0','1','0','0','0','a:1:{s:2:"to";a:1:{i:0;s:1:"2";}}','2','2')
You can find the query in inc/datahandlers/pm.php in line 584.
Greets,
Michael
-------------
[Image: donation_drive_sig.png]


Messages In This Thread
[F] [pgsql] Report posts [C-StefanT] - by Michael S. - 2009-05-03, 05:07 PM
RE: [pgsql] Report posts - by Ryan Gordon - 2009-05-07, 04:46 PM
RE: [pgsql] Report posts - by Tomm M - 2009-05-13, 04:02 PM
RE: [pgsql] Report posts - by Ryan Gordon - 2009-05-13, 09:40 PM
RE: [pgsql] Report posts - by Tomm M - 2009-05-13, 09:54 PM
RE: [pgsql] Report posts - by Ryan Gordon - 2009-05-14, 01:43 AM
RE: [pgsql] Report posts - by Tomm M - 2009-05-14, 08:04 AM
RE: [pgsql] Report posts - by Ryan Gordon - 2009-05-14, 03:20 PM
RE: [pgsql] Report posts - by Tomm M - 2009-05-14, 03:37 PM
[F] [pgsql] Report posts - by Tomm M - 2009-05-15, 11:17 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)