Trying to do a bit of digging to better pinpoint the problem. Once again, this is an integration with phpbb3 (up to date) and it had been working with an earlier version. I first tried the regular upgrade but it didn't do the job in updating all the db changes needed (maybe because my arrowchat version was a very early one). So I started from scratch, wiped out the arrowchat db entries, started with all new arrowchat files and did a fresh install. And everything seems perfect in the admin console ([mydomain]/arrowchat/admin/). But the bar does not appear on the forum itself and I see a js error generated as mentioned earlier.
I spent some time with firebug, which confirms that the problem comes when external.php gets called with the following argument:
external.php?type=js
I was also able to see that the line that generates the error comes right after the line external.php generates that reads as follows:
when you call external.php with an argument of type=js, external.php generates that good line close to the bottom of this code block:
- Code: Select all
if ($_GET['type'] == "js") {
header('Content-type: text/javascript; charset: UTF-8');
header('Expires: '.gmdate("D, d M Y H:i:s", time() + 3600*24*7).' GMT');
// Get Template Files
$file_bar_hide_tab = line_break_replace(get_include_contents("themes/".$theme."/template/bar_hide_tab.php"));
$file_bar_show_tab = line_break_replace(get_include_contents("themes/".$theme."/template/bar_show_tab.php"));
$file_applications_bookmarks_tab = line_break_replace(get_include_contents("themes/".$theme."/template/applications_bookmarks_tab.php"));
$file_applications_bookmarks_window = line_break_replace(get_include_contents("themes/".$theme."/template/applications_bookmarks_window.php"));
$file_applications_bookmarks_list = line_break_replace(get_include_contents("themes/".$theme."/template/applications_bookmarks_list.php"));
$file_applications_tab = line_break_replace(get_include_contents("themes/".$theme."/template/applications_tab.php"));
$file_applications_window = line_break_replace(get_include_contents("themes/".$theme."/template/applications_window.php"));
$file_notifications_tab = line_break_replace(get_include_contents("themes/".$theme."/template/notifications_tab.php"));
$file_notifications_window = line_break_replace(get_include_contents("themes/".$theme."/template/notifications_window.php"));
$file_chat_tab = line_break_replace(get_include_contents("themes/".$theme."/template/chat_tab.php"));
$file_chat_window = line_break_replace(get_include_contents("themes/".$theme."/template/chat_window.php"));
$file_buddylist_tab = line_break_replace(get_include_contents("themes/".$theme."/template/buddylist_tab.php"));
$file_buddylist_window = line_break_replace(get_include_contents("themes/".$theme."/template/buddylist_window.php"));
$file_maintenance_tab = line_break_replace(get_include_contents("themes/".$theme."/template/maintenance_tab.php"));
$file_announcements_display = line_break_replace(get_include_contents("themes/".$theme."/template/announcements_display.php"));
$file_chatrooms_tab = line_break_replace(get_include_contents("themes/".$theme."/template/chatrooms_tab.php"));
$file_chatrooms_window = line_break_replace(get_include_contents("themes/".$theme."/template/chatrooms_window.php"));
$file_chatrooms_room = line_break_replace(get_include_contents("themes/".$theme."/template/chatrooms_room.php"));
// Include Javascript Libraries
include_once (dirname(__FILE__).'/includes/js/arrowchat_libraries.js');
echo "\n\n// ArrowChat Software Chat Script\n// http://www.arrowchat.com\n";
// Include Main ArrowChat Javascript File
require_once (dirname(__FILE__).'/includes/class_javascript_packer.php');
ob_start();
require_once (dirname(__FILE__).'/includes/js/arrowchat_core.js');
$script = ob_get_clean();
$packer = new JavaScriptPacker($script, 'Normal', true, false);
$packed = $packer->pack();
echo $packed;
exit(0);
}
Right after that good line, external.php generates the line that is giving an error via this code block:
- Code: Select all
// Include Main ArrowChat Javascript File
require_once (dirname(__FILE__).'/includes/class_javascript_packer.php');
ob_start();
require_once (dirname(__FILE__).'/includes/js/arrowchat_core.js');
$script = ob_get_clean();
$packer = new JavaScriptPacker($script, 'Normal', true, false);
$packed = $packer->pack();
echo $packed;
exit(0);
}
I'm not sure where in that code block the problem comes from, but firebug tells me the actual error in the generated js is:
unterminated string literal
http://[my domain]/arrowchat/external.php?type=js
Line 65
[Break On This Error] acsi = 1, Q = 0, ... acp = "Powered By <a href='http:
And here's a txt file showing line 65 of the generated js that includes that error:
http://phpbbmods.asinsh.com/js_error_line_65.txtHope that helps track this down. I'd really like to get this working...thoughts?