1
Iffy-Dcu
Call to a member function on a non-object in viewtopic.php
  • 2004/11/23 21:58

  • Iffy-Dcu

  • Just popping in

  • Posts: 2

  • Since: 2004/11/23


this is the error i get:
Fatal error: Call to a member function on a non-object in /var/www/html/modules/newbb_plus/viewtopic.php on line 82



and this is the code i have arround that line:
include XOOPS_ROOT_PATH.'/header.php';
include_once 
'class/class.forumposts.php';

if ( isset(
$HTTP_GET_VARS['move']) && 'next' == $HTTP_GET_VARS['move'] ) {
    
$sql 'SELECT t.topic_id, t.topic_title, t.topic_time, t.topic_status, t.topic_sticky, t.topic_last_post_id, f.forum_id, f.forum_name, f.forum_access, f.forum_type, f.allow_html, f.allow_sig, f.posts_per_page, f.hot_threshold, f.topics_per_page FROM '.$xoopsDB->prefix('bb_topics').' t LEFT JOIN '.$xoopsDB->prefix('bb_forums').' f ON f.forum_id = t.forum_id WHERE t.topic_time > '.$topic_time.' AND t.forum_id = '.$forum.' ORDER BY t.topic_time ASC LIMIT 1';
} elseif ( isset(
$HTTP_GET_VARS['move']) && 'prev' == $HTTP_GET_VARS['move']) {
    
$sql 'SELECT t.topic_id, t.topic_title, t.topic_time, t.topic_status, t.topic_sticky, t.topic_last_post_id, f.forum_id, f.forum_name, f.forum_access, f.forum_type, f.allow_html, f.allow_sig, f.posts_per_page, f.hot_threshold, f.topics_per_page FROM '.$xoopsDB->prefix('bb_topics').' t LEFT JOIN '.$xoopsDB->prefix('bb_forums').' f ON f.forum_id = t.forum_id WHERE t.topic_time < '.$topic_time.' AND t.forum_id = '.$forum.' ORDER BY t.topic_time DESC LIMIT 1';
} else {
    
$sql 'SELECT t.topic_id, t.topic_title, t.topic_time, t.topic_status, t.topic_sticky, t.topic_last_post_id, f.forum_id, f.forum_name, f.forum_access, f.forum_type, f.allow_html, f.allow_sig, f.posts_per_page, f.hot_threshold, f.topics_per_page FROM '.$xoopsDB->prefix('bb_topics').' t LEFT JOIN '.$xoopsDB->prefix('bb_forums').' f ON f.forum_id = t.forum_id WHERE t.topic_id = '.$topic_id.' AND t.forum_id = '.$forum;
}

2
Iffy-Dcu
Re: Call to a member function on a non-object in viewtopic.php
  • 2004/11/23 22:02

  • Iffy-Dcu

  • Just popping in

  • Posts: 2

  • Since: 2004/11/23


Version: 0.77
Description: Newbb (E-Xoops 1.05 Rev3) with Group Auth, Attachments, Polls and more!

i dunno the XOOPS version cuz its my friends site

Login

Who's Online

348 user(s) are online (266 user(s) are browsing Support Forums)


Members: 0


Guests: 348


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits