Home arrow Forum recent topics 1.6.2 & Error fetching Recent Topics: 1054 Unknown column 't.ID_TO
  Welcome, Guest. Please login or register.
Did you miss your activation email?
January 09, 2009, 05:00:26 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 1.1.x (Moderators: -Wolverine, kai920)
| | | |-+  recent topics 1.6.2 & Error fetching Recent Topics: 1054 Unknown column 't.ID_TO
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: recent topics 1.6.2 & Error fetching Recent Topics: 1054 Unknown column 't.ID_TO  (Read 4088 times)
gtz
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 44



View Profile
recent topics 1.6.2 & Error fetching Recent Topics: 1054 Unknown column 't.ID_TO
« on: February 14, 2006, 12:10:04 PM »

hello all.

after a server update i keep getting the error "Error fetching Recent Topics: 1054 Unknown column 't.ID_TOPIC' in 'on clause'" from the recent topics module.

when i'm not logged in, i get the usual topics listing, but as a logged in user i get said error message.

i run joomla_smf 1.1beta within joomla 1.0.7 with smf 1.1rc2. as far as i can tell, the database is intact, smf-table-prefix is set correctly, login works.

can anyone enlighten me as to where i should look for a solution to this?
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: recent topics 1.6.2 & Error fetching Recent Topics: 1054 Unknown column 't.I
« Reply #1 on: February 14, 2006, 03:25:07 PM »

hmmmm, haven't seen that one before.  Check the smf_topics table to make sure there is a ID_TOPIC column in your db.  Thats specifically what the error message is stating, that the ID_TOPIC column is unknown, which is impossible if SMF is working correctly.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: recent topics 1.6.2 & Error fetching Recent Topics: 1054 Unknown column 't.I
« Reply #2 on: February 14, 2006, 03:26:19 PM »

Also, update to Joomla-SMF 1.1RC1, the betas were just that, beta.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
gtz
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 44



View Profile
Re: recent topics 1.6.2 & Error fetching Recent Topics: 1054 Unknown column 't.I
« Reply #3 on: February 15, 2006, 04:22:45 AM »

Also, update to Joomla-SMF 1.1RC1, the betas were just that, beta.

damn. i feel st$p$d. i really thought i downloaded the latest version. snap.

er... i just rechecked. joomla-smf 1.1beta is the latest one in the downloads-section.

edit 2: ok. i was being dumb. thank you for not yelling at me. installed 1.1rc1 now. the problem's still there, though. the column the thing complains about not being there exists.
« Last Edit: February 15, 2006, 06:11:13 AM by gtz » Logged
mikeho1980
Joomla Newbie
*

Karma: +1/-2
Offline Offline

Posts: 49



View Profile WWW
Re: recent topics 1.6.2 & Error fetching Recent Topics: 1054 Unknown column 't.ID_TO
« Reply #4 on: February 15, 2006, 08:14:38 AM »

The 1.6.1 mod work fine for me, but when I updated to 1.6.2 I got the following error message, NO MATTER LOGGED IN OR NOT.
Quote
Error fetching Recent Topics: 1146 Table 'mchonet?4?_i5?9j._smfmembers' doesn't exist


I am using
Joomla v1.0.7
SMF v1.1 RC2
No CB installed

http://b201.no-ip.org
« Last Edit: February 15, 2006, 08:20:27 AM by mikeho1980 » Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: recent topics 1.6.2 & Error fetching Recent Topics: 1054 Unknown column 't.I
« Reply #5 on: February 15, 2006, 08:54:11 AM »

Let me take a look at it and see what is wrong... Huh
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: recent topics 1.6.2 & Error fetching Recent Topics: 1054 Unknown column 't.I
« Reply #6 on: February 15, 2006, 09:00:07 AM »

I wonder if an error is occurring but we are still getting the posts.  I hadn't thought of that.  Try commenting the 'return false' in the following block of code on or around line 152 of the mod.

