Hello,
I attempted to bridge my smf board to coppermine. I believe that I followed the directions according to the manual but I'm getting errors. This is what it said:
Notice: Undefined offset: 7 in /home/bestd2/public_html/photogallery/bridge/smf.inc.php on line 73
Notice: Undefined offset: 7 in /home/bestd2/public_html/photogallery/bridge/smf.inc.php on line 77
Warning: main(/Settings.php): failed to open stream: No such file or directory in /home/bestd2/public_html/photogallery/bridge/smf.inc.php on line 77
Fatal error: main(): Failed opening required '/Settings.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bestd2/public_html/photogallery/bridge/smf.inc.php on line 77
This is how I modified the code in smf.inc.php:
// database configuration
define('SMF_DB_NAME','bestd2_smf'); // The name of the database used by the board
define('SMF_DB_HOST','localhost'); // The name of the database server
define('SMF_DB_USERNAME','XXXXXX'); // The username to use to connect to the database
define('SMF_DB_PASSWORD','XXXXXX'); // The password to use to connect to the database
// The web path to your SMF Board directory
define('SMF_WEB_PATH', "http://www.best-guns.com/sportsmansforum");
// The Name of the Cookie used for SMF logon
define('SMF_COOKIE_NAME','SMFCookie10');
// Prefix for the database tables
define('SMF_TABLE_PREFIX','smf_'); // Table Prefix
// Names for the database tables
define('SMF_USER_TABLE', 'members'); // The members table
define('SMF_GROUP_TABLE', 'membergroups'); // The groups table
Can someone tell me what I did wrong?
did you chmod everything correctly?
What version of Coppermine are you using?
I'm using version 1.3
Have you considered upgrading to 1.3.2? Depending on how your server is configured, you may not be able to include/require a file if you use a url instead of a relative path. The 1.3.2 version uses a relative path, which is why I recommend upgrading.
O.K.,
I've decided to completely start over. I've removed my old version of coppermine and smf and am installing clean versions. I'm installing coppermine 1.3.2 as KegoBeer suggested. Now it says in order to inegrate the two, you need to have them both in the same database. Should I create a database in Cpanel first and then install both cpg and smf in the database or let smf create the database for me and them configure coppermine to that database?
Or is there a better way. i'm definetly open for suggestions ;)
Doesn't make any difference. Be sure to specify an actual path as SMF_WEB_PATH.
When you say specify right path, do you mean the database name. I've set the database name.
Would this work O.K.
bestd2_smfcopp