coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: joesp on April 07, 2006, 05:11:51 PM

Title: where are the mycpg_* db functions defined and is it my fault they can't be foun
Post by: joesp on April 07, 2006, 05:11:51 PM
I have the following issue when trying to bridge coppermine and minibb (which was bridged itself with gnuboard  -- http://sir.co.kr/bbs/board.php?bo_table=g4_pds&wr_id=1673  ):
[error message here]  Fatal error: Call to undefined function mycpg_sql_connect() in /var/myowndictionary/current/cpg_include/functions.inc.php on line 215

Coppermine install: http://www.myowndictionary.com/index.php?cfile=cpg_index.php
Forum install: http://www.myowndictionary.com/index.php?cfile=bb_index.php
Coppermine version: cpg1.4.4
Forum version: minibb
Test user account: irrelevant

BridgeManager settings: enabled, or disabled.... same result.


i am trying to include the gallery in the middle of an existing page by wrapping it inside my other existing code, as opposed to the opposite.
i am trying to code it all by hand.  So, I copied a file in cpg_bridge directory and renamed it minibb.inc.php and made the changes in table names, and also changed my existing g4_member table to include fields which were not present. 
then, i ran the dbmanager script as said in the documentation and told it to use minibb and it found the file "minibb.inc.php" .
( after that, though, the cpg_bridge database table is still empty )
continuing in my quest, I moved all files from /cpg/ to /cpg_* (renaming them) and substituting all file names with cpg_* in all the files with an SED script
(I did this to eleminiate problems with including and directory paths AND keep files separate in my main directory by giving groups of files similar prefixes.)
by eliminating the @ sign in the function mycpg_db_connect I get the error above.
i get the above error.
i cannot find the function definition for it.  where are these functions defined? 
i don't know what is mycpg_fetch_array functions....  and why it doesn't find them anymore.
Title: Re: where are the mycpg_* db functions defined and is it my fault they can't be foun
Post by: Nibbler on April 07, 2006, 05:30:33 PM
include/functions.inc.php
Title: Re: where are the mycpg_* db functions defined and is it my fault they can't be
Post by: joesp on April 07, 2006, 05:46:33 PM

oh, nevermind, my mistake.  I AM SOOO SORRY ............!!!!!!!!!!!  I fubarred the file in the replacement.

thx 4 the software.
Title: Re: where are the mycpg_* db functions defined and is it my fault they can't be
Post by: Joachim Müller on April 07, 2006, 09:43:31 PM
You might want to share the custom bridge file that you have come up with for the benefit of the community.