coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: SteveR on May 27, 2004, 05:44:08 PM

Title: CPG121 install problem
Post by: SteveR on May 27, 2004, 05:44:08 PM
I have removed 1.3 from my site any have tried to install 1.21 with phpBB intergration, BUT now i any getting the following errors when i run the install script.

Parse error: parse error, unexpected T_STRING in /data/sites/shoalhaven-mc.org.au/html/SiteIndex/PhotoGallery/bridge/phpbb.inc.php on line 37

This is line 37:
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies



Fatal error: Call to undefined function: udb_authenticate() in /data/sites/shoalhaven-mc.org.au/html/SiteIndex/PhotoGallery/include/init.inc.php on line 167

This is line 37:
udb_authenticate();

If any one can give me some suggestions i would be very grateful.
Title: Re: CPG121 install problem
Post by: Sandra on May 27, 2004, 05:54:38 PM
Correct me if I'm wrong but as far as I know Coppermine can't be installed twice on the same database...
Title: ?
Post by: SteveR on May 27, 2004, 06:01:15 PM
You have lost me. Are you trying to tell me something, if so could you be a bit clearer.
Maybe u r on the wrong track. There is only one CPG in the db.
Title: Re: CPG121 install problem
Post by: Sandra on May 27, 2004, 06:04:24 PM
No no no... You've installed a version of Coppermine on the database once, right? Well, even if you deleted the other version you can't reinstall another one on the same database. You need to create a new one.
Title: To Sandra - Why?
Post by: SteveR on May 27, 2004, 06:13:03 PM
Why?  I have removed ALL associated tables from the db. What other signatures of past installs could exist to cause this. Is this problem related to the db? Any suggestions. I am only a newbie but learning hard and fast.
Title: Re: CPG121 install problem
Post by: Sandra on May 27, 2004, 06:16:03 PM
Well, I haven't created Coppermine so I can't answer that. ;) I have however consulted my friend who knows a lot more about Coppermine than I do and she said if you wish to reinstall Coppermine, no matter what version, you need to create a new database for it. :/
Title: Re: CPG121 install problem
Post by: Casper on May 27, 2004, 06:24:03 PM
Quote from: Sandra on May 27, 2004, 05:54:38 PM
Correct me if I'm wrong but as far as I know Coppermine can't be installed twice on the same database...

You're wrong,  Coppermine can be installed multiple times on the same database, as long as each install has different table prefixes.

This error is telling you that line 37 has an error.  Your line does look correct, assuming that is the name of your phpbb cookie.
Please post here lines 25 - 39.  Note, edit out your password.

The init.inc.php error is caused by the problem in your bridge file.
Title: Re: CPG121 install problem
Post by: Sandra on May 27, 2004, 06:27:05 PM
Quote from: Casper on May 27, 2004, 06:24:03 PM
Quote from: Sandra on May 27, 2004, 05:54:38 PM
Correct me if I'm wrong but as far as I know Coppermine can't be installed twice on the same database...

You're wrong,  Coppermine can be installed multiple times on the same database, as long as each install has different table prefixes.

This error is telling you that line 37 has an error.  Your line does look correct, assuming that is the name of your phpbb cookie.
Please post here lines 25 - 39.  Note, edit out your password.

