From: -fkp- <fk...@gm...> - 2001-12-12 00:12:45
|
Hello, I just installed phphelpdesk and I'm getting the same error msg Fatal error: Cannot redeclare showsummary() in /www/devel/helpdesk/includes/functions.inc.php on line 61 Is there a patch out or can somebody point me in the right direction? TIA Karl --------------------------- FROM: Andrew DATE: 11/28/2001 17:15:53 SUBJECT: RE: [Phphelpdesk-help] PHPHelpDesk and Debian Testing There is code in the functions script that prevents it from being included more than once .. Maybe the current CVS version is not what you have installed .. Check your includes/functions.inc.php file .. The first few lines of my version look like this: <?php // Global Functions if( isset( $FUNCTIONS ) ) { return; } $FUNCTIONS=1; These lines prevent the rest of the file from being imported more than once. I have a nagging suspicion that there are a lot of little bug fixes like this that are not in the most recent release .. I will talk to Joe, to project leader, and we will look into making a new release which includes these fixes. Also, someone from the list says he will send me some patches, so I would like to include those also. Hope this helps; Andrew On Wednesday 28 November 2001 15:21, you wrote: > Hello. I am running PHPHelpDesk 0.6.16, installed on Debian Woody with > apache 1.3.19 and php4.0.5. Everything was running smoothly until I > (foolishly, it turns out) updated to the following relevant packages: > > apache-1.3.22-2 > apache-common-1.3.22-2 > apache-dev-1.3.22-2 > apache-perl-1.3.22-2 > libapache-dbi-perl-0.88-5 > libapache-request-perl-0.33-1 > libapache-session-perl-1.53-4 > libapache-mod-perl-1.26-1 > php4-4.0.100-1 > php4-cgi-4.0.100-1 > php4-mysql-4.0.100-1 > php4-pear-4.0.100-1 > > After this, I started receiving "apache: PHP Fatal error: Cannot redeclare > showsummary() in /var/www/helpdesk/includes/functions.inc.php on line 61" > in my syslog. It looks like php is barfing on includes/functions.inc.php > being included in most of the scripts in the system. I seem to have fixed > my problem when I commented out "include("includes/functions.inc.php");" at > the top of each script that had it and added it to the top of index.php. > Now, I would believe this is a problem with the compile-time options used > in the Debian packaging of PHP, but I'm wondering if there isn't a better > way to fix the problem than what I did. Any suggestions? > > Oh, and by the way, this is an excellent piece of software! We're using > this to replace the paper trouble ticket system that we've had in place > since we've been running. > > Edward Barrett |