Advertisement:

Author Topic: Wrong value type sent to the database. Integer expected. (current_board)  (Read 259 times)

Offline chinaren

  • Jr. Member
  • **
  • Posts: 315
  • Gender: Male
    • The Opus Path
Hello, me again.


I managed to get rid of my last error by uninstalling a mod, but then I was getting another error.  So I've uninstalled all my mods, but I'm still getting this error:


Code: [Select]
Wrong value type sent to the database. Integer expected. (current_board)
It's in the display.php area, according to the error log, this line:

Code: [Select]
'current_board' => $board,

I'm not sure where $board is initially defined though.  Any ideas?  Once again, I thank you for your help.  I honestly don't want to reload SMF again, but at this rate...

The Opus Path - The Next Generation of the Written Word

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,077
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Wrong value type sent to the database. Integer expected. (current_board)
« Reply #1 on: October 31, 2019, 02:03:01 PM »
Well since you uninstalled your mods. Replace the display.template.php 8n the default theme with a fresh one from the zip.

Offline chinaren

  • Jr. Member
  • **
  • Posts: 315
  • Gender: Male
    • The Opus Path
Re: Wrong value type sent to the database. Integer expected. (current_board)
« Reply #2 on: October 31, 2019, 03:40:08 PM »
Thanks for the suggestion, but I suspect the problem isn't actually with the code in Display.php, I think it is the value of $board, set somwhere else. 


I tried replacing Display.php anyway, but it didsn't help, still the same problem. Sigh.
The Opus Path - The Next Generation of the Written Word

Offline skb

  • Jr. Member
  • **
  • Posts: 374
    • Metabolically Challenged
Re: Wrong value type sent to the database. Integer expected. (current_board)
« Reply #3 on: November 01, 2019, 06:44:49 AM »
Replace the display.template.php 8n the default theme with a fresh one from the zip.
Learning, every day.
Forum - The Diabetic Pub
Because every diabetic needs help
SMF 2.1 RC2 (default theme) / TP 1.6.2

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,982
    • StoryBB/StoryBB on GitHub
Re: Wrong value type sent to the database. Integer expected. (current_board)
« Reply #4 on: November 01, 2019, 07:00:59 AM »
Queries are never part of the templates, this is a problem higher up the food chain, either in Display, or Load, or any mod that messes about with $board.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline chinaren

  • Jr. Member
  • **
  • Posts: 315
  • Gender: Male
    • The Opus Path
Re: Wrong value type sent to the database. Integer expected. (current_board)
« Reply #5 on: November 01, 2019, 10:29:51 AM »

Replace the display.template.php 8n the default theme with a fresh one from the zip.

Yes, sorry, meant that one.




Queries are never part of the templates, this is a problem higher up the food chain, either in Display, or Load, or any mod that messes about with $board.



That's what it looked like to me, looking at the code and the error message.   Which files initialise this?  Any idea?  I don't know how this has gone awry if I've uninstalled everything.  Unless something didn't uninstall properly.  :'(

The Opus Path - The Next Generation of the Written Word