You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 144 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Fatal error: Cannot redeclare class config ... Forum config [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
ian_bnd
Nuke Cadet
Nuke Cadet


Joined: Nov 27, 2005
Posts: 6


PostPosted: Sun Nov 27, 2005 8:10 am Reply with quoteBack to top

Hi

I have just installed v 7.9

When I click the Go to Administration Panel link at the forum index page of my site I receive the following error:

Fatal error: Cannot redeclare class config in C:\SERVER\xampp\php\pear\Config.php on line 43

I am new to php so if anyone can offer any advice I would be very grateful Very Happy

I am running (locally):

PHP v5.05
Apache/2.0.55
PHP-Nuke 7.9
mySQL
OS Windows XP pro

Many thanks

Ian
Find all posts by ian_bndView user's profileSend private message
v3x
Support Mod
Support Mod


Joined: Oct 19, 2004
Posts: 1041

Location: UK

PostPosted: Sun Nov 27, 2005 8:32 am Reply with quoteBack to top

Please do not double post.

I have removed the other thread.

Please post lines 20 - 50 of the config.php.

Line 43 is inactive in the default version of 7.9 so im a bit puzzled on your error.

Regards
Find all posts by v3xView user's profileSend private messageVisit poster's website
ian_bnd
Nuke Cadet
Nuke Cadet


Joined: Nov 27, 2005
Posts: 6


PostPosted: Sun Nov 27, 2005 9:13 am Reply with quoteBack to top

Hi

Many thanks for your response.

I didn't double post as they are two different errors one with the forum admin and one with the myheadlines module.

Here are lines 20-50 from config.php, thanks for your help.

require_once('PEAR.php');
require_once('Config/Container.php');

$GLOBALS['CONFIG_TYPES'] =
array(
'apache' =>array('Config/Container/Apache.php','Config_Container_Apache'),
'genericconf' =>array('Config/Container/GenericConf.php','Config_Container_GenericConf'),
'inifile' =>array('Config/Container/IniFile.php','Config_Container_IniFile'),
'inicommented' =>array('Config/Container/IniCommented.php','Config_Container_IniCommented'),
'phparray' =>array('Config/Container/PHPArray.php','Config_Container_PHPArray'),
'xml' =>array('Config/Container/XML.php','Config_Container_XML')
);

/**
* Config
*
* This class allows for parsing and editing of configuration datasources.
* Do not use this class only to read datasources because of the overhead
* it creates to keep track of the configuration structure.
*
* @author Bertrand Mansion <bmansion@mamasam.com>
* @package Config
*/
class Config {

/**
* Datasource
* Can be a file url, a dsn, an object...
* @var mixed
*/
var $datasrc;
Find all posts by ian_bndView user's profileSend private message
Xyberian
Colonel
Colonel


Joined: Mar 14, 2004
Posts: 1939

Location: Behind you

PostPosted: Sun Nov 27, 2005 9:28 am Reply with quoteBack to top

Simply delete Config class in Config.php file and save it. Some of Windows-based PHP does not support PEAR classes. That config class works only with PEAR classes such as MOD_Dav. Unfortunately, the same name, 'config', is defined in phpBB2 and BB2Nuke.

As long as you won't use pear classes in PHP and your Windows based server, you don't need config class.

_________________
Home of the Enterprise PHP-NUKE
Find all posts by XyberianView user's profileSend private messageVisit poster's website
ian_bnd
Nuke Cadet
Nuke Cadet


Joined: Nov 27, 2005
Posts: 6


PostPosted: Sun Nov 27, 2005 9:42 am Reply with quoteBack to top

Many thanks for your quick responses and your help. It is very much appreciated.

Your instructions worked. My forum's are up and running Very Happy

I am also receiving the following error when I try to access myheadlines module:

Fatal error: Cannot redeclare class soapclient in C:\SERVER\xampp\htdocs\modules\MyHeadlines\MyHeadlines\include\SOAPx4\class.soap_client.php on line 901

Any advice you have on this would be appreciated.

Thanks,

Ian
Find all posts by ian_bndView user's profileSend private message
Xyberian
Colonel
Colonel


Joined: Mar 14, 2004
Posts: 1939

Location: Behind you

PostPosted: Sun Nov 27, 2005 11:18 am Reply with quoteBack to top

Sorry, ian_bnd. I know what trouble you got while installing headline v 4.+. But, I think it's irrelevant to discuss it in this forum because nukecops.com is not the dev. site of headline module.

_________________
Home of the Enterprise PHP-NUKE
Find all posts by XyberianView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.578 Seconds - 109 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::