YabbSE Integration - Page 3 YabbSE Integration - Page 3
 

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

YabbSE Integration

Started by cerberus, October 18, 2003, 03:20:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


Joachim Müller

this has been asked before, the answer is: yes, we're trying to provide a bridge file for SMF.

GauGau

tlveik

Trying to bridge YabbSE 1.5.4 with Coppermine 1.2.1

I get this error with first running of coppermine after following bridge instructions and fresh install of coppermine:

Fatal error: Call to undefined function: database_error() in /home/tlveik/public_html/veik/cpg/bridge/yabbse.inc.php on line 74

Function database_error() is defined in errors.php but errors.php is never included as far as I can find.  Did I miss something?

Joachim Müller

make sure to provide the correct settings for your yabbse databsse settings inside the bridge file and the error should go away.

GauGau

tlveik

Only three lines have anything to do with whether a function is defined or not and they are all correct.

require_once("../yabbse/Settings.php");
require_once("$sourcedir/Load.php");
require_once("$sourcedir/Security.php");

jack

You are quite right .. database_error is not included. I'll get a new YaBB SE bridge done with a replacement for this ASAP.

It's odd that no-one else has noticed this yet, so my guess is that there's something wrong with your install also. Do Yabb SE and Coppermine both work 'standalone'? (just change the init.inc.php file to comment out the Yabbse bridge to test).
Please do not contact me for support directly - instead: post on this board!

tlveik

Yes, both work fine stand alone.

jack

I have made a new YaBB SE bridge that includes a replacement database_error function.

WIth this, we should be able to see what the actual error is ;)

I have uploaded it to the 'devel' branch in CVS. It takes some time (a few hours I think) before the public CVS is synched with the development one. When that occurs, you should be able to get the file via the web access to CVS. It will be labelled as from 'Coppermine 1.3', but don't worry, the bridge files are compatible with 1.2.1.
Please do not contact me for support directly - instead: post on this board!

tlveik

I tried the new bridge and turned on debug mode so I could see whats happening.  Now I get this:

QuoteNotice: Undefined variable: the_error in /home/tlveik/public_html/veik/cpg/bridge/yabbse.inc.php on line 95
Fatal error :

There was an error while processing a database query.
mySQL error: Table 'kueyh_cpg.yabbse_banned' doesn't exist

I have a table "cpg11d_banned" in database "kueyh_cpg".  Is that the problem?

It's not important that I get the YabbSE bridge working.  I'll be switching to SMF soon.

Tom

jack

Nope, the problem is that you don't have a 'yabbse_banned' table  :wink:

That is the table used by YaBB SE to keep track of who is banned or not.

Hmm.. do Coppermine and YaBB SE use the same database?
Please do not contact me for support directly - instead: post on this board!

jack

I think I've found a problem when coppermine and YaBB SE do NOT use the same DB.

tlveik, can you give this version a try please:-

http://www.haxed.co.uk/~jack/yabbse-bridge-tlveik.zip

Let me know how you get on.

Ta.[/url]
Please do not contact me for support directly - instead: post on this board!

tlveik

Coppermine and YabbSE are not using the same database.  I could make them use the same database I suppose.  Tried the new bridge file.  Here is what happened: (I think this is correct  :wink: )

Installed new bridge.
Typed my coppermine url in browser.
Got the login screen for yabbse.
Tried logging in using a coppermine user, rejected. (normal I think)
Logged in using my yabbse username and it took me to yabbse not coppermine.
Typed my coppermine url in browser.
Got this error:
QuoteFatal error :

There was an error while processing a database query.
mySQL error: Table 'kueyh_cpg.yabbse_members' doesn't exist

Tom

tlveik

Ah. Now I see in the instructions:
QuoteIt is also recommended that you use the same database for your board and Coppermine.

Oops  :roll:

Tom[/code]