Help Center Live Community

Support => Installation Help & Software Support => Topic started by: jasonjohnson on July 26, 2007, 07:31:46 PM



Title: Installation Problems, Windows Server 2003 (didn't have them under RHEL)
Post by: jasonjohnson 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?


Title: Re: Installation Problems, Windows Server 2003 (didn't have them under RHEL)
Post by: HCL Admin on July 26, 2007, 07:50:11 PM
Welcome to windows.... :o

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.


Title: Re: Installation Problems, Windows Server 2003 (didn't have them under RHEL)
Post by: jasonjohnson 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.


Title: Re: Installation Problems, Windows Server 2003 (didn't have them under RHEL)
Post by: HCL Admin on July 26, 2007, 08:11:30 PM
Just be aware there are a ton more in there. :(  I'll end up doing a search and replace for them...