Page 1 of 1

Calender mod: Fatal error: Cannot redeclare class config

Posted: Wed 13. Apr 2005, 12:59
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

Same here

Posted: Mon 18. Apr 2005, 21:45
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.)

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

Posted: Fri 29. Apr 2005, 13:04
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...