After integration with vb3.03 can't upload file After integration with vb3.03 can't upload file
 

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

After integration with vb3.03 can't upload file

Started by hendri, December 27, 2004, 02:23:31 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

hendri

please help
after integration can't upload files ??

message :

Sorry there is no album where you are allowed to upload files

File: /home/aroclubi/public_html/gallery/upload.php - Line: 845


debug :
USER:
------------------
Array
(
    [ID] => 7cee48c09cd77f8dde8981d927285601
    [am] => 0
)

==========================
USER DATA:


LOGIN IS OK..

PLEASE HELP....

hendri

i have change all the privalges...and create album that everybody can get in

but when i want to upload files show up error :

Error
Invalid action for form creation.

pleasssseeee help me... frustasting already ..


hendri



Joachim Müller

link and test user account (non-admin) with upload privileges please. Enable debug_mode for all in coppermine to let us see additional errors.

Joachim

hendri

Quote from: GauGau on December 27, 2004, 03:42:56 PM
link and test user account (non-admin) with upload privileges please. Enable debug_mode for all in coppermine to let us see additional errors.

Joachim

already test user account with upload privileges and it seems ok (    define('UDB_INTEGRATION', 'vbulletin3')    not used   ) , can upload picture.

but when i use '   define('UDB_INTEGRATION', 'vbulletin3')  ' in init.inc.php when i try to upload file with user account this error came out :

Invalid action for form creation.

File: /home/aroclubi/public_html/gallery/upload.php - Line: 963

debug info :

USER:
------------------
Array
(
    [ID] => 7cee48c09cd77f8dde8981d927285601
    [am] => 1
    [liv] => Array
        (
           
  • => 4
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
       
  • => 1
        [group_id] => 1
        [1] => Administrators
        [group_name] => Administrators
        [2] => 0
        [group_quota] => 0
        [3] => 1
        [has_admin_access] => 1
        [4] => 1
        [can_rate_pictures] => 1
        [5] => 1
        [can_send_ecards] => 1
        [6] => 1
        [can_post_comments] => 1
        [7] => 1
        [can_upload_pictures] => 1
        [8] => 1
        [can_create_albums] => 1
        [9] => 0
        [pub_upl_need_approval] => 0
        [10] => 0
        [priv_upl_need_approval] => 0
        [11] => 3
        [upload_form_config] => 3
        [12] => 0
        [custom_user_upload] => 0
        [13] => 5
        [num_file_upload] => 5
        [14] => 3
        [num_URI_upload] => 3
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM g_filetypes;
        [1] => SELECT * FROM g_usergroups WHERE group_id = 1
        [2] => DELETE FROM g_banned WHERE expiry < 1104190771
        [3] => SELECT * FROM g_banned WHERE ip_addr='202.67.33.3' OR ip_addr='202.67.34.186' OR user_id=0
        [4] => SELECT aid FROM g_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (1)
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    Array
    (
    )

    ==========================
    Page generated in 0.107 seconds - 5 queries in 0.028 seconds - Album set :


    please help , thank you !

Joachim Müller

it's nice you already have a test user set up :-\\, I was suggesting you post the test user data, so we can have a look for ourselves ;)

Joachim

hendri

Quote from: GauGau on December 28, 2004, 04:56:51 AM
it's nice you already have a test user set up :-\\, I was suggesting you post the test user data, so we can have a look for ourselves ;)

Joachim

ok

user name : test
passw       : 1234

log ini www.aroclubindonesia.com/forum

gallery in

www.aroclubindonesia.com/gallery

thanks for the help

hendri

Joachim Müller

Integration/bridging is not set up correctly on your page. After logging in on your forum and then returning to your gallery page, I can still see the login link, whcih means that coppermine doesn't "recognize" I'm already logged in (so the upload problem is not of concern for the moment, you have to fix authentification first). Post the modified lines of your bridge file (make sure to replace your password with asterisks).

Joachim

hendri

#7
vbulletin3.inc.php :

// vBulletin 3.0 Integration for Coppermine

// ------------------------------------------------------------------------- //
// ------------------------------------------------------------------------- //
// Modify the values below according to your Board installation
// ------------------------------------------------------------------------- //
// database configuration

//NOTE : Your vBulletin license number is provided at the top of every php file in your vBulletin installation!
define('VB_CUST_NO', '*******'); // Your vBulletin license number (NOT your customer number)
define('VB_DB_NAME', 'aroclubi_database'); // The name of the database used by the board
define('VB_BD_HOST', 'localhost'); // The name of the database server
define('VB_DB_USERNAME', 'aroclubi_hendri'); // The username to use to connect to the database
define('VB_DB_PASSWORD', '*******'); // The password to use to connect to the database[/b]
// The web path to your vBulletin Board directory
// In this example http://yoursite_name.com/vbulletin3/
define('VB_WEB_PATH', '/forum/');
// ------------------------------------------------------------------------- //
// Nothing to edit below this line
// ------------------------------------------------------------------------- //


init.inc in include directory :
define('COPPERMINE_VERSION', '1.3.2');
// User database integration
// Uncomment the applicable line if you want to use it
define('UDB_INTEGRATION', 'vbulletin3');
// define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
// define('UDB_INTEGRATION', 'vbulletin23');
// define('UDB_INTEGRATION', 'vbulletin30');
// define('UDB_INTEGRATION', 'yabbse');
// define('UDB_INTEGRATION', 'smf');
// define('UDB_INTEGRATION', 'woltlab21');
// define('UDB_INTEGRATION', 'punbb');



anything wrong ?

Joachim Müller

is coppermine installed in the same database?

Joachim

P.S. I edited your posting to make it more readable

hendri

Quote from: GauGau on December 28, 2004, 02:05:58 PM
is coppermine installed in the same database?

Joachim

P.S. I edited your posting to make it more readable


yes it was installed in same database, so what have to do ?

Joachim Müller

do you run a legal copy of vb, and did you check the vBulletin license number is correct in your bridge file. I remember that there have been reports from users who ran an illegal copy of vb, where the bbs itself did work, but bridging didn't. As soon as they legalized their vb version, the bridge started working. Please note: I'm not accusing you of anything, I'm only trying to help.

Joachim

Nibbler

Does vb3 have a tablename prefix you need to set ?

hendri

Quote from: GauGau on December 29, 2004, 07:42:51 PM
do you run a legal copy of vb, and did you check the vBulletin license number is correct in your bridge file. I remember that there have been reports from users who ran an illegal copy of vb, where the bbs itself did work, but bridging didn't. As soon as they legalized their vb version, the bridge started working. Please note: I'm not accusing you of anything, I'm only trying to help.

Joachim

i run a legal copy, i got my licence, my customer id , my passw . it's ok for asking...:)

hendri

Quote from: Nibbler on December 29, 2004, 08:10:39 PM
Does vb3 have a tablename prefix you need to set ?

what prefix need to set ? can tell  me ?

Nibbler


hendri

Quote from: Nibbler on December 30, 2004, 02:13:05 AM
The VB_TABLE_PREFIX in the bridge file.

what to add / change ? here the code :

// Prefix and names for the database tables
define('VB_TABLE_PREFIX', ''); // Leave empty, not supported by vBulletin 2.3
define('VB_USER_TABLE', 'user'); // The members table
define('VB_SESSION_TABLE', 'session'); // The sessions table
define('VB_GROUP_TABLE', 'usergroup'); // The groups table

Joachim Müller

take a look at the tables names used by vb (e.g. with phpMyAdmin): you should be able to figure out they have a pattern, e.g. vb_foo, vb_bar, vb_whatever. In this case, "vb_" would be the table prefix. Usually, you can set up the table prefix when settings up your bbs in the first place - we can't know, since none of the dev team members owns a vb-license, so we just have to guess (as a side note: the vb people haven't been very helpfull when we asked them if we could have a free vb license, not for a "live" forum, but just to test and maintain the bridge files. You might want to moan at them on their board *hint*  ;)).

