admin.html not found, theme.php not setting self::$is_admin

sirguyon

Joined: 2013-11-13
Posts: 1
Posted: Wed, 2013-11-13 21:10

Any attempt to access admin screen comes up with a Dang! error if mod_write is not enabled.

This is similar to Ticket #1426 and has been raised before in Kohana_Exception [ Framework Error ].... It has also been addressed here: error: admin.html, could not be found... and admin.html missing?

http://galleryproject.org/node/110524 states that "when mod_rewrite is added, everything works fine!"

http://galleryproject.org/node/95196 advises that "I had the "requested view, admin.html, could not be found" error immediately after an initial install of V3.0. Gallery was looking for the admin.html.php file in "modules/gallery/views" directory but it was not there. I copied "admin.html.php" from "themes/admin_wind/views" to "modules/gallery/views" and all works fine."

I am running Gallery 3.0.9 on a Linux based Apache 2.2, PHP 5.2.14, MySQL: 5.0.27 system.

I noticed that in theme.php Line 51, self::$is_admin = $path == "/admin" || !strncmp($path, "/admin/", 7); self::$is_admin was never true, even when the URL was gallery.mydomain.com/index.php/admin.

This meant that, in find_file(...) in system/core/Kohana.php, the themes/admin_wind path wasn't in the list of paths to search. This is where admin.html.php resides.

Once (as per http://galleryproject.org/node/110524) mod_rewrite is enabled (and URL=gallery.mydomain.com/admin) then everything works fine

It seems to me like this is a bug.... but I don't understand enough to see what it is. Hopefully this might at least help someone else who runs up against this issue.... and maybe someone might be able to tell me why I HAVE to have mod_rewrite enabled.