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: xoops bridge failed after 1.4.8 update  (Read 4974 times)

0 Members and 1 Guest are viewing this topic.

chainsawbeer

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
xoops bridge failed after 1.4.8 update
« on: July 27, 2006, 05:18:25 am »

I have the following issue when trying to bridge coppermine and XOOPs:

Fatal error: main(): Failed opening required '../mainfile.php' (include_path='.:/usr/share/pear') in /var/www/vhosts/chainsawbeer.com/httpdocs/gallery/bridge/xoops.inc.php on line 30

Coppermine install: http://www.chainsawbeer.com/gallery/
Forum install: http://www.chainsawbeer.com/
Coppermine version: cpg1.4.8
Forum version: Xoops v2.2.4
Test user account: cpgtest / cpgtest1

BridgeManager settings:
Forum URL:  http://www.chainsawbeer.com
Relative path to your BBS's config file:  ../
Use post-based groups?:  1

After upgrading to 1.4.8 I received the above error.  I've tried hardcoding the mainfile.php location and changing the bridgemgr switch as well as applying the xoops pathcheck patches.
« Last Edit: July 30, 2006, 09:47:25 am by GauGau »
Logged

chainsawbeer

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: xoops bridge failed after 1.4.8 update
« Reply #1 on: July 29, 2006, 01:58:58 pm »

Turned off bridge manager for now till I can track down what's causing the issue... it seems perfectly functional as long as bridging is off.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: xoops bridge failed after 1.4.8 update
« Reply #2 on: July 29, 2006, 02:28:31 pm »

Where is mainfile.php actually located then?

After upgrading to 1.4.8 I received the above error.
What version did you upgrade from?

Turned off bridge manager for now till I can track down what's causing the issue... it seems perfectly functional as long as bridging is off.
There's little we could do to actually help you if bridging is off.
Logged

chainsawbeer

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: xoops bridge failed after 1.4.8 update
« Reply #3 on: July 29, 2006, 10:53:06 pm »

I've re-enabled bridge manager.  url-wise the gallery is at http://www.chainsawbeer.com/gallery/ while mainfile.php is at http://www.chainsawbeer.com/mainfile.php.  File system locations are /var/www/vhosts/chainsawbeer.com/httpdocs/gallery/ and /var/www/vhosts/chainsawbeer.com/httpdocs/mainfile.php.  I upgraded to 1.4.8 from 1.4.3
Logged

Nibbler

  • Guest
Re: xoops bridge failed after 1.4.8 update
« Reply #4 on: July 29, 2006, 10:58:38 pm »

Did you try giving the bridge manager the full path to the file?
Logged

chainsawbeer

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: xoops bridge failed after 1.4.8 update
« Reply #5 on: July 29, 2006, 11:07:43 pm »

I'm pretty sure I'm doing it correctly... fill me in if not...

I changed
Code: [Select]
define('USE_BRIDGEMGR', 1);

to

Code: [Select]
define('USE_BRIDGEMGR', 0);

and

Code: [Select]
if (!USE_BRIDGEMGR) {
        require_once('../xoops/mainfile.php');
} else {
        require_once($BRIDGE['relative_path_to_config_file'] . 'mainfile.php');
}

to

Code: [Select]
if (!USE_BRIDGEMGR) {
        require_once('../mainfile.php');
} else {
        require_once($BRIDGE['relative_path_to_config_file'] . 'mainfile.php');
}
Logged

Nibbler

  • Guest
Re: xoops bridge failed after 1.4.8 update
« Reply #6 on: July 29, 2006, 11:19:36 pm »

Don't edit any file, just use the bridge manager script.
Logged

chainsawbeer

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: xoops bridge failed after 1.4.8 update
« Reply #7 on: July 29, 2006, 11:57:06 pm »

Ok.  I reunzipped the 1.4.8 archive and copied the default xoops.inc.php in the bridge/ directory.  I then re-enabled the bridge with the bridge manager and now I'm getting

Code: [Select]
Fatal error: main(): Failed opening required '../mainfile.php' (include_path='.:/usr/share/pear') in /var/www/vhosts/chainsawbeer.com/httpdocs/gallery/bridge/xoops.inc.php on line 30
again.


the bridge manager settings are

Bridge Wizard: enable/disable BBS integration
Your bridge settings
Forum URL:  http://www.chainsawbeer.com 
Relative path to your BBS's config file:  ../ 
Use post-based groups?:  1 
Logged

Nibbler

  • Guest
Re: xoops bridge failed after 1.4.8 update
« Reply #8 on: July 30, 2006, 12:00:41 am »

Did you try giving the bridge manager the full path to the file?

ie. /var/www/vhosts/chainsawbeer.com/httpdocs/
Logged

chainsawbeer

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: xoops bridge failed after 1.4.8 update
« Reply #9 on: July 30, 2006, 04:37:20 am »

*slaps self in the forehead*  sorry for the agitation and thanks for the help guys.  Working as a jr admin ya'd think I wouldnt make such trite oversights, but as it turns out, because I'd just migrated the site from a server I had colocated to a virtual dedicated temporarily, I'd forgotten to change ownership back when I un-tar'd the whole shebang and the include directory was still own'd by the old user account.  A quick chown -R and chgrp -R of the gallery directory fixed the entire debacle.  Thanks again and sorry to have wasted your time.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 16 queries.