TinyPortal

Development => Support => Topic started by: raid on July 12, 2011, 08:41:37 PM

Title: showcomments db error
Post by: raid on July 12, 2011, 08:41:37 PM
Link to my site: http://www.darkforge.it
SMF version: SMF ver. 2.0
TP version: TP ver. 1.0 rc2
Default Forum Language: english
Theme name and version: outline 2.0
Browser Name and Version: FF 5
Mods installed: none
Related Error messages: ?action=tpmod;sa=showcomments
DataBase error: Unknown column '$ID_MEMBER' in 'on clause'
...board/Sources/TPmodules.php
row: 237

right now I fixed like this, on TPmodules.php
Code (search for) Select
LEFT JOIN {db_prefix}tp_data as log ON (log.value = art.id AND log.type = 1 AND log.ID_MEMBER = $ID_MEMBER)

Code (replace with) Select
LEFT JOIN {db_prefix}tp_data as log ON (log.value = art.id AND log.type = 1 AND log.ID_MEMBER = '. $ID_MEMBER . ')

I dont know if it is "correct" but it works, it seems to.

May I use this fix?


EDIT: I am sorry, I just saw that there is already a topic about it, I cannot remove the topic.

the board search tool it's a little bit strange, searching for: Unknown column '$ID_MEMBER' in 'on clause'
Support / Re: ong class="highlight">Unknownong> ong class="highlight">columnong> 'ong class="highlight">$ID_MEMBERong>' ong class="highlight">inong> 'on clause'
« by tx3bass on 25 June, 2011, 16:58:46 »

...... Unknown column '$ID_MEMBER' in 'on clause' File: *****/ ............ /TPmodules.php Line:  ......
Title: Re: showcomments db error
Post by: ZarPrime on July 13, 2011, 03:22:30 AM
raid,

The actual fix is in this post --> http://www.tinyportal.net/index.php?topic=34158.msg273109#msg273109

ZarPrime