Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: warning/failure notice when loading gallery index page  (Read 6476 times)

0 Members and 1 Guest are viewing this topic.

Nikki

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
warning/failure notice when loading gallery index page
« on: November 17, 2005, 06:42:17 pm »

First the needed info:
Warning: main(/bridge/phpBB2.inc.php): failed to open stream: No such file or directory in /homepages/43/d89789219/htdocs/wf1/theater/include/init.inc.php on line 268

Fatal error: main(): Failed opening required '/bridge/phpBB2.inc.php' (include_path='.:/usr/local/lib/php') in /homepages/43/d89789219/htdocs/wf1/theater/include/init.inc.php on line 268

Site Link:http://www.wayfarerone.com/theater

The only changes I've made in the phpBB.inc.php file are the ones instructed:

Code: [Select]
// database configuration
define('PHPBB_DB_NAME', 'db139855705'); // The name of the database used by the board
define('phpbb_BD_HOST', 'db210.perfora.net'); // The name of the database server
define('phpbb_DB_USERNAME', 'dbo139855705'); // The username to use to connect to the database
define('phpbb_DB_PASSWORD', 'xxxxxx'); // The password to use to connect to the database

// The web path to your phpBB directory
// If your URL to your board is for example 'http://yoursite_name.com/phpBB2/',
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', 'http://www.wayfarerone.com/phpBB2/');

This is the line from init.inc.php returning the error:
Code: [Select]
if (defined('UDB_INTEGRATION')) require '/bridge/' . UDB_INTEGRATION . '.inc.php';
I've triple checked everything, and don't beleive I've missed anything.

Any help will be greatly appreciated. Thanks,

Nikki
« Last Edit: November 18, 2005, 03:35:13 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: warning/failure notice when loading gallery index page
« Reply #1 on: November 17, 2005, 06:51:05 pm »

The line is suppose to be this:

Code: [Select]
if (defined('UDB_INTEGRATION')) require 'bridge/' . UDB_INTEGRATION . '.inc.php';
And this

Code: [Select]
define('PHPBB_WEB_PATH', 'http://www.wayfarerone.com/phpBB2/');
is not a path, a path would be

Code: [Select]
define('PHPBB_WEB_PATH', '/phpBB2/');
Logged

Nikki

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: warning/failure notice when loading gallery index page
« Reply #2 on: November 18, 2005, 01:22:08 pm »

Thanks for the response, but no change after editing the files. I had tried changing the path to the full url thinking that it might help.

Any other ideas?
Logged

Nibbler

  • Guest
Re: warning/failure notice when loading gallery index page
« Reply #3 on: November 18, 2005, 01:36:11 pm »

Init.inc.php should read:

Code: [Select]
define('UDB_INTEGRATION', 'phpbb');

You seem to have changed it to

Code: [Select]
define('UDB_INTEGRATION', 'phpBB2');

So far, all your problems are caused by editing things you are not supposed to, please follow the instructions exactly.
Logged

Nikki

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: warning/failure notice when loading gallery index page
« Reply #4 on: November 18, 2005, 02:37:23 pm »

Nibbler,
I get your point, but I have to say that change was made whilst trying to fix the error. I've had other installs/mods fail from calling phpbb instead of phpBB2.
I changed that and now get the following error:

Quote
Notice: Use of undefined constant PHPBB_BD_HOST - assumed 'PHPBB_BD_HOST' in /homepages/43/d89789219/htdocs/wf1/theater/bridge/phpbb.inc.php on line 518
Coppermine critical error:
Unable to connect to phpBB Board database !

MySQL said: Unknown MySQL Server Host 'PHPBB_BD_HOST' (1)

Line 518 in phpbb.inc.php is:
Code: [Select]
define('UDB_CAN_JOIN_TABLES', (PHPBB_BD_HOST == $CONFIG['dbserver'] && (PHPBB_DB_NAME == $CONFIG['dbname'] || PHPBB_DB_USERNAME == $CONFIG['dbuser'])));.

I do appreciate your help.
Logged

Nibbler

  • Guest
Re: warning/failure notice when loading gallery index page
« Reply #5 on: November 18, 2005, 02:44:21 pm »

PHPBB_BD_HOST is undefined because you changed it to phpbb_BD_HOST at the top of the file. Put it back as it was.
Logged

Nikki

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: warning/failure notice when loading gallery index page
« Reply #6 on: November 18, 2005, 02:54:20 pm »

*beep*? How the hell did that happen? Sigh. Just shows what a lack of sleep and small children can do. I don't recall ever altering thhose lines, but I must have.

Anyway, I'm going to start over, because I get a different error this time, and it's most unhelpful:
Quote
Fatal error :
There was an error while processing a database query

I beleive a fresh install is the way to go here.

Thank you for your help....
Logged

Nibbler

  • Guest
Re: warning/failure notice when loading gallery index page
« Reply #7 on: November 18, 2005, 03:02:05 pm »

Disable the bridge (re-comment the define in init.inc.php) , enable debug mode, re-enable the bridge and replicate the error. You'll then get a detailed error message that will tell you what the problem is.
Logged

Nikki

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: warning/failure notice when loading gallery index page
« Reply #8 on: November 18, 2005, 03:20:12 pm »

OK, I got it! Sort of...
This is the error text:
Quote
While executing query "SELECT user_id, username as user_name, user_level, user_posts FROM `db139855705`.phpbb_sessions INNER JOIN `db139855705`.phpbb_users ON session_user_id = user_id WHERE session_id='3fa0a93c1c8e58495a214147758c592c' AND session_user_id ='-1' AND user_active='1'" on 0

mySQL error: Table 'db139855705.phpbb_sessions' doesn't exist

I checked my tables, and it is a case of the table prefix being phpbb2_
The error is being generated by phpbb.inc.php on line:
Code: [Select]
     $sql = "SELECT user_id, username as user_name, user_level, user_posts " . "FROM " . $UDB_DB_NAME_PREFIX . PHPBB_TABLE_PREFIX . PHPBB_SESSION_TABLE . " " . "INNER JOIN " . $UDB_DB_NAME_PREFIX . PHPBB_TABLE_PREFIX . PHPBB_USER_TABLE . " ON session_user_id = user_id " . "WHERE session_id='$session_id' AND session_user_id ='$cookie_uid' AND user_active='1'";
Can I simply change
Code: [Select]
define('PHPBB_TABLE_PREFIX', 'phpbb_'); // The prefix used for the DB tables
to phpbb2_?

Thanks again...
Logged

Nibbler

  • Guest
Re: warning/failure notice when loading gallery index page
« Reply #9 on: November 18, 2005, 03:23:04 pm »

Yes, you most certainly can.
Logged

Nikki

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: warning/failure notice when loading gallery index page
« Reply #10 on: November 18, 2005, 03:24:43 pm »

It worked! YEA!!! Thank you very much for your assistance in overcoming my stupidity.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 17 queries.