change this:
Code:
} else {
     echo "Error fetching Recent Topics: ".mysql_errno()." ".mysql_error();
     return false;

to this

Code:
} else {
     echo "Error fetching Recent Topics: ".mysql_errno()." ".mysql_error();
     //return false;
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
mikeho1980
Joomla Newbie
*

Karma: +1/-2
Offline Offline

Posts: 49



View Profile WWW
Re: recent topics 1.6.2 & Error fetching Recent Topics: 1054 Unknown column 't.I
« Reply #7 on: February 15, 2006, 09:05:53 AM »

I wonder if an error is occurring but we are still getting the posts.  I hadn't thought of that.  Try commenting the 'return false' in the following block of code on or around line 152 of the mod.

change this:
Code:
} else {
     echo "Error fetching Recent Topics: ".mysql_errno()." ".mysql_error();
     return false;

to this

Code:
} else {
     echo "Error fetching Recent Topics: ".mysql_errno()." ".mysql_error();
     //return false;

I got Same error message after changed the code
Logged
mikeho1980
Joomla Newbie
*

Karma: +1/-2
Offline Offline

Posts: 49



View Profile WWW
Re: recent topics 1.6.2 & Error fetching Recent Topics: 1054 Unknown column 't.ID_TO
« Reply #8 on: February 15, 2006, 09:26:18 AM »

I don't know about mySQL.
But I have checked I got the table "smf_members" but not "smfmembers"
Logged
gtz
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 44



View Profile
Re: recent topics 1.6.2 & Error fetching Recent Topics: 1054 Unknown column 't.I
« Reply #9 on: February 15, 2006, 12:04:24 PM »

i just wanted to  mention that un- & re-installing both joomla-smf and the recent topics module did not make this problem go away.

as i said, the database is dandy and quite as it should be, joomla working fine, smf doing great. i do have the feeling that the smf-table-prefix gets messed up, somehow. i'll check.

edit: after some research, it boils down to this query screwing up:
Code:
SELECT
mem.realName,
m.posterTime,
m2.subject,
t.ID_TOPIC,
t.ID_MEMBER_UPDATED,
t.ID_LAST_MSG,
m.ID_MSG_MODIFIED,
m.ID_BOARD,
b.name AS bName,
t.numReplies,
m.posterName AS memberName,
" . ($user_info['is_guest'] ? "0" : "IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, -1)) + 1") . " AS new_from
FROM
({$smf_tprefix}members AS mem,
{$smf_tprefix}topics AS t,
{$smf_tprefix}messages AS m,
{$smf_tprefix}messages AS m2,
{$smf_tprefix}boards AS b
" . (!$user_info['is_guest'] ? "
LEFT JOIN {$smf_tprefix}log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = '".$ID_MEMBER."')
LEFT JOIN {$smf_tprefix}log_mark_read AS lmr ON (lmr.ID_BOARD = t.ID_BOARD AND lmr.ID_MEMBER = '".$ID_MEMBER."')" : "") . ")
WHERE
t_t.ID_BOARD = m.ID_BOARD
AND t.ID_BOARD = b.ID_BOARD" . (empty($exclude_boards) ? '' : "
AND t.ID_BOARD NOT IN (" . implode(', ', $exclude_boards) . ")") . "
AND t.ID_LAST_MSG = m.ID_MSG
AND t.ID_FIRST_MSG = m2.ID_MSG
AND mem.memberName = m.posterName
AND $user_info[query_see_board]
ORDER BY
m.ID_MSG DESC
LIMIT ".$limit

the point at which it falls apart is the first "LEFT JOIN"-row:

Code:
LEFT JOIN {$smf_tprefix}log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = '".$ID_MEMBER."')

when i query the databse directly to select t.ID_TOPIC from smf_topics as t, all works fine. as soon as i join this table with anything, it blows up into my face.

i'm beginning to suspect, the database might be corrupt. alas, a repair table on smf_topics claimed it was ok.
« Last Edit: February 15, 2006, 12:35:38 PM by gtz » Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: recent topics 1.6.2 & Error fetching Recent Topics: 1054 Unknown column 't.I
« Reply #10 on: February 15, 2006, 01:25:49 PM »

I got Same error message after changed the code
I expected that, but did the topics show up as well?
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: recent topics 1.6.2 & Error fetching Recent Topics: 1054 Unknown column 't.I
« Reply #11 on: February 15, 2006, 01:26:52 PM »