Joachim

hendri

Quote from: GauGau on December 30, 2004, 02:00:56 PM
take a look at the tables names used by vb (e.g. with phpMyAdmin): you should be able to figure out they have a pattern, e.g. vb_foo, vb_bar, vb_whatever. In this case, "vb_" would be the table prefix. Usually, you can set up the table prefix when settings up your bbs in the first place - we can't know, since none of the dev team members owns a vb-license, so we just have to guess (as a side note: the vb people haven't been very helpfull when we asked them if we could have a free vb license, not for a "live" forum, but just to test and maintain the bridge files. You might want to moan at them on their board *hint*  ;)).

Joachim

i have check the prefix is 'vb3_' and i have changed the table prefix to 'vb3_' in vbulletin3.init.php and still got error.. can't upload :( ...


here is the code :
//NOTE : Your vBulletin license number is provided at the top of every php file in your vBulletin installation!
define('VB_CUST_NO', '****'); // Your vBulletin license number (NOT your customer number)
define('VB_DB_NAME', '*****'); // The name of the database used by the board
define('VB_BD_HOST', 'localhost'); // The name of the database server
define('VB_DB_USERNAME', '****'); // The username to use to connect to the database
define('VB_DB_PASSWORD', '*******'); // The password to use to connect to the database

// The web path to your vBulletin Board directory
// In this example http://yoursite_name.com/vbulletin3/
define('VB_WEB_PATH', '/forum/');
// ------------------------------------------------------------------------- //
// Nothing to edit below this line
// ------------------------------------------------------------------------- //
// Prefix and names for the database tables
define('VB_TABLE_PREFIX', 'vb3_'); // Leave empty, not supported by vBulletin 2.3
define('VB_USER_TABLE', 'user'); // The members table
define('VB_SESSION_TABLE', 'session'); // The sessions table
define('VB_GROUP_TABLE', 'usergroup'); // The groups table

hendri