I copied the latest nightly on top of my gallery2 installation. After upgrading it keeps kicking me back to step 1 even though at step 6 it reports that the upgrade was successfull and I can click that link to go to the gallery. Like said, it goes back to step 1 and all options I get then report no modules to update and the gallery2 core is allready up to date...
What went wrong??
Posts: 8601
find direct links to login/site admin in README.html.. can you get into site admin? does modules section or layouts&themes/all layouts show any modules/layouts that need upgrading?
Posts: 383
I get the screen asking for my username and password, but then it kicks me to the upgrading page
Posts: 8601
and after that what does site admin link do?
Posts: 19
I had the same problem. Was using a theme incompatiable with the new core. DUH!!
Changed back to Matrix via the database itself and all works fine (could have just upgraded the theme instead, but that seemed too easy at the time )
Posts: 383
I have the theme set to matrix, and set the layout to matrix too. Nothing changes
I am able to get into the admin area actually. I didn't get the captcha thing right away but I was logged in anyway because of a cookie.
Basically I can do anything except change themes and layouts; then it goes to the upgrade page. Now it also got worse, it doesn't accept the password I set in config.php I checked it with the actual value that is in that very file...
Arg... Would be a shame too loose the work I've done uptill now (2000 pics). I'll just wait for a nightly somehwere in the near future that doesn't do this....
Posts: 32509
@password:
the password in config.php is only for the upgrader. if you changed your admin password after the install, then the admin account has nothing to do with the password in config.php.
what exact g2 version are we talking about anyway?
upgrade from what version to what version?
Posts: 8601
do you have anything not from G2 release or cvs in layouts/ or themes/ or modules/ ?
Posts: 383
Well, I have my own layout in the layouts, but it isn't used. For the rest there is nothing that I didn't get with G2 or nothing G2 didn't create...
About the password, I know it is only for upgrading, and that is exactly where it isn't working
I copied the latest nightly on top of my gallery2 installation, that was yesterday so 01-june-2005 ;) .
Posts: 383
Can I in theory re-install gallery2 and just copy some tables back into the database, and the image-files into the images dir so that everything works?
Posts: 8601
what happens if you move your custom layout out of the layouts directory and try to access the site, or site admin, or site admin / layouts?
You can also put: print $pluginId;
right before: header('Location: ' .
in modules/core/classes/helpers/GalleryPluginHelper_simple.class to verify what module/layout is failing to deactivate and causing the jump to the upgrader.
Posts: 383
Will try that tomorrow.
I do have a question, why does it jump to the upgrader when a layout fails? couldn't it fall back on a default layout instead or something??
Posts: 8601
If it is processing a page and some part of that attempts to load a module or layout that is out of date it attempts to deactivate the plugin and continue processing the page.. you can then upgrade the plugin later via site admin. If for some reason an error occurs trying to deactivate the plugin then it jumps to the upgrader where you may be able to upgrade it while keeping it active. I don't know what plugin is failing to deactivate or why it is failing in this case.
Posts: 8601
I added some debug output when that redirect occurs.. update from cvs later today or get tomorrow's nightly snapshot.. then turn on immediate debug output in config.php when you access you site.. the redirect wil fail now, but you should see some output showing which plugin failed to deactivate.
Posts: 383
I will use that if the problem re-appears!
Installing the 04-June-2005 nightly on top of the problem fixed it. Now it is working again. I did however had to throw away the layout because the admin reported it was not compatible. But as it didn't really change anything I didn't mind...
Thanks for the help...