I don't know about mySQL.
But I have checked I got the table "smf_members" but not "smfmembers"
ok, so you have enter your SMF table prefix in wrong.  Did you just put smf or smf_ in the configuration of the module?
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: recent topics 1.6.2 & Error fetching Recent Topics: 1054 Unknown column 't.I
« Reply #12 on: February 15, 2006, 01:31:11 PM »


when i query the databse directly to select t.ID_TOPIC from smf_topics as t, all works fine. as soon as i join this table with anything, it blows up into my face.

i'm beginning to suspect, the database might be corrupt. alas, a repair table on smf_topics claimed it was ok.
hmmm, well the query is pretty much verbatim from SMF so I am unsure why it isn't working for you.  It is working for me and others so I suspect it must be something unique to your site.  Maybe your db is corrupt?  If I can help just let me know, but at this point I am not sure what the problem could be.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
mikeho1980
Joomla Newbie
*

Karma: +1/-2
Offline Offline

Posts: 49



View Profile WWW
Re: recent topics 1.6.2 & Error fetching Recent Topics: 1054 Unknown column 't.I
« Reply #13 on: February 15, 2006, 09:18:27 PM »

I expected that, but did the topics show up as well?
No
Check my site at b201.no-ip.org
« Last Edit: February 15, 2006, 09:24:22 PM by mikeho1980 » Logged
mikeho1980
Joomla Newbie
*

Karma: +1/-2
Offline Offline

Posts: 49



View Profile WWW
Re: recent topics 1.6.2 & Error fetching Recent Topics: 1054 Unknown column 't.I
« Reply #14 on: February 15, 2006, 09:23:14 PM »

ok, so you have enter your SMF table prefix in wrong.  Did you just put smf or smf_ in the configuration of the module?
smf_
If I put smf in the configuration, it (and it should) reported my smf forum not installed on same database as Joomla

All tables in my mySQL database
Code:
  jos_banner
  jos_bannerclient
  jos_bannerfinish
  jos_categories
  jos_clan_members
  jos_clan_members_comment
  jos_clan_members_conf
  jos_clan_members_fields
  jos_clan_members_fieldvalues
  jos_clan_members_squad
  jos_clan_members_squadperuser
  jos_components
  jos_contact_details
  jos_content
  jos_content_frontpage
  jos_content_rating
  jos_core_acl_aro
  jos_core_acl_aro_groups
  jos_core_acl_aro_sections
  jos_core_acl_groups_aro_map
  jos_core_log_items
  jos_core_log_searches
  jos_extcal_categories
  jos_extcal_config
  jos_extcal_events
  jos_extcal_plugins
  jos_groups
  jos_mambots
  jos_menu
  jos_messages
  jos_messages_cfg
  jos_modules
  jos_modules_menu
  jos_newsfeeds
  jos_poll_data
  jos_poll_date
  jos_poll_menu
  jos_polls
  jos_sections
  jos_serverstat_servers
  jos_serverstat_stats
  jos_session
  jos_stats_agents
  jos_template_positions
  jos_templates_menu
  jos_users
  jos_usertypes
  jos_weblinks
  smf_attachments
  smf_ban_groups
  smf_ban_items
  smf_banned
  smf_board_permissions
  smf_boards
  smf_calendar
  smf_calendar_holidays
  smf_categories
  smf_collapsed_categories
  smf_im_recipients
  smf_instant_messages
  smf_log_actions
  smf_log_activity
  smf_log_banned
  smf_log_boards
  smf_log_errors
  smf_log_floodcontrol
  smf_log_karma
  smf_log_mark_read
  smf_log_notify
  smf_log_online
  smf_log_polls
  smf_log_search_messages
  smf_log_search_results
  smf_log_search_subjects
  smf_log_search_topics
  smf_log_topics
  smf_membergroups
  smf_members
  smf_message_icons
  smf_messages
  smf_moderators
  smf_package_servers
  smf_permissions
  smf_personal_messages
  smf_pm_recipients
  smf_poll_choices
  smf_polls
  smf_sessions
  smf_settings
  smf_smileys
  smf_themes
  smf_topics
  weather_xml
« Last Edit: February 15, 2006, 09:28:30 PM by mikeho1980 » Logged
Pages: [1] 2 Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login