Fatal error: Cannot redeclare cpggetmicrotime Fatal error: Cannot redeclare cpggetmicrotime
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Fatal error: Cannot redeclare cpggetmicrotime

Started by soh, January 07, 2007, 02:38:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

soh

I have the following issue when trying to bridge coppermine and phpBB2:
Fatal error: Cannot redeclare cpggetmicrotime() (previously declared in /homepages/24/d110412048/htdocs/cpg/cpg1410/include/init.inc.php:35) in /homepages/24/d110412048/htdocs/cpg/cpg1410/include/init.inc.php on line 33

I have read many posts with the same problem but cannot find a solution that works for me.

Coppermine install: http://cushendunemmets.com/cpg1410/
Forum install: http://cushendunemmets.com/phpBB2/
Coppermine version: cpg1.4.2
Forum version: phpBB2
Test user account: some_testuser_name / the_password_for_the_test_user_account

BridgeManager settings:
Forum URL:  http://mysite.tld/test/foo_bar
Relative path to your BBS's config file:  I do not know...I have tried various combinations but nothing works. I either get through and am told ../phpBB2/config.php doesn't exist or get through to enable and am told Fatal error: Cannot redeclare cpggetmicrotime() (previously declared in /homepages/24/d110412048/htdocs/cpg/cpg1410/include/init.inc.php:35) in /homepages/24/d110412048/htdocs/cpg/cpg1410/include/init.inc.php on line 33

Use post-based groups?:  no
Cookie name/preifx (if applicable)


kegobeer

Look in init.inc.php - do you have two functions named cpggetmicrotime?  If so, remove one of them.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

soh

no, only one. here are lines 33 - 35:

function cpgGetMicroTime()
{
    list($usec, $sec) = explode(" ", microtime());
I also put down wrong url - http://www.cushendunemmets.com/cpg/cpg1410/index.php is correct

kegobeer

Why do you have Forum URL:  http://mysite.tld/test/foo_bar?  You need to put an actual address in there.

Have you read the instructions for bridging?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

soh

Sorry, just missed putting that bit in.

http://www.cushendunemmets.com/phpBB2

Yes I have read as much as I can find. It is the bit about
QuoteRelative path to your BBS, seen from your Coppermine folder (e.g. "../forum/" if your BBS is at http://www.yourdomain.tld/forum/ and Coppermine at http://www.yourdomain.tld/gallery/)
that I cannot get. It seems to me that this shopuld be../phpBB2/ or /phpBB2/ but nothing seems to do it.

Nibbler

Relative path should be ../phpBB2/ but judging by the error message, try ../../phpBB2/