Calender mod: Fatal error: Cannot redeclare class config

If you've problems with unsupported - non official ;-) - functionalities use this forum please.
Post Reply
froderh
Posts: 12
Joined: Wed 30. Mar 2005, 22:41
Location: Stavanger, Norway

Calender mod: Fatal error: Cannot redeclare class config

Post by froderh »

Hi,

I've tried to install the Calendar mod several times with the same result:
Fatal error: Cannot redeclare class config in C:\xampp\php\pear\Config.php on line 43

Any tips?

AtDhVaAnNkCsE


Regards,
Frode
olleolleolle
Posts: 24
Joined: Mon 18. Apr 2005, 21:35
Location: Copenhagen, Denmark
Contact:

Same here

Post by olleolleolle »

Using SciTE I searched all of the PHP code for the word "config", and the only time anything comes close is in a JavaScript portion of a PHP file at include\inc_lib\htmlarea.editor.inc.php

Code: Select all

	var config = new HTMLArea.Config(); // create a new configuration object having all the default values
	if(cw == "") { cw = "440px"; }
	if(ch == "") { ch = "550px"; }
	config.width = cw;
	config.height = ch;
But that stuff is JS, man. Where's the beef? (I'm on the 2005-02-13 1.2-DEV release from SourceForge, not the latest CVS version.)
Neelix
Posts: 80
Joined: Wed 29. Sep 2004, 12:06
Location: España

Re: Calender mod: Fatal error: Cannot redeclare class config

Post by Neelix »

froderh wrote:Hi,
I've tried to install the Calendar mod several times with the same result:
Fatal error: Cannot redeclare class config in C:\xampp\php\pear\Config.php on line 43
pear is not part of phpwcms!

I use xampp to but under MDK - download the new version from xampp and try it again

- or open C:\xampp\php\pear\Config.php on line 43 in your editor - there should be an include('Config.php') or something like that...?
- or require(..)

- edit in include_once(...) / require_once(...) ! only "_once" add!

The error

Code: Select all

Cannot redeclare class config
means: there is an Class-definition with the same name again...

Please Post the Line 43 of C:\xampp\php\pear\Config.php if nothing happens...
Erfahrung ist das, was man besitzt, kurz nach dem es gebraucht wurde.
Warning: I have no foggiest idea of English/German, but I do
-ha{p}{p}y day/night/dia/noche-
Post Reply