CPG121 install problem CPG121 install problem
 

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]

Main Menu

CPG121 install problem

Started by SteveR, May 27, 2004, 05:44:08 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

SteveR

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.

Sandra

Correct me if I'm wrong but as far as I know Coppermine can't be installed twice on the same database...

SteveR

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.

Sandra

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.

SteveR

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.

Sandra

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. :/

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Sandra

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. :-\\

SteveR

 ::) 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

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Sandra

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. ;)

SteveR

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.

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

hyperion

Why are you attempting to run install with the bridge activated?
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

SteveR

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.

Casper

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?
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

SteveR

"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!

Mr Tee

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

hyperion

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
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Mr Tee

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  ::)