Help Center Live Community
April 16, 2014, 10:52:22 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Installation Problems, Windows Server 2003 (didn't have them under RHEL)  (Read 4684 times)
jasonjohnson
Not too much to say...
*
Offline Offline

Posts: 2


« on: July 26, 2007, 07:31:46 PM »

On my RHEL box, I have no issues with the installation. The app runs great.

However, now that I've installed it on Server 2003, I am getting a number of errors during a chat. They are:

Using Firebug, this is what I can determine:

Code:
missing ) after argument list
[Break on this error] Misc.statusbar('<? echo($GLOBALS['lang']['click_for_live_help']); ?>');return tr...

Strange? It seems like the PHP isn't executing? It appears as a JavaScript error but has embedded PHP code in it? This happens inside the initiated chat, also:

Code:
missing ; before statement
<b>Parse error</b>: syntax error, unexpected $end in <b>D:\HTTP\support\class\js\chat.php</b> on line <b>237</b><br />
184

None of this appeared on my Linux installation. Any thoughts?
Logged
HCL Admin
Administrator
HCL Superstar
*****
Offline Offline

Posts: 882


WWW
« Reply #1 on: July 26, 2007, 07:50:11 PM »

Welcome to windows.... Shocked

Sorry, had to get that out of my system.  One thing to check is that short_tags = on in your php.ini file.  That is most likely the culprit.  I'm going to put a bug report in however, as all those <? tags really need to be <?php tags.  Not a major thing, but annoying in a situation like this.
Logged

how may I help you today?
jasonjohnson
Not too much to say...
*
Offline Offline

Posts: 2


« Reply #2 on: July 26, 2007, 08:03:23 PM »

You were write. I've actually gone in and modified the code.

Replace lines 89-96 of class/js/live.php with:

Code:
<?php
if (!isset($_GET["invisible"])) { if (isset($_GET["text"])) { ?>

if (this.status == 'online') { document.write("<a href=\"javascript:Live.launch('chat', '<?php echo($departmentid); ?>', '<?php echo($nick); ?>')\" onMouseOver=\"Misc.statusbar('<?php echo($GLOBALS['lang']['click_for_live_help']); ?>');return true;\" onMouseOut=\"Misc.statusbar('');return true;\"><?php echo($GLOBALS['lang']['live_text_online']); ?></a>");} else { document.write("<a href=\"javascript:Live.launch('chat', '<?php echo($departmentid); ?>', '<?php echo($nick); ?>')\" onMouseOver=\"Misc.statusbar('<?php echo($GLOBALS['lang']['click_for_live_help']); ?>');return true;\" onMouseOut=\"Misc.statusbar('');return true;\"><?php echo($GLOBALS['lang']['live_text_offline']); ?></a>");}
<?php } else { ?>
document.write("<a href=\"javascript:Live.launch('chat', '<?php echo($departmentid); ?>', '<?php echo($nick); ?>')\" onMouseOver=\"Misc.statusbar('<?php echo($GLOBALS['lang']['click_for_live_help']); ?>');return true;\" onMouseOut=\"Misc.statusbar('');return true;\"><img alt=\"<?php echo($GLOBALS['lang']['click_for_live_help']); ?>\" src=\"<?php echo($GLOBALS['conf']['url']); ?>/live/icon.php?status="+this.status+"&departmentid=<?php echo($departmentid); ?>\" border=\"0\" id=\"image_live\" /></a>"); <?php
}
}
?>


And it works fine.

Thanks for the heads up about short open tags.
Logged
HCL Admin
Administrator
HCL Superstar
*****
Offline Offline

Posts: 882


WWW
« Reply #3 on: July 26, 2007, 08:11:30 PM »

Just be aware there are a ton more in there. Sad  I'll end up doing a search and replace for them...
Logged

how may I help you today?
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.152 seconds with 19 queries.

Google visited last this page Today at 09:59:56 AM