Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Users not able to upload images to albums  (Read 7932 times)

0 Members and 1 Guest are viewing this topic.

dukhunter99

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 53
    • Fun Factor Photo Booth
Users not able to upload images to albums
« on: April 21, 2005, 03:53:02 am »

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

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 53
    • Fun Factor Photo Booth
Getting errors after update
« Reply #1 on: April 21, 2005, 04:17:35 am »

I updated to version 1.3.3 today. I completed the smf.inc.php file and is as follows:
Code: [Select]
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Users not able to upload images to albums
« Reply #2 on: April 21, 2005, 11:06:43 am »

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

Joachim
Logged

Nibbler

  • Guest
Re: Users not able to upload images to albums
« Reply #3 on: April 21, 2005, 02:26:18 pm »

Code: [Select]
$path = '../smf';
needs changing, it is not part of what you pasted in your post. As a side note, anything that is below

Code: [Select]
// ------------------------------------------------------------------------- //
// Nothing to edit below this line
// ------------------------------------------------------------------------- //

does not need to be edited.
Logged

dukhunter99

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 53
    • Fun Factor Photo Booth
Re: Users not able to upload images to albums
« Reply #4 on: April 22, 2005, 07:29:08 pm »

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

  • Guest
Re: Users not able to upload images to albums
« Reply #5 on: April 22, 2005, 07:33:25 pm »

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

dukhunter99

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 53
    • Fun Factor Photo Booth
Re: Users not able to upload images to albums
« Reply #6 on: April 22, 2005, 07:49:07 pm »

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

raveTSN

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Users not able to upload images to albums
« Reply #7 on: August 05, 2005, 05:38:04 pm »

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:

Code: [Select]
// 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:
Code: [Select]
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
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Users not able to upload images to albums
« Reply #8 on: August 05, 2005, 05:49:45 pm »

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)
Code: [Select]
// 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

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Users not able to upload images to albums
« Reply #9 on: August 05, 2005, 08:32:25 pm »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 15 queries.