Advanced search  

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

Pages: [1]   Go Down

Author Topic: Fatal error: Cannot redeclare cpggetmicrotime  (Read 3094 times)

0 Members and 1 Guest are viewing this topic.

soh

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Fatal error: Cannot redeclare cpggetmicrotime
« on: January 07, 2007, 02:38:05 pm »

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)

Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Fatal error: Cannot redeclare cpggetmicrotime
« Reply #1 on: January 07, 2007, 02:43:42 pm »

Look in init.inc.php - do you have two functions named cpggetmicrotime?  If so, remove one of them.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Fatal error: Cannot redeclare cpggetmicrotime
« Reply #2 on: January 07, 2007, 02:46:47 pm »

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
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Fatal error: Cannot redeclare cpggetmicrotime
« Reply #3 on: January 07, 2007, 02:51:14 pm »

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?
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Fatal error: Cannot redeclare cpggetmicrotime
« Reply #4 on: January 07, 2007, 02:56:00 pm »

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
Quote
Relative 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.
Logged

Nibbler

  • Guest
Re: Fatal error: Cannot redeclare cpggetmicrotime
« Reply #5 on: January 07, 2007, 04:11:17 pm »

Relative path should be ../phpBB2/ but judging by the error message, try ../../phpBB2/
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.