"The requested URL /gallery/v/Events/ was not found on this server" Any ideas? Need some help please!

fatesjoke03

Joined: 2008-04-07
Posts: 3
Posted: Mon, 2008-04-07 17:28

Okay here is my issue. I recently migrated from Coppermine to Gallery2. So far everything is awesome and I spent a lot of time yesterday customizing the feel of the template I was using. Very minimal code changes, most changes were via Admin Panel.

I was uploading some jpgs I had made for album covers and suddenly things went bad. All the album covers dissapeared and when you click on the albums you get a 404 error. I cannot access my Admin Panel anymore and cannot get to any pictures.

I am using a SMF bridge but have disabled it to see if that may be the conflict, it is not.

I ran the upgrade to check file integrity and all it said was missing was some theme files and a few files from the coppermine import plugin. Doesn't seem like that should effect anything.

Gallery is in debug mode now and I have a testuser account set up

name: testuser1
password: password1

Please let me know if there is anything else I need to add to get this resolved. I have a backup of the database and all files from the server on my desktop. I have installed another instance of Gallery2 in case I need to migrate to it. But I'd rather not have to do that.

Thanks in advance.


Gallery version (not just "2"): 2.2.4
PHP version (e.g. 5.1.6): 4.4.4
PHPInfo Link (see FAQ):http://triskelionsociety.com/gallery/phpinfo.php
Webserver (e.g. Apache 1.3.33): 1.3.39
Database (e.g. MySql 5.0.32): 4.1.22-standard
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux): Linux
Browser (e.g. Firefox 2.0): Firefox 2.0

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2008-04-07 17:58

probably some problem with the URL rewrite module. maybe you've edited the .htaccess file manually?

fix:
uninstall the URL rewrite module. once uninstalled, urls should work again.
you can then try to install and activate the URL rewrite module again.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
fatesjoke03

Joined: 2008-04-07
Posts: 3
Posted: Mon, 2008-04-07 18:16

Stupid question maybe, but how do I uninstall that module? I cannot access the Admin Panel. Is this something I edit a file on the server for?

I found the htaccess file in the gallery directory. I found a bit of code I can put in it to try and get access to the Admin Panel(found it here: http://codex.gallery2.org/Gallery2:Modules:rewrite. Only problem is the htaccess file is and exe and I cannot edit it. Is that supposed to be so?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2008-04-07 18:47
 
fatesjoke03

Joined: 2008-04-07
Posts: 3
Posted: Mon, 2008-04-07 19:01

I swear I already tried that but did it again and everything is fine. Any idea why this happened or what I can do to prevent it from happening again?

Thanks for your help. Amazing!!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2008-04-07 19:27

Nope, no idea what happened there. You shouldn't enable the "admin" rewrite rule (the one for the site admin area), else you won't be able to fix things the easy way and have to look at the FAQ again.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
Vampyre
Vampyre's picture

Joined: 2004-05-01
Posts: 6
Posted: Wed, 2009-05-20 13:36
valiant wrote:
You shouldn't enable the "admin" rewrite rule (the one for the site admin area), else you won't be able to fix things the easy way and have to look at the FAQ again.

I made this mistake and now I'm suffering the consequences. :(
I've moved 3 Gallery2 sites to a new server successfully.
The 4th one however keeps giving me grief.
All of them are part of the multi-site installations.

At the moment, when I go to http://rubbishbin.org/gallery/admin/?g2_subView=core.AdminMaintenance
I get:
The requested URL /gallery/admin/ was not found on this server.

I set this line in the config file:
$gallery->setConfig('mode.maintenance', true);

But when I go to:
http://rubbishbin.org/gallery/main.php?g2_view=core.PluginCallback&g2_pluginId=rewrite&g2_pluginType=module&g2_command=deactivate
I get this error:
{"status":"error"}

I've also set this line:
@ini_set('display_errors', 1);
but can't see any other descriptive errors.

Any ideas how to fix this, please?

Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.9 apache2handler
PHPInfo Link: http://rubbishbin.org/info.php
Webserver = Apache/2.0.52 (Red Hat)
Database = mysqlt 5.0.79, lock.system=flock
Toolkits = Exif, Getid3, LinkItemToolkit, Thumbnail, ArchiveUpload, Gd, NetPBM, ImageMagick, SquareThumb
Acceleration = none, none
Operating system = Linux RedHat 4 (2.6.9-78.0.22.ELsmp #1 SMP Fri Apr 24 12:46:19 EDT 2009 i686)
Browser: Firefox 3.0.1

 
feretromc

Joined: 2008-06-05
Posts: 18
Posted: Mon, 2009-07-06 18:50

Had you solved the problem? I have the same problem now.
Following steps, going to maintenance mode...


Gallery 2.3 | Theme Patrian based on Carbon | www.patrian.com.ar
Apache 2.0.63 | PHP 5.2.9 | MySQL 4.1.22-standard