The init.inc.php error is caused by the problem in your bridge file.
I stand corrected. But at least my friend haven't been able to do it, nor my other friend... how weird. :-\\
Title: MMMMMmmm
Post by: SteveR on May 27, 2004, 06:28:54 PM
 ::) Well before i go adding another db i will call it a night soon (it's now 2:20 an sth of Sydney) and try a few things later after some really needed sleep. Thanks for help.
regards, steve@shoalhaven-mc.org.au
Title: Re: CPG121 install problem
Post by: Casper on May 27, 2004, 06:36:54 PM
Quote from: Sandra on May 27, 2004, 06:27:05 PM
I stand corrected. But at least my friend haven't been able to do it, nor my other friend... how weird. :-\\

When installing coppermine, the install screen fills in the table prefix with the default setting.  If this is not your first install, you need to change this to something different.  Then it will work.  If you have copied the directory from an existing install, you need to delete the install lock and config.inc.php first.
Title: Re: CPG121 install problem
Post by: Sandra on May 27, 2004, 06:46:30 PM
Quote from: Casper on May 27, 2004, 06:36:54 PM
Quote from: Sandra on May 27, 2004, 06:27:05 PM
I stand corrected. But at least my friend haven't been able to do it, nor my other friend... how weird. :-\\

When installing coppermine, the install screen fills in the table prefix with the default setting.  If this is not your first install, you need to change this to something different.  Then it will work.  If you have copied the directory from an existing install, you need to delete the install lock and config.inc.php first.
Ahh, that must be the reason why my friends have thought it isn't possible to reinstall. Thanks for the info, I know better next time. ;)
Title: Re: CPG121 install problem - Part 0548898999877645
Post by: SteveR on May 27, 2004, 06:48:22 PM
I had CPG 1.3 installed but would not upload pics.
I removed CPG 1.3: ALL folder and directoy, and ALL tables imbeded in db containg phpBB_ tables. (did not remove BB tables).
Uploaded new directory with old name "PhotoGallery" with all file as unzipped from your site.
Completed ALL file editing.
Ran install script.
Got error message.
EoM.
Title: Re: CPG121 install problem
Post by: Casper on May 27, 2004, 06:50:56 PM
I don't think this is caused by your previous install, but by an error in your bridge file.

Please post the lines I asked for above (25 - 39), of your bridge file.  Edit out your db password.
Title: Re: CPG121 install problem
Post by: hyperion on May 27, 2004, 06:51:05 PM
Why are you attempting to run install with the bridge activated?
Title: Lines 25-39 bridge/phpbb.inc.php
Post by: SteveR on May 27, 2004, 06:57:42 PM
define('PHPBB_DB_NAME', 'shoalmc'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'xxxxxxx'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', 'xxxxxxx'); // The password to use to connect to the database

// The web path to your phpBB directory
// In this example http://yoursite_name.com/phpBB2/
define('PHPBB_WEB_PATH', 'http:\\www.shoalhaven-mc.org.au\SiteIndex\BulletinBoard\phpBB2\');
// ------------------------------------------------------------------------- //
// You can keep the default values below if your instalation is standard
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies

// Prefix and names for the database tables


Woops: Line 32 ERROR: path should be \BulletinBoard\      not have \phpBB2\ hanging off.
I will edit/save and re-run.
Title: Re: CPG121 install problem
Post by: Casper on May 27, 2004, 06:58:28 PM
DOH, I didn't notice that.   :-[

Install as standalone first, ie with the init.inc.php and bridge file unaltered from the default.

Then when all is correct, activate the bridge.  

ot, shouldn't you Aussies be in bed?
Title: Dictionary definition of "BED"
Post by: SteveR on May 27, 2004, 07:14:53 PM
"BED" - "Page not found"

I am not too sure what "bridge" being active means but i get the picture. In fact that was my next step after "BED".

Thanks for the help.

Nighty Nite!
Title: Re: CPG121 install problem
Post by: Mr Tee on May 29, 2004, 10:01:44 PM
As I am having difficulty getting my gallery to integrate, and I am pretty sure it has something to do with the cookie, can someone please confirm is cookie prefix the same as cookie name? The cookie on the gallery is phpbb2mysql and the cookie name on my phpbb2 board is photo. All is ok until I activate the bridge then I can't log in to the gallery.

This is from the config on my board
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.thestudio-online.co.uk%2Fimages%2Fcookie.gif&hash=0cba82122a00e2e40a4ee1bf7c746d90480a773c)

and this is from the bridge file

// The web path to your phpBB directory
// In this example http://yoursite_name.com/phpBB2/
define('PHPBB_WEB_PATH', 'http://www.thestudio-online.co.uk/forum/');
// ------------------------------------------------------------------------- //
// You can keep the default values below if your instalation is standard
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies

// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'forum_'); // The prefix used for the DB tables
define('PHPBB_USER_TABLE', 'users'); // The members table
define('PHPBB_SESSION_TABLE', 'sessions'); // The session table
define('PHPBB_GROUP_TABLE', 'groups'); // The groups table
define('PHPBB_UGROUP_TABLE', 'user_group'); // The group/user table


What have I set wrong please?

Once the Bridge is set when I try to login to the gallery I am sent to my board log in (where I am already logged) when I return to the gallery index.php I am still not logged in.

I would really appreciate some help please
Title: Re: CPG121 install problem
Post by: hyperion on May 29, 2004, 11:45:29 PM
Try changing:


// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies


to:


// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'photo'); // The prefix used for board cookies
Title: Re: CPG121 install problem
Post by: Mr Tee on May 30, 2004, 12:02:26 AM
That appears to have worked. I did not try this before because I read in some of your instructions that the cookie name on the gallery should not be the same as the board. Hence my question re cookie prefix and cookie name.

Thanks for the help.

Onward and upward......I have no doubt I will be back  ::)
Title: Re: CPG121 install problem
Post by: hyperion on May 30, 2004, 12:36:53 AM
Oh, the instructions are correct.  The cookie name they refer to is not the same as the cookie prefix, though. They refer to the cookie name as defined in CPG's config console.