SMF Development > Fixed or Bogus Bugs

Wrong value type sent to the database. Integer expected. (id_msg)

<< < (2/3) > >>

emanuele:
Forumtastic a bit more informations would be helpful...for example the exact error message that appears in the error log.

Forumtastic:
I can't divulge our members IP addresses (I'm leaving out session information as well) for legal reasons but here is the relevant information from the error log:

id_error: 27
url: ?/board,1.0.html
message: Wrong value type sent to the database. Integer expected. (id_msg)<br />Function: MessageIndex
error type: critical
file: Sources/MessageIndex.php
line: 145

It looks like it is happening on this line:

$smcFunc['db_insert']('replace',
    '{db_prefix}log_boards',
    array('id_msg' => 'int', 'id_member' => 'int', 'id_board' => 'int'),
    array($modSettings['maxMsgID'], $user_info['id'], $board),
    array('id_member', 'id_board')
);

So it appears it has something to do with logging which boards have been seen.

emanuele:
Do you have any other error message that could be related, maybe just before that one in the same file?

And also: mods installed?

Arantor:
Better question, in the settings table, is there an entry for maxMsgID and if so what is it?

Forumtastic:
maxMsgID = 553384

And no related errors.

It's not consistent either. It generated about 300 errors within a couple of days but most of the time, people do not receive the error. It's a very busy forum.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version