TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,993
  • Total Topics: 21,324
  • Online today: 247
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 227
  • Total: 227

Unknown column '$ID_MEMBER' in 'on clause'

Started by tx3bass, June 25, 2011, 02:13:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IchBin

Did you make some other edit? The edit I gave you does not edit a template. It edits a source file. If you take the edit out, does the forum load again?

tx3bass

ya that was my fault.  your code did fix it... thanks a lot...

Lum-chan

Maybe it's a good idea to mark this topic as Solved? Worked for me too

Martine M

Running SMF 2.04 - Bloc's Theme Argentum enhanced - TP 1.107 - Main Forum language English - Browser Firefox 21

Greetings Martine

clothahump

Quote from: IchBinâ,,¢ on June 25, 2011, 05:15:13 PM
Thank you!

Yep, looks like a mistake on my part.

Find this line in TPmodules.php
LEFT JOIN {db_prefix}tp_data as log ON (log.value = art.id AND log.type = 1 AND log.ID_MEMBER = $ID_MEMBER)

Replace with this line:
LEFT JOIN {db_prefix}tp_data as log ON (log.value = art.id AND log.type = 1 AND log.ID_MEMBER = '.$ID_MEMBER.')

Got this problem in latest version of TP, lines to change are different to what you have posted here.  :tickedoff:

IchBin

If you received this error after your upgrade, it is likely that your file did not get replaced as this error was fixed. On line 231 in TPmodules.php it now uses $context['user']['id'] instead of $ID_MEMBER.

Attach your file if you still need assistance.

clothahump

Looks like I made a mistake, errors were out of date, sorry.

IchBin

It's a good idea to clear that log and see if you get more. :)

clothahump

Cleared it earlier and nothing to report yet, normally would be something by now so looks good.

This website is proudly hosted on Crocweb Cloud Website Hosting.