[SOLVED] Forgot my admin password

jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Fri, 2005-05-20 15:17

i really need your help.

somehow i forgot my admin password...so i read the FAQ's and found these suggestion.

*********
C.37.

I've forgotten my admin password! How can I reset it?

Version 1.4.3 or below: Resetting your admin password is easy; just set your Gallery into config mode, rerun the configuration wizard and specify a new password on step 2.

Version 1.4.4 and above:

1.

Create a file named

resetadmin

in your /gallery/setup directory.
2.

Visit the configuration wizard in your browser
3.

Follow the instructions on the page
4.

Specify a new password in step 2 of the configuration wizard

The config wizard will give you a special piece of information, and you will be required to edit the resetadmin file, add the string, save, and refresh your browser. This is a security measure to prove that you are an administrator.

***********

as it says i created a file name "
resetadmin" (without any ending)...

then run the configuration wizard again...

step1: authentification ok
step2: check ok
step3: here i should be able to change the password..but i couldnt change it..it was blocked...

can anyone help me out?

 
jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Fri, 2005-05-20 15:34

i forgo to tell: i'm using the gallery2 beta version...

thanks!

 
jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Fri, 2005-05-20 17:58

----
The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: g2 beta2
Apache version: -
PHP version (don't just say PHP 4, please): 4.3.10 / 5.0.3
Graphics Toolkit: -
Operating system: FreeBSD
Web browser/version (if applicable): firefox 1

- Perl 5.8.6
- MySQL [Version]: 4.1.10a

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2005-05-20 18:37

[Moved to G2 Support]

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-05-20 18:50

jimmy_boi, the FAQ is for G1.
first, upgrade to G2 beta 3. always a good thing.
and the password that you have forgot. is it the same as the one that is in config.php? open config.php in a text editor, there you'll find the password that you typed in during the install process.

 
jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Fri, 2005-05-20 19:36

this is really strange...it seems like i always typed the right password..but still i'm not getting inside...

when i enter mambo as a admin (frontend)..and and i try to get to gallery "Admin Site"...this shows me some other error message..

*******

Security Violation

The action you attempted is not permitted.

Back to the Gallery
Error Detail -
Error (ERROR_PERMISSION_DENIED) :

* in modules/core/classes/helpers/GalleryUserHelper_medium.class at line 209 (gallerystatus::error)
* in modules/core/classes/GalleryCoreApi.class at line 488 (galleryuserhelper_medium::assertsiteadministrator)
* in modules/core/SiteAdmin.inc at line 46 (gallerycoreapi::assertuserissiteadministrator)
* in modules/core/classes/GalleryView.class at line 214 (siteadminview::loadtemplate)
* in main.php at line 293 (siteadminview::doloadtemplate)
* in main.php at line 79
* in embed.php at line 129
* in /home/username/public_html/modules/mod_galleryside.php at line 70 (galleryembed::handlerequest)
* in /home/username/public_html/includes/frontend.html.php at line 264
* in /home/username/public_html/includes/frontend.php at line 122 (modules_html::module2)
* in /home/username/public_html/templates/fernweh/index.php at line 40
* in /home/username/public_html/index.php at line 204

**********

ok..but first i'll try to upgrade the latest beta version...is there any tutorials for it? or is it same like updating a gallery1 versions..u know like ...overwriting the elder folders..

thanks for ur support!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-05-20 19:47

first get G2 standalone to work, then let's talk about mambo (why didn't you say that this has to do with embedding in the first place?).

and delete/clear your GALLERYSID cookies in your browser, this might help for the login problem.

 
jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Fri, 2005-05-20 20:34

'cause i was not sure that time...i thought i typed the wrong password...but after checking the "config.php"...i realized that i always typed the right pw...

i guess this whole problem happened after embedding g2 to mambo...howeva...can u tell me how i can upgrade my gallery to beta version 3...is it same like upgrading a gallery v1.3 to v1.5...u know like ...overwriting the elder folders..

i cleared my cookies but i'm still having the same problem...or wat do u mean with Gallerysid cookies? where can i find it?

sorry for all those stupid question...but i'm really confused... :-o

let me know...thanks

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-05-20 20:43

@clearing cookies -> in your browser, IE or firefox: just go to the browser properties and clear the cookies.

@upgrading: yes, similar to upgrades in G1. but do NOT delete g2data, the database or config.php. replace the rest. then run the upgrader.

 
jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Fri, 2005-05-20 21:53

@valiant: thank you so much...it works now!!!!

may i ask u one more question?

having some problem with the sidebar...everything works fine..but my problem is...i only need the random picture...all the other infos like "search", "actions", "your carts" and "members" i dont want to use it as a sidebar....

can anyone help me out !!

i found once a this module for random picture...and i installed it with sucess...after entering the url i hoped that it will work..but i didnt...now i think i'm making some mistake with the url... this is the url i entered... www.mydomain.de/gallery

hope one of this would work...

thanks for ur support

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-05-20 21:57

members -> deactivate the members module in site admin -> modules.
same for your cart,
search / actions. not that easy. that's a whole other topic and has to do with embedding. plus, it isn't solved.

 
jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Fri, 2005-05-20 22:25

well...actually i dont want to deactivate al the other modules....i only need to see the random picture on my side...i was thinking like hiding those modules not deactiving...is this possible?

there is an another module which is specifiied for randomizing...i already installed it...but i think the url i'm entering there is wrong..

the name of this zip file is: mod_g2_random_image.zip

do u know this module?