coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: OIDanTheManIO on July 24, 2005, 02:12:32 AM

Title: Error After Upgrading SMF
Post by: OIDanTheManIO on July 24, 2005, 02:12:32 AM
Hey, I just updated the CVS on my SMF forum (www.oi-forums.com) and now I'm getting this error on my Coppermine gallery index:

Fatal error: Call to undefined function: cache_get_data() in /home/oiforums/public_html/gallery/bridge/smf.inc.php(127) : eval()'d code on line 10

Anyone know what this means and if there's a fix for it?

-Dan The Man
Title: Re: Error After Upgrading SMF
Post by: Nibbler on July 24, 2005, 04:15:40 AM
The coppermine-smf bridge is designed for SMF 1.0 and does not work with SMF 1.1. Please check both our boards and at SMF for discussion about this.
Title: Re: Error After Upgrading SMF
Post by: OIDanTheManIO on July 24, 2005, 04:36:47 AM
Quote from: Nibbler on July 24, 2005, 04:15:40 AM
The coppermine-smf bridge is designed for SMF 1.0 and does not work with SMF 1.1. Please check both our boards and at SMF for discussion about this.

It's always worked fine for me with SMF 1.1...

-Dan The Man
Title: Re: Error After Upgrading SMF
Post by: Joachim Müller on July 24, 2005, 09:24:57 AM
don't use beta code if you're not confortable with it and know your way around how to fix errors. I don't think that cpg1.3.x has worked with SMF1.1.x
Title: Re: Error After Upgrading SMF
Post by: kegobeer on July 24, 2005, 07:11:14 PM
There's a thread on SMF that talks about this:

http://www.simplemachines.org/community/index.php?topic=40625

I don't have the SMF beta installed, so I can't offer a whole lot of help.  However, if any of the functions loaded by the bridge file are calling that function, it would have also have to be included in the cm_include_smf_funcs function call.  From a quick look, Load.php no longer has the md5_hmac function so I guess SMF has moved functions around, which means the bridge won't function correctly now.

Try this

cm_include_smf_funcs("$sourcedir/LogInOut.php", array("md5_hmac"));
cm_include_smf_funcs("$sourcedir/Load.php", array("cache_get_data", "reloadSettings", "loadUserSettings"));
cm_include_smf_funcs("$sourcedir/Subs.php", array("updateMemberData", "updateStats", "updateSettings"));


If you get more error message for missing functions, you'll have to either edit the appropriate cm_include_smf_funcs line or add a new cm_include_smf_funcs line.