Line : 45
File : /home/southern/public_html/modules/Forums/chatbox_front.php
It seems the prob is that an expected table doesn't exist. I used the Import SQL function in PHPMyAdmin. Any ideas?
The install.txt:
##############################################################
## MOD Title: ChatBox
## MOD Author: Smartor <
Only registered users can see links on this board! Get registered or login to the forums!
> (Hoang Ngoc Tu)
Only registered users can see links on this board! Get registered or login to the forums!
## MOD Description: This will add a LIVE chatbox on your phpBB2
## Only registered users can chat. Admin can take
## control chatroom by some commands(/KICK username, /CLEAR). Smilies enabled.
## Only tested with phpBB 2.0.x/MySQL
## MOD Version: 1.1.9e
##
## Installation Level: easy
## Installation Time: 10 Minutes
## Files To Edit: 3
## index.php
## templates/subSilver/index_body.tpl
## language/lang_english/lang_main.php
##
## Included Files: 10
## chatbox_db_install.php (only required for DB install)
## chatbox_front.php
## chatbox_mod/chatbox.css
## chatbox_mod/chatbox.php
## chatbox_mod/chatbox_config.php
## chatbox_mod/chatbox_drop.php
## chatbox_mod/chatbox_function.php
## chatbox_mod/messenger_list.php
## chatbox_mod/messenger_send.php
## chatbox_mod/messenger_view.php
##############################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## Author Notes:
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]---------------------------------------------
#
index.php
#
#-----[ AFTER, ADD ]--------------------------------------
#
<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_CHATTERS_ONLINE}
<!-- BEGIN switch_user_logged_out -->
[ {L_LOGIN_TO_JOIN_CHAT} ]
<!-- END switch_user_logged_out -->
<!-- BEGIN switch_user_logged_in -->
[ <a href="javascript:void(0);" onClick="window.open('{S_JOIN_CHAT}','{CHATBOX_NAME}','scrollbars=no,width=540,height=450')">{L_CLICK_TO_JOIN_CHAT}</a> ]
<!-- END switch_user_logged_in -->
<br />{CHATTERS_LIST}
</span>
</td>
</tr>
#
#-----[ COPY ]--------------------------------------------
#
copy chatbox_front.php to chatbox_front.php
copy chatbox_mod/*.* to chatbox_mod/
#
#-----[ SQL ]---------------------------------------------
# Run these folloing queries manually or run chatbox_db_install.php once
# Afterthat please remove your chatbox_db_install.php immediately
#
CREATE TABLE nuke_chatbox (
id int(11) NOT NULL auto_increment,
name varchar(99) NOT NULL,
msg varchar(255) NOT NULL,
timestamp int(10) unsigned NOT NULL,
PRIMARY KEY (id));
CREATE TABLE nuke_chatbox_session (
username varchar(99) NOT NULL,
lastactive int(10) DEFAULT '0' NOT NULL,
laststatus varchar(8) NOT NULL,
UNIQUE username (username));
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Joined: Aug 27, 2002 Posts: 14925 Location: Kansas
Posted:
Sat Feb 21, 2004 10:40 pm
If you are using phpmyadmin, look to see if the two tables exist. If they don't then your install didn't work. Did you try the install that the author provides (chatbox_db_install.php )? Or. just use phpmyadmin, go to the SQL window, copy and paste this code
Code:
CREATE TABLE nuke_chatbox (
id int(11) NOT NULL auto_increment,
name varchar(99) NOT NULL,
msg varchar(255) NOT NULL,
timestamp int(10) unsigned NOT NULL,
PRIMARY KEY (id));
CREATE TABLE nuke_chatbox_session (
username varchar(99) NOT NULL,
lastactive int(10) DEFAULT '0' NOT NULL,
laststatus varchar(8) NOT NULL,
UNIQUE username (username));
Yes, I used the SQL function in PHPMyAdmin and clicked Go just the same as I've done and there was no error. SQL said the import succeeded. I have now examined the chatbox_front.php and I noticed a period after $table_chatbox_session_name:
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}
I'm wondering whether this period might have been interpreted as part of a table name, in which case the table wouldn't exist. Thanks, I'll go try that SQL import again, and if still no forum I'll run the install.php...
Last edited by southern on Sat Feb 21, 2004 10:58 pm; edited 1 time in total
I looked at my nuke tables in PHPMyAdmin and there are two chatbox tables:nuke_chatbox and nuke_chatbox_session... should I still re-run the SQL import or try the install php file? Or perhaps it'd be quicker if I just PMed you my admin password?
Could it be a chmod issue?
Last edited by southern on Sat Feb 21, 2004 11:31 pm; edited 1 time in total
Warning: main(includes/constants.php): failed to open stream: No such file or directory in /home/southern/public_html/modules/Forums/common.php on line 168
Warning: main(): Failed opening 'includes/constants.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/southern/public_html/modules/Forums/common.php on line 168
Warning: main(includes/template.php): failed to open stream: No such file or directory in /home/southern/public_html/modules/Forums/common.php on line 169
Warning: main(): Failed opening 'includes/template.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/southern/public_html/modules/Forums/common.php on line 169
Warning: main(includes/sessions.php): failed to open stream: No such file or directory in /home/southern/public_html/modules/Forums/common.php on line 170
Warning: main(): Failed opening 'includes/sessions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/southern/public_html/modules/Forums/common.php on line 170
Warning: main(includes/auth.php): failed to open stream: No such file or directory in /home/southern/public_html/modules/Forums/common.php on line 171
Warning: main(): Failed opening 'includes/auth.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/southern/public_html/modules/Forums/common.php on line 171
Warning: main(includes/functions.php): failed to open stream: No such file or directory in /home/southern/public_html/modules/Forums/common.php on line 172
Warning: main(): Failed opening 'includes/functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/southern/public_html/modules/Forums/common.php on line 172
Fatal error: Call to undefined function: append_sid() in /home/southern/public_html/modules/Forums/common.php on line 181
Now I wonder if I put the files in the right directories. I put chatbox_mod in modules/Forums/
Took off the thing last night through PHPMyAdmin drop tables... Live and learn. At least my forum is back. Thanks for the suggestions, Raven, I assume now this version of chatbox doesn't work with my version of phpbb.
Warning: main(./includes/constants.php): failed to open stream: No such file or directory in /home/xdonlin/public_html/forum/common.php on line 119
Warning: main(): Failed opening './includes/constants.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xdonlin/public_html/forum/common.php on line 119
Warning: main(./includes/template.php): failed to open stream: No such file or directory in /home/xdonlin/public_html/forum/common.php on line 120
Warning: main(): Failed opening './includes/template.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xdonlin/public_html/forum/common.php on line 120
Warning: main(./includes/sessions.php): failed to open stream: No such file or directory in /home/xdonlin/public_html/forum/common.php on line 121
Warning: main(): Failed opening './includes/sessions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xdonlin/public_html/forum/common.php on line 121
Warning: main(./includes/auth.php): failed to open stream: No such file or directory in /home/xdonlin/public_html/forum/common.php on line 122
Warning: main(): Failed opening './includes/auth.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xdonlin/public_html/forum/common.php on line 122
Warning: main(./includes/functions.php): failed to open stream: No such file or directory in /home/xdonlin/public_html/forum/common.php on line 123
Warning: main(): Failed opening './includes/functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xdonlin/public_html/forum/common.php on line 123
Warning: main(./includes/db.php): failed to open stream: No such file or directory in /home/xdonlin/public_html/forum/common.php on line 124
Warning: main(): Failed opening './includes/db.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xdonlin/public_html/forum/common.php on line 124
Fatal error: Call to undefined function: append_sid() in /home/xdonlin/public_html/forum/common.php on line 132
What should I tell him? He apparently knows about this forum but contacted me through feedback...
Quote:
Sender's Name: Marcelo Souza
Sender's Email: marcelo at 3donline dot com dot br
Message: Hi there Man. I got a crazy error on my forum today, and i could not contact a friend of mine who knows more about PHP...I saw that you have the similar error some times ago...I saw it on this link :
Only registered users can see links on this board! Get registered or login to the forums!
If you could help me in some way...I will be very thankful. My english is not too good. I am from Brazil, and my forum is about computer animation. I own it alone and try to keep it on air without any great investment. The site is on air for about 7 years and the forum, for about 1 year, with more than 4000 users... I can\'t leave it offline.
So...I have the idea to ask you for a little tip, or help, to put it back online. Just any clue about this error, will be very valuable for me.
Thanks a lot man !
Take care...
Look at my error :
Only registered users can see links on this board! Get registered or login to the forums!
Looks similar to your problem, and i read that you solved it, right ?
Thanks again.: )
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum