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] 2   Go Down

Author Topic: MyBB 1.4 Integration...  (Read 27231 times)

0 Members and 1 Guest are viewing this topic.

iyeru

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
MyBB 1.4 Integration...
« on: September 12, 2008, 02:49:53 am »

I get this error when using the wizard:

Coppermine critical error:
Unable to connect to UDB database !

MySQL said:
Logged

iyeru

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: MyBB 1.4 Integration...
« Reply #1 on: September 12, 2008, 02:52:11 am »

Here's the real info...

Coppermine install: http://iyeru42.info/gallery/
Forum install: http://iyeru42.info/forum/
Coppermine version: cpg1.4.19
Forum version: MyBB 1.4.1
Test user account: None at the moment, if requested, I'll give one, but not now.

BridgeManager settings:
Forum URL:  http://iyeru42.info/forum
Relative path to your BBS's config file:  ../forum/inc/
Use post-based groups?:  0
Cookie name/preifx N/A
Logged

iyeru

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: MyBB 1.4 Integration...
« Reply #2 on: September 12, 2008, 03:34:28 am »

More info:

When it tries to bridge, the bridge information is blank, database name, database user, database host, etc. Trying to add these all in manually via the bridge table doesn't help.
Logged

iyeru

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: MyBB 1.4 Integration...
« Reply #3 on: September 12, 2008, 03:55:50 am »

More info:

When it tries to bridge, the bridge information is blank, database name, database user, database host, etc. Trying to add these all in manually via the bridge table doesn't help.

Since the new config.php is as follows:

Code: [Select]
<?php
/**
 * Database configuration
 *
 * Please see the MyBB Wiki for advanced
 * database configuration for larger installations
 * http://wiki.mybboard.net/
 */

$config['database']['type'] = 'mysqli';
$config['database']['database'] = '';
$config['database']['table_prefix'] = 'mybb_';

$config['database']['hostname'] = 'localhost';
$config['database']['username'] = '';
$config['database']['password'] = '';

/**
 * Admin CP directory
 *  For security reasons, it is recommended you
 *  rename your Admin CP directory. You then need
 *  to adjust the value below to point to the
 *  new directory.
 */

$config['admin_dir'] = 'admin';

/**
 * Hide all Admin CP links
 *  If you wish to hide all Admin CP links
 *  on the front end of the board after
 *  renaming your Admin CP directory, set this
 *  to 1.
 */

$config['hide_admin_links'] = 0;

/**
 * Data-cache configuration
 *  The data cache is a temporary cache
 *  of the most commonly accessed data in MyBB.
 *  By default, the database is used to store this data.
 *
 *  If you wish to use the file system (cache/ directory), MemCache or eAccelerator
 *  you can change the value below to 'files', 'memcache' or 'eaccelerator' from 'db'.
 */

$config['cache_store'] = 'db';

/**
 * Memcache configuration
 *  If you are using memcache as your data-cache,
 *  you need to configure the hostname and port
 *  of your memcache server below.
 *
 * If not using memcache, ignore this section.
 */

$config['memcache_host'] = 'localhost';
$config['memcache_port'] = 11211;

/**
 * Super Administrators
 *  A comma separated list of user IDs who cannot
 *  be edited, deleted or banned in the Admin CP.
 *  The administrator permissions for these users
 *  cannot be altered either.
 */

$config['super_admins'] = '1';

/**
 * Database Encoding
 *  If you wish to set an encoding for MyBB uncomment 
 *  the line below (if it isn't already) and change
 *  the current value to the mysql charset:
 *  http://dev.mysql.com/doc/refman/5.1/en/charset-mysql.html
 */

$config['database']['encoding'] = 'utf8';

/**
 * Automatic Log Pruning
 *  The MyBB task system can automatically prune
 *  various log files created by MyBB.
 *  To enable this functionality for the logs below, set the
 *  the number of days before each log should be pruned.
 *  If you set the value to 0, the logs will not be pruned.
 */

$config['log_pruning'] = array(
'admin_logs' => 365// Administrator logs
'mod_logs' => 365// Moderator logs
'task_logs' => 30// Scheduled task logs
'mail_logs' => 180// Mail error logs
'user_mail_logs' => 180// User mail logs
'promotion_logs' => 180 // Promotion logs
);
 
?>
Logged

iyeru

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: MyBB 1.4 Integration...
« Reply #4 on: September 12, 2008, 04:01:31 am »

Even after editing the mybb bridge file in coppermine to the correct way, it still doesn't get my session data, and I'm forever logged out of coppermine.
Logged

iyeru

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: MyBB 1.4 Integration...
« Reply #5 on: September 12, 2008, 04:07:42 am »

Even after editing the mybb bridge file in coppermine to the correct way, it still doesn't get my session data, and I'm forever logged out of coppermine.

Also, I can no longer login to the bridge manager standalone for some reason, even though I supplied the correct login info.
Logged

Fabricio Ferrero

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 1996
  • From San Juan, Argentina, to the World!
    • http://fabricioferrero.com/
Re: MyBB 1.4 Integration...
« Reply #6 on: September 12, 2008, 04:14:25 am »

It's no necesary to post 6 times in a road. It's enough with the first post. If you get some error search with the search button (right?) and you will get an answer.

http://forum.coppermine-gallery.net/index.php/topic,49733.0.html
Logged
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

iyeru

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: MyBB 1.4 Integration...
« Reply #7 on: September 12, 2008, 04:17:44 am »

It's no necesary to post 6 times in a road. It's enough with the first post. If you get some error search with the search button (right?) and you will get an answer.

http://forum.coppermine-gallery.net/index.php/topic,49733.0.html

No, I don't get an error with invalid credentials to connect to the MySQL Host.
Logged

iyeru

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: MyBB 1.4 Integration...
« Reply #8 on: September 12, 2008, 04:22:43 am »

If you don't like us posting so many times in a row, allow us to edit our posts.

Also, I can login to my bridge manager now. But I still need the session issue fixed.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: MyBB 1.4 Integration...
« Reply #9 on: September 12, 2008, 07:45:16 am »

Coppermine doesn't support mysqli, but only mysql. Your mybb config file is not relevant here. If you have bridging issues, do exactly as suggested in the docs, section "Bridging support". The same piece of advice can be found in the sticky thread on this board named "When requesting bridge support - mandatory!". Both the docs section as well as the sticky has been named that way for apparent reasons.
Logged

iyeru

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: MyBB 1.4 Integration...
« Reply #10 on: September 12, 2008, 02:32:24 pm »

Coppermine doesn't support mysqli, but only mysql. Your mybb config file is not relevant here. If you have bridging issues, do exactly as suggested in the docs, section "Bridging support". The same piece of advice can be found in the sticky thread on this board named "When requesting bridge support - mandatory!". Both the docs section as well as the sticky has been named that way for apparent reasons.

read second post for that info.

Also, I just re-installed myBB 1.4.1 with MySQL (not MySQLi) and it still keeps me logged out of coppermine even though I'm logged into the board.
Logged

Nibbler

  • Guest
Re: MyBB 1.4 Integration...
« Reply #11 on: September 12, 2008, 02:37:27 pm »

Bridging to MyBB 1.4 is not supported. The bridge is for MyBB 1.02. Edit the bridge file and change

Code: [Select]
// Database connection settings
$this->db = array(
'name' => $config['database'],
'host' => $config['hostname'],
'user' => $config['username'],
'password' => $config['password'],
'prefix' =>$config['table_prefix']
);

to

Code: [Select]
// Database connection settings
$this->db = array(
'name' => $config['database']['database'],
'host' => $config['database']['hostname'],
'user' => $config['database']['username'],
'password' => $config['database']['password'],
'prefix' => $config['database']['table_prefix']
);

That should fix the connection issue but MyBB 1.4 may have changed too much since 1.02 for the bridge file to work.
Logged

iyeru

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: MyBB 1.4 Integration...
« Reply #12 on: September 12, 2008, 02:41:42 pm »

I've already done that myself, but I can't login to the gallery via the board.
Logged

Nibbler

  • Guest
Re: MyBB 1.4 Integration...
« Reply #13 on: September 12, 2008, 02:46:22 pm »

You need to fix your cookie path. It's set to /forum/ which means Coppermine can't read it.
Logged

iyeru

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: MyBB 1.4 Integration...
« Reply #14 on: September 12, 2008, 02:49:37 pm »

You need to fix your cookie path. It's set to /forum/ which means Coppermine can't read it.

What should I change then? If I go into myBB and change the cookie path to /gallery/ then MyBB cannot read its own cookies.
Logged

iyeru

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: MyBB 1.4 Integration...
« Reply #15 on: September 12, 2008, 03:08:43 pm »

Seems I had to change it from /forum/ to just /
Logged

iyeru

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: MyBB 1.4 Integration...
« Reply #16 on: September 12, 2008, 03:10:48 pm »

But now it says I'm logged in to the gallery even though I'm logged out of the board. -_-
Logged

Nibbler

  • Guest
Re: MyBB 1.4 Integration...
« Reply #17 on: September 12, 2008, 03:15:10 pm »

Clear your cookies. Post a test account if you still have issues.
Logged

iyeru

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: MyBB 1.4 Integration...
« Reply #18 on: September 12, 2008, 03:17:56 pm »

Clear your cookies. Post a test account if you still have issues.

Now I'm logged out even though I'm logged into the board. -_-

Test Account: GalleryTest
Password: cpg_test
Logged

Nibbler

  • Guest
Re: MyBB 1.4 Integration...
« Reply #19 on: September 12, 2008, 03:23:25 pm »

Your cookie path is still /forum/. It can't work like that.
Logged
Pages: [1] 2   Go Up
 

Page created in 0.023 seconds with 20 queries.