Users not able to upload images to albums Users not able to upload images to albums
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Users not able to upload images to albums

Started by dukhunter99, April 21, 2005, 03:53:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dukhunter99

I bridged smf to coppermine. I updated today to copp version 1.3.3. Users (including me) are not able to upload photos to the albums. When I click on the submit button (smf theme), a message stating that you don't have access to the albums for upload displays. I figure its in the settings somewhere as fae as access rights but I can't find it. Can someone help me? ???

dukhunter99

I updated to version 1.3.3 today. I completed the smf.inc.php file and is as follows:
while (!file_exists($possible_paths[$correct] . '/Settings.php') &&
count($possible_paths) > $correct)
       $correct++;

require_once($possible_paths[$correct] . '/Settings.php');

define ('SMF', 1);

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

// database configuration
define('SMF_DB_NAME', 'bestd2_copp1'); // The name of the database used by the board
define('SMF_DB_HOST', 'localhost'); // The name of the database server
define('SMF_DB_USERNAME', 'bestd2_coppsmf1'); // The username to use to connect to the database
define('SMF_DB_PASSWORD', 'XXXXXXXX'); // 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


When I go to the photo gallery I get these errors

Notice: Undefined offset: 7 in /home/bestd2/public_html/photogallery/bridge/smf.inc.php on line 75

Notice: Undefined offset: 7 in /home/bestd2/public_html/photogallery/bridge/smf.inc.php on line 79

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 79

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 79

I thought it might have been the password, but I confirmed that it is correct.
Any suggestions

Joachim Müller

when updating your coppermine install from cpg1.3.2 to cpg1.3.3, you have overwritten your bridge file as well, so you have to modify it and make the adjustments you made to your old bridge file as well. On the page http://www.best-guns.com/photogallery/ I get
QuoteWarning: main(/Settings.php): failed to open stream: No such file or directory in /home/bestd2/public_html/photogallery/bridge/smf.inc.php on line 79

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 79
which means you haven't edited the path accordingly.

Joachim

Nibbler

$path = '../smf';

needs changing, it is not part of what you pasted in your post. As a side note, anything that is below

// ------------------------------------------------------------------------- //
// Nothing to edit below this line
// ------------------------------------------------------------------------- //


does not need to be edited.

dukhunter99

O.k. , figured out the bridging issue. I'm still getting the error when I try to upload pictures. It says that I don't have permission to upload to any of the albums. I am logged in as account administrator when this happens. When I go to admin mode, it will let me upload the pictures fine. It seems like it is an issue in user mode. I'm not sure if it is doing it with other users. How can I fix this?

Nibbler

Check album properties and the groups page - which may well have been reset during bridging.

dukhunter99

O.k., groups page looks good. How do I access the albums page? I cannot find it

raveTSN

I have the original problem and now I can't access my CPG at all.
http://theslayer.net/gallery/index.php

I can get to the board but not to CPG at all.

I installed CPG 1.3.3, installed SMF 1.0.5. I modified the bridge file:


// database configuration
define('SMF_DB_NAME', 'theslayer_net_1'); // The name of the database used by the board
define('SMF_DB_HOST', 'mysql1.neospire.net'); // The name of the database server
define('SMF_DB_USERNAME', 'XXXXXXXXXX'); // The username to use to connect to the database
define('SMF_DB_PASSWORD', 'XXXXXXXXXX'); // The password to use to connect to the database

// The web path to your SMF Board directory
define('SMF_WEB_PATH', 'http://www.theslayer.net/board/');

// 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', 'smf_members'); // The members table
define('SMF_GROUP_TABLE', 'smf_membergroups'); // The groups table


I uncommented the SMF line in init.inc.php.  I did everything step by step as instructed and now I am getting this error:

Notice: Undefined offset: 7 in /web/home/t/h/theslayer.net/gallery/bridge/smf.inc.php on line 75

Notice: Undefined offset: 7 in /web/home/t/h/theslayer.net/gallery/bridge/smf.inc.php on line 79

Warning: main(/Settings.php): failed to open stream: No such file or directory in /web/home/t/h/theslayer.net/gallery/bridge/smf.inc.php on line 79

Fatal error: main(): Failed opening required '/Settings.php' (include_path='.:/usr/share/php') in /web/home/t/h/theslayer.net/gallery/bridge/smf.inc.php on line 79


Any one got any advice?
Thanks in advance!
Shannon

Stramm

I'd suggest you'd get an unedited smf.inc.php ... then just edit $path on top after the disclaimer (it's the relative path).

You've edited code below (as already mentioned above)
// Nothing to edit below this line means you've fucked up your entire bridge.

Good luck, and the new bridge file should do the trick

raveTSN

Crap!  I did do that didn't I?!?  Now I feel like a tard.  Thanks for the point-out.  I have it fixed now.

Thanks again!
Shannon