News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

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

Started by Jade Elizabeth, August 03, 2015, 02:55:56 AM

Previous topic - Next topic

Jade Elizabeth

Getting a weird error that I don't understand. It seems to be happening quite a lot.

http://www.jades-world.com/forums/index.php?pretty;board=religion-and-science;topic=is-there-life-on-other-planets
Wrong value type sent to the database. Integer expected. (id_msg)
Function: Display /Sources/Display.php
Line: 871


Mods:

3.    Simple Audio Video Embedder   3.0.2
4.   Tapatalk SMF 2.0 Plugin   4.1.1
5.   Member Color Link   3.1
6.   Auto Merge Double Post   1.5
7.   Pretty URLs   1.1.2
8.   Mentions   1.1.1
9.   New Topic Button   1.0
10.   ENotify   2.0.2
11.   TopicStarter Mod   1.7
12.   Karma Description Mod   2.7.1
13.   Users Online Today   2.1
14.   Social Login   3.1
15.   httpBL   2.5.1
16.   Stop Spammer
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

margarett

That suggests that the variable $mark_at_msg is getting a non-integer value

That piece of code is standard SMF code and I can't see which MOD could affect it.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Jade Elizabeth

That's exactly why I was confused too!

I've attached the file in case you might notice something I've missed :).
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

margarett

Actually it might be something related to Auto Merge Double Post but I'm not sure.

I suggest you to change this
if ($mark_at_msg >= $topicinfo['new_from'])

Into
if (is_int($mark_at_msg) && $mark_at_msg >= $topicinfo['new_from'])
This won't fix the underlying problem (because I don't know what it is...) but should prevent the error from showing up.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Jade Elizabeth

I'm not so sure it's the Auto Merge one, it's installed on both of my forums and the other one has none of these errors.
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Advertisement: