Page 1 of 1
Bar not apear
PostPosted: 21 Jan 2011, 18:45
by PIoakeim
Hello,
first i do update but the bar not apear. After i do fresh install i follow all steps right.
The same problem. NO BAR Only admin panel but no chat... :(
I use the last wordpress an buddypress.
Maby help : internet explorer say that was a problem in line :
Μήνυμα: Μη τερματισμένη σταθερά συμβολοσειράς
Γραμμή: 65
Χαρακτήρας: 1
Κώδικας: 0
URI:
http://www.mydomain/arrowchat/external.php?type=jsPlease help!
Re: Bar not apear
PostPosted: 22 Jan 2011, 08:53
by asinsh
Same problem for me.
[rest of post deleted because my next post is more complete]
Re: Bar not apear
PostPosted: 23 Jan 2011, 05:29
by asinsh
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?
Re: Bar not apear
PostPosted: 23 Jan 2011, 09:17
by asinsh
Success. From reading other posts in this forum, I decided to try to upload includes/js/arrowchat_core.js in BINARY mode and that fixed it. PIoakeim, you should try that and see what happens.
Jason, you should probably update the install instructions to specify that. And some questions for you: I see that the file is in fact an ascii one, so what does it mean to upload in binary mode, why does it have to be uploaded in binary mode and why don't we have the same problems with the other js files?
Re: Bar not apear
PostPosted: 23 Jan 2011, 13:22
by Jason
The install instructions actually do say binary mode, but it doesn't matter because this will no longer be required as of v1.0.1.
Re: Bar not apear
PostPosted: 23 Jan 2011, 21:18
by PIoakeim
asinsh wrote:Success. PIoakeim, you should try that and see what happens.
I do this but without results... My barchat not apear again. Thanks anyway..
I please someone to do something about this problem.
Re: Bar not apear
PostPosted: 23 Jan 2011, 22:02
by Jason
PIoakeim wrote:asinsh wrote:Success. PIoakeim, you should try that and see what happens.
I do this but without results... My barchat not apear again. Thanks anyway..
I please someone to do something about this problem.
This is your problem. The error that you said is due to not uploading in binary mode. You may need to try a different FTP program if your FTP's binary is not working, or wait a tiny bit more for v1.0.1 where this is no longer necessary.
Re: Bar not apear
PostPosted: 24 Jan 2011, 00:10
by PIoakeim
I use FileZilla in binary mode and FireFTP also. No results... I have spent much time trying .. I still do not see anything. A member of the site yesterday, he said some time after the reloads page to internet Explorer seen the bar for a while but not all the bar, only a part of it.. In others like firefox not seem anything ...
So i ll wait the next version... Thank you again.
Re: Bar not apear
PostPosted: 24 Jan 2011, 09:21
by asinsh
PIoakeim, make sure you click F5 to refresh your browser so that it reads the new file you uploaded in binary (it doesn't automatically clear itself).
Jason, I posted elsewhere but since I have your attention ;)
Any hints about how to make the bar fixed width. I did the obvious thing - in the #arrowchat_base line of the stylesheet I replaced the margin-left attribute with:
width:900px;
but that didn't work.
Re: Bar not apear
PostPosted: 25 Jan 2011, 00:01
by PIoakeim
asinsh wrote:PIoakeim, make sure you click F5 to refresh your browser so that it reads the new file you uploaded in binary (it doesn't automatically clear itself).
I edit my post, because the F5 make barchat to apear but if you gone and return to the page and make new login, you need to push again the F5 because there are not apear chat anymore.
Exept that, when press F5 and chat work, it dont apear in profiles pages of budypress.
So, something elsse again is wrong. I use ccleaner also.
Re: Bar not apear
PostPosted: 30 Jan 2011, 00:10
by PIoakeim
Hello, after ugrade to 1.0.1 bar apear again but not to all pages.
I use simple press forum in my site. The chat does not appear when you open a post, but only when you are in the central forum or sub-sections.
Some idea about this?
It also does not appear in either groups, when you enter them and all of pages to profil in baddypress.
I wish you please, let me know if from now on there will be a permanent incompatibility with baddypress. So to get back to old version that worked correctly or to abolish it.
Thank you.
Topic Closed
PostPosted: 07 Nov 2012, 12:40
by Staff Bot
This thread has been locked because the last post is greater than six months old. There is a good chance that the information in this thread is outdated. Please open a new topic if you wish to discuss this further.