forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: polkipa on October 16, 2005, 06:05:33 pm

Title: no more admin acces
Post by: polkipa on October 16, 2005, 06:05:33 pm
Hi,

Suddenly I don't have admin access anymore
everybody gets this warning: "Warning your browser does not accept script's cookies" and nobody can see the pictures anymore.
I read the forums and changed the aray function in the php.ini and restarted apache as instructed
it didn't help

please advice
Thanks
Paul
Title: Re: no more admin acces
Post by: kegobeer on October 16, 2005, 07:06:05 pm
Link to your Coppermine gallery, with test user and password.  Provide server details (server OS and version, PHP version, MySQL version) and explain any and all recent upgrades.
Title: Re: no more admin acces
Post by: polkipa on October 16, 2005, 07:30:49 pm
Thanks kegobeer

here's the link: http://www.time-smart.org/coppermine/index.php
admin login: ****
pass: ****

All add-on software & php is, to my knowledge, upgraded to latest stable version

Thanks for you help
Paul
Title: Re: no more admin acces
Post by: Tranz on October 16, 2005, 07:49:51 pm
Lucky for you, logging in doesn't work. Otherwise, someone could mess with your gallery. Don't ever post admin login information in a public board. Please change the password ASAP.

Since you cannot access the config page you will need to view your database using something like phpmyadmin, locate the <prefix>_config table and change debug_mode from 0 to 1.

Then post the error message displayed in the gallery when you go to the login page.
Title: Re: no more admin acces
Post by: Nibbler on October 16, 2005, 07:51:25 pm
You've set your cookie name to 'Aexis Management Pictures'. You will need to go into your database manually, find the cpg_config table, and change it back to something sensible.
Title: Re: no more admin acces
Post by: kegobeer on October 16, 2005, 07:52:57 pm
I didn't request a private message.  Don't send one unless requested.
Title: Re: no more admin acces
Post by: polkipa on October 17, 2005, 07:46:02 am
Sorry about the PM, no offense, just wanted to be helpfull and pass delicate infoI have put the system in debug mode and this is waht I get at login:

USER:
------------------
Array
(
    [ID] => 71ba5813a6b3dfba3c4700cfe4615a1a
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 0
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 0
    [can_upload_pictures] => 0
    [can_create_albums] => 0
    [has_admin_access] => 0
    [pub_upl_need_approval] => 1
    [priv_upl_need_approval] => 1
    [group_name] => Anonymous
    [upload_form_config] => 0
    [group_quota] => 0
    [can_see_all_albums] => 0
    [group_id] => 3
    [groups] => Array
        (
           
        )

)

==========================
Queries:
------------------
Array
(
    [referer] => /coppermine/index.php?cat=5
)

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

==========================
Page generated in 0.076 seconds - 7 queries in 0.003 seconds - Album set : AND aid NOT IN (11,12,13,14)

after login I get this

USER:
------------------
Array
(
    [ID] => c950521c454b09472b26b900a9534d77
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 0
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 0
    [can_upload_pictures] => 0
    [can_create_albums] => 0
    [has_admin_access] => 0
    [pub_upl_need_approval] => 1
    [priv_upl_need_approval] => 1
    [group_name] => Anonymous
    [upload_form_config] => 0
    [group_quota] => 0
    [can_see_all_albums] => 0
    [group_id] => 3
    [groups] => Array
        (
           
        )

)

==========================
Queries:
------------------
Array
(
    [cat] => 5
)

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

==========================
Page generated in 0.106 seconds - 17 queries in 0.017 seconds - Album set : AND aid NOT IN (11,12,13,14) AND aid IN (11,12,13,14)

What strikes me is that "has admin access" is zero and checking the user data with phpadmin it's clearly 1

Title: Re: no more admin acces
Post by: Joachim Müller on October 17, 2005, 08:01:10 am
do as Nibbler suggested.
Title: Re: no more admin acces
Post by: polkipa on October 17, 2005, 08:11:43 am
Problem solved

The cookiename cannot contain spaces!

Thanks all for your help
cya
Paul
Title: Re: no more admin acces
Post by: Joachim Müller on October 17, 2005, 08:30:47 am
that's what Nibbler said ;D