So here's the error:
The requested view, admin.html, could not be found
File: system/core/Kohana.php, line: 1170
And here's how we got there:
system/libraries/View.php [84]:
Kohana::find_file( views, admin.html, 1 )
system/libraries/View.php [50]:
View_Core->set_filename( admin.html )
modules/gallery/libraries/MY_View.php [27]:
View_Core->__construct( admin.html )
modules/gallery/libraries/Admin_View.php [36]:
View->__construct( admin.html )
modules/gallery/controllers/admin_maintenance.php [40]:
Admin_View_Core->__construct( admin.html )
Admin_Maintenance_Controller->index( )
modules/gallery/controllers/admin.php [50]:
call_user_func_array( Array
(
[0] => Admin_Maintenance_Controller Object
(
[theme:private] =>
[uri] => URI Object
(
)
[input] => Input Object
(
[use_xss_clean:protected] => 1
[magic_quotes_gpc:protected] => 1
[ip_address] =>
)
)
[1] => index
)
)
Admin_Controller->__call( maintenance )
system/core/Kohana.php [291]:
ReflectionMethod->invokeArgs( Admin_Controller Object
(
[theme:private] =>
[uri] => URI Object
(
)
[input] => Input Object
(
[use_xss_clean:protected] => 1
[magic_quotes_gpc:protected] => 1
[ip_address] =>
)
)
, Array
(
[0] => maintenance
[1] => Array
(
)
)
)
Kohana::instance( )
system/core/Event.php [209]:
call_user_func( Array
(
[0] => Kohana
[1] => instance
)
)
system/core/Bootstrap.php [55]:
Event::run( system.execute )
index.php [86]:
require( system/core/Bootstrap.php )
Posts: 9283
Works fine for me so I can only guess you've fallen victim to Kohana's cascading file system and that some files have been renamed/deleted/rearranged and the upgrader doesn't deal with those. If you're using Git all of that would be handled.
Follow the tips for unpacking the code on this page (unpacking the code into a new directory, moving your var directory into the new directory, renaming the directories, etc)
http://codex.gallery2.org/Gallery3:Upgrading
That'll ensure that your code is current and doesn't have any old files hanging around.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 7
But I did not make the upgrade, I installed completely new system from the latest experimental code!
What could be the problem? I have tried several experimental versions during the past few days and problem remains the same.
Any comments/suggestions?
Posts: 9283
Double check that under your /themes/admin_wind/views directory that admin.html.php exists.
Right now, admin_wind is the only admin theme available so I know you have to be using that theme
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 13
The very same thing happens to me since about ten days. I made several fresh installs from git and the admin-section is gone as described above. The file /themes/admin_wind/views/admin.html.php does exist. The only thing i customized in the whole process - as always - was to add two lines to the .htaccess-file:
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
that's because my installation is hosted on shared 1&1 webspace.
Posts: 38
"Me too" but just on my 1&1 website (http://gallery.reeves-hall.net), not on another host for another site.
Uploaded current development build (gallery-gallery3-95ffb39.zip), unzipped it, moved the var directory over. Going into anything under the 'admin' drop-down causes a crash.
The directory "themes/admin_wind/views" contains the file "admin.html.php" (as well as two others)
A second crash (related? seems not) is when I click on an album called "Friends & Family" which is only visible to particular users, I get this crash:
~Andrew~
---
http://Reeves-Hall.net
http://WhitchurchForums.org.uk
Posts: 9283
Just saw a post by someone else. Please make sure that you do not have any 3rd party themes in your themes directory. Delete any themes that are not wind, night_wind or admin_wind
@AndrewRH, Make sure that your albums do not have & or () or other characters in the Internet Address. Edit the "Friends & Family" album for instance and remove any non-alpha numeric characters from the Internet Address. You can leave them in the directory, just not the internet address part.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 38
Thank you nivekiam...but it was a clean install from the gallery website without anything added, except copying my 'var' directory across.
Second, shouldn't gallery make sure that illegal characters are not allowed? I just fixed issue manually as you suggested. Thanks.
~Andrew~
---
http://Reeves-Hall.net
http://WhitchurchForums.org.uk
Posts: 9283
The current version do, but didn't earlier and things have changed along the way. If you tried to add those now, it would sanitize those characters properly.
So going to the admin section still crashes Gallery? Are you using PHP 5.2.3 or newer at 1&1?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 38
I host Wordpress on there too, and WP-ServerInfo plugin for it says this:
---
http://Reeves-Hall.net
http://WhitchurchForums.org.uk
Posts: 9283
Is there anything in your var/logs directory?
Could you PM me login details for your G3 install? I still can't duplicate this. I just installed a fresh install (not an upgrade) and can't get that error.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 9283
AndrewRH, got your PM and replied.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 9283
I got some detailed log info from AndrewRH.
I see a TON of entries like this:
2009-11-07 20:52:26 -05:00 --- alert: in gallery::user_menu
Which makes me think you guys (at least AndrewRH) has an old file lying around that has some debug code in it that has since been fixed.
Try this:
1) download the latest experimental version of Gallery3:
http://github.com/gallery/gallery3
2) unpack (unzip) that into a NEW directory on your server do NOT overwrite existing files
3) move your var directory into the new Gallery3 directory
4) rename/delete directories as you see fit to move the new "install" of gallery to where you old install was.
(see unpacking the code tips here for more details: http://codex.gallery2.org/Gallery3:Upgrading)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 38
Hi,
Your procedure is what I always follow - I rename my gallery directory to 'gallery-old' then I unpack the new experimental build into 'gallery'. Then I move the 'var' directory across.
Perhaps there is an issue in my database and/or var directory?
Shall I just wipe it all and try a fresh install (including empty database)?
~Andrew~
---
http://Reeves-Hall.net
http://WhitchurchForums.org.uk
Posts: 9283
I'd try a fresh install then and see if this still happens. It doesn't make any sense.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 13
I just made a fresh install from git - dang ... something went wrong (as described above). This problem does exist since several weeks and i have no idea what to do about it. Must have to do with 1&1 webspace and some code changes since the latest beta3. Does anybody have an idea to fix this?
Posts: 9283
Post a link to phpinfo:
FAQ: How do I create a phpinfo page?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 11
Hmm, I'm having the same issue also with a fresh install. I'm also using 1&1 as a web host.
I had an earlier version of the beta software working at one time. Unfortunately that is now gone.
Posts: 9283
Post a link to phpinfo:
FAQ: How do I create a phpinfo page?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 11
Here is the link for me:
http://www.chacaltana.com/phpinfo.php
Let me know if you need anything else.
Posts: 9283
Do you know what version of Apache is running on your server?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 11
Sorry, I do not know the version of Apache they are using. I'm fairly new to this web host but will poke around till I get an answer. The only Apache related info I have found is here:
http://www.faq.1and1.com/scripting_languages_supported/configuring_apache_server_using_htaccess/index.html
Posts: 9283
Looks like 1&1 is using an older version of Apache:
http://faq.1and1.com/miscellaneous/13.html
I don't know if that page it up to date or what, but G2 is only supported on Apache 2.2 or newer.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 11
Bah, just my luck. Glad the beta version was working when I need to post some family photos 2 months ago.
Thanks for the info.
Posts: 11
Yup, I just called them and they have verified that the Apache is at this version.
Posts: 9283
At which version? 1.3.34 or 2.2?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 11
The older version from that document you found. Time to find another web space provider. LOL I have to have my photos.
Posts: 13
Oh no, does that mean I cannot run G3 in this environment? - Strange thing is that it worked until a few weeks ago. G2 is also running smoothly on 1&1.
Posts: 9283
G2 was developed and supported under older environments. G3 is developed for the future
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 13
That's sad.
I liked to take part in testing G3. Hope this digital divide will be bridged some day.
Posts: 9283
Vote with your money, switch to a host who keeps up with the times.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 20
I had g3b3 running with some bugs, tried to upgrade but that didn't work, so I started a fresh/clean install from the latest code 11-16-2009 and the admin doesn't work. Could it be anything with directory permissions?
-jeff
Posts: 9283
There is no admin directory for G3.
Who's your host? Still at GoDaddy? You need to be running Apache 2.2 or newer.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 2
At least for 1&1, the problem is that in modules/gallery/helpers/theme.php in load_themes(), the method used to determine the path, which determines whether to add the admin theme or the normal theme to the Kohana modules doesn't work, so it always adds the normal theme and then can't find the admin views. PATH_INFO and kohana_uri are both empty. As a workaround, if you enable the mod_rewrite section in .htaccess, PATH_INFO stays empty, but kohana_uri has the correct value, and everything seems to work. There is another variable, ORIG_PATH_INFO, that has the correct value when the rewrite rules are off, but it is wrong when they are on.
On another server I checked (running Debian unstable), PATH_INFO is correct and kohana_uri empty with rewrite off, and PATH_INFO is empty and kohana_uri correct with rewrite on. ORIG_PATH_INFO is empty for both.
So, this patch works on both, with both rewrite on and off. I don't think it will break on any other setup (only if PATH_INFO is empty and kohana_uri is empty does it use ORIG_PATH_INFO - so if it still fails, it would have failed anyway):
--- theme.php.orig 2009-11-21 09:36:58.000000000 -0600 +++ theme.php.fix 2009-11-21 15:49:25.000000000 -0600 @@ -31,6 +31,9 @@ static function load_themes() { $input = Input::instance(); $path = $input->server("PATH_INFO"); + if (empty($path) && !$input->get("kohana_uri")) { + $path = $input->server("ORIG_PATH_INFO"); + } if (empty($path)) { $path = "/" . $input->get("kohana_uri"); }Posts: 9283
Which most likely has to do with 1&1 not using current software and still using Apache 1.3.x
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 2
Yep, probably so, and I'm aware it is an unsupported platform for g3, but I have no interest in changing hosts at the moment. I also found that setting cgi.fix_pathinfo = 0 in php.ini will fix it for rewrites off without patching anything (but breaks it for rewrites on), so that's another workaround, though just enabling the rewrite rules seems like the easiest way to go.
Kohana itself seems to deal with PATH_INFO/ORIG_PATH_INFO and then some without any trouble, in system/libraries/Router.php, but unfortunately load_themes() runs before that is initialized.
EDIT: ah, in beta 3 load_themes() ran after routing was initialized, and it used those functions, which explains why it used to work on 1&1.