[SOLVED] I need help, G2 is messed up

watsonalgas

Joined: 2005-02-01
Posts: 52
Posted: Sun, 2005-05-22 16:36

I was trying to change my URL Rewrite to get everythin to read to an add on domain instead of the subdomain, and it messed Gallery up. I can't login now so I can't change it back and it messed up all the themes too. How can get back to admin pageif I can't login?
----

Gallery URL (optional):mali.net.ru/gallery2 (mali.watsonalgas.com.ru/gallery2)
Gallery version: G2 beta 2
Webserver (with version):
Datatabase (with version): MySQL
PHP version (eg 4.2.1): PHP 5.0.4
phpinfo URL (optional):
Graphics Toolkit(s): GD
Operating system: FreeBSD
Web browser/version: Firefix
G1 version (for migration bugs):

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-05-22 16:41

- delete .htaccess (or move it away)
- browse to http://mali.net.ru/gallery2/main.php?g2_view=core:SiteAdmin&g2_subView=core:AdminModules
and deactivate the rewrite module
(you can find the most important urls in your http://mali.net.ru/gallery2/README.html

and you should upgrade to beta 3 anyway :)

 
watsonalgas

Joined: 2005-02-01
Posts: 52
Posted: Sun, 2005-05-22 17:01

That didn't work, I'm still getting a security violation...I deleted the .htaccess in my main Gallery 2 folder, is there anything else I need to do?

(I had updated to beta 3 but I was getting an error on the main page, something like illegal code in some class .php on line 70, and didn't find any solutions here, so stuck with beta 2).

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-05-22 17:36

lets deactivate the rewrite module manually:
you'll have to manipulate the database with phpmyadmin or another SQL tool:

1. table g2_pluginmap: remove the entry (module, rewrite, 1)
2. table g2_pluginparametermap remove all entries (module, rewrite, *)
3. table g2_factorymap: remove all entries for g_implModuleId = rewrite
4. go to http://mali.net.ru/gallery2/lib/tools/test/ and hit "flushcache".

no you should be able to login again

 
watsonalgas

Joined: 2005-02-01
Posts: 52
Posted: Sun, 2005-05-22 20:11

That worked, sorry for the trouble. Thanks for the quick replies and awesome support. Thanks again.