Help
Ask questions about how to do or fix things in Arrowchat
User avatar
PIoakeim
Customer
 
Posts: 12
Joined: 12 Nov 2010, 11:39

 

by PIoakeim 21 Jan 2011, 18:45

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=js


Please help!
User avatar
asinsh
Customer
 
Posts: 55
Joined: 02 Apr 2010, 08:22

 

by asinsh 22 Jan 2011, 08:53

Same problem for me.

[rest of post deleted because my next post is more complete]
Last edited by asinsh on 23 Jan 2011, 05:30, edited 1 time in total.
User avatar
asinsh
Customer
 
Posts: 55
Joined: 02 Apr 2010, 08:22

 

by asinsh 23 Jan 2011, 05:29

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:
// ArrowChat Software Chat Script
// http://www.arrowchat.com


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.txt

Hope that helps track this down. I'd really like to get this working...thoughts?
User avatar
asinsh
Customer
 
Posts: 55
Joined: 02 Apr 2010, 08:22

 

by asinsh 23 Jan 2011, 09:17

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?
User avatar
Jason
Customer
 
Posts: 2356
Joined: 12 Dec 2009, 16:06

 

by Jason 23 Jan 2011, 13:22

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.
User avatar
PIoakeim
Customer
 
Posts: 12
Joined: 12 Nov 2010, 11:39

 

by PIoakeim 23 Jan 2011, 21:18

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.
User avatar
Jason
Customer
 
Posts: 2356
Joined: 12 Dec 2009, 16:06

 

by Jason 23 Jan 2011, 22:02

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.
User avatar
PIoakeim
Customer
 
Posts: 12
Joined: 12 Nov 2010, 11:39

 

by PIoakeim 24 Jan 2011, 00:10

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.
User avatar
asinsh
Customer
 
Posts: 55
Joined: 02 Apr 2010, 08:22

 

by asinsh 24 Jan 2011, 09:21

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.
User avatar
PIoakeim
Customer
 
Posts: 12
Joined: 12 Nov 2010, 11:39

 

by PIoakeim 25 Jan 2011, 00:01

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.
User avatar
PIoakeim
Customer
 
Posts: 12
Joined: 12 Nov 2010, 11:39

 

by PIoakeim 30 Jan 2011, 00:10

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.
User avatar
Staff Bot
ArrowChat Team
 
Posts: 8996
Joined: 07 Nov 2012, 13:41

 

by Staff Bot 07 Nov 2012, 12:40

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.