|
|||
|
I installed the demo server software on Solaris 9. Everything seems to be running correctly and I followed the mod instructions for phpBB which seems to work fine, but now I am getting the following error when any of my users try to post on the site...
Fatal error: Call to a member function on a non-object in /usr/local/apache2/htdocs/phpBB2/includes/functions_chat.php on line 69 So here is line 69 from functions_chat.php while (false !== ($entry = $d->read())) Any ideas on this would be greatly appreciated. Shane |
|
|||
|
Here is the entire function
function getChatterList() { global $chat_data_path, $lang; $userListStr = ""; $d = dir($chat_data_path); while (false !== ($entry = $d->read())) { $rest = substr($entry, 0, 5); if ($rest == "room_") { if (file_exists($chat_data_path.$entry)) { $f_users = file($chat_data_path.$entry); for ($i = 0; $i < count($f_users); $i ++) { $f_line = trim($f_users[$i]); if ($f_line != "") { $userListStr = ($userListStr == "") ? $f_line : $userListStr. "," . $f_line; } } } } } $d->close(); $userListStr = ($userListStr == "") ? $lang['None'] : $userListStr; return $userListStr; } |
|
|||
|
please set $chat_data_path value in functions_chat.php:
this is from the module installation guide: Code:
# #-----[ OPEN ]------------------------------------------ # includes/functions_chat.php # #-----[ FIND ]------------------------------------------ # $chat_data_path = "C:/Program Files/123FlashChatServer/data/"; # #-----[ REPLACE WITH ]---------------------------------- # # IMPORTANT!!! # Before you install this mod, please make sure you have followed the readme.txt , # and installed the 123 flash chat server software first! # if you installed the 123 flash chat server software in /your_123_flash_chat_server_installed_dir # then you can set the parameter of "chat_data_path" to "/your_123_flash_chat_server_installed_dir/data/" # If your system is unix, # please make sure your php can read the /your_123_flash_chat_server_installed_dir/data/online.txt file, # if not, you can do some commands like: # chmod 755 /your_123_flash_chat_server_installed_dir/data/ # or # chmod o+x /your_123_flash_chat_server_installed_dir/data/ # chmod o+r /your_123_flash_chat_server_installed_dir/data/online.txt # $chat_data_path = "/your_123_flash_chat_server_installed_dir/data/"; |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|