bugphpGroupWare - Bugs: bug #7639, chat module parse error... then...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #7639: chat module parse error... then fatal error

Submitted by:  David Kelly <onionpeeler>
Submitted on:  Mon 09 Feb 2004 09:27:21 AM UTC  
 
Item Group: 0.9.14.007 releaseCategory: chat
Severity: 3 - NormalPriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: SVNOperating System: GNU/Linux - Other
Reproducibility: Every TimePlanned Release: None
Fixed Release: 

Mon 09 Feb 2004 09:27:21 AM UTC, original submission:

Please see the thread

http://forums.phpgroupware.org/index.php?t=rview&goto=1433#msg_1433

text in the thread is as follows:

onionpeeler:
Linux cPanel Build 8.5.3-STABLE
Apache version 1.3.29 (Unix)
MySQL version 4.0.15-standard
PHP version 4.3.4
phpgroupware 0.9.14.512

...I dont know where to start rectifying this.

when accessing chat from the menu it returns:

Parse error: parse error in /home/sitename/public_html/phpgroupware/chat/index.php on line 92

that line in /chat/index.php is just a tag...so I presume its got to do with line 93... here's the code:

line 92<td>

line 93<form name="load" method="post" action="<?php echo $GLOBALS['phpgw']->link('/chat/load.php') ?>">

line 94<select name="channel" size="4" onChange="chatwindow();">

any ideas?

cw:
it's more likely due to 91 or whatever php line is just before that..

although, there is a missing ; on line 93

onionpeeler:
..I placed a ; in line 93 so that line in index.php now reads:

<form name="load" method="post" action="<?php echo $GLOBALS['phpgw']->link('/chat/load.php'); ?>">

I click on chat and now I receive:

Fatal error: Cannot redeclare get_var() (previously declared in /home/sitename/public_html/phpgroupware/chat/index.php:24) in /home/sitename/public_html/phpgroupware/phpgwapi/inc/common_functions. inc.php on line 459

line 24 of index.php is as follows:

line 24: function get_var($name,$from) // a simple version

funtion code on lines 25 to 31:
{
if (!is_array($from)) $from = explode(',',$from);
while ((list(,$f) = each($from)) && !isset($GLOBALS['HTTP_'.$f.'_VARS'][$name])) ;
$ret = $GLOBALS['HTTP_'.$f.'_VARS'][$name];
//echo "HTTP_$f"."_VARS[$name]=$ret<br>";
return $ret;
}

cw:
Please file a bug report and someone will get to asap.

end

If you need to more info or access please get in touch
all the best
Dave

David Kelly <onionpeeler>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup1