[upgrade] Keeps upgrading

RwD
RwD's picture

Joined: 2005-01-09
Posts: 383
Posted: Wed, 2005-06-01 17:22

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??

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-06-01 18:09

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?

 
RwD
RwD's picture

Joined: 2005-01-09
Posts: 383
Posted: Wed, 2005-06-01 19:03

I get the screen asking for my username and password, but then it kicks me to the upgrading page

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-06-01 19:49

and after that what does site admin link do?

 
OwenF

Joined: 2005-04-16
Posts: 19
Posted: Wed, 2005-06-01 20:22

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 :) )

 
RwD
RwD's picture

Joined: 2005-01-09
Posts: 383
Posted: Wed, 2005-06-01 21:13

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....

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-06-01 22:23

@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?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-06-01 22:28

do you have anything not from G2 release or cvs in layouts/ or themes/ or modules/ ?

 
RwD
RwD's picture

Joined: 2005-01-09
Posts: 383
Posted: Thu, 2005-06-02 07:00

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 ;) .

 
RwD
RwD's picture

Joined: 2005-01-09
Posts: 383
Posted: Thu, 2005-06-02 07:01

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?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-06-02 14:49

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.

 
RwD
RwD's picture

Joined: 2005-01-09
Posts: 383
Posted: Fri, 2005-06-03 06:43

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??

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-06-03 16:03

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.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-06-03 16:20

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.

 
RwD
RwD's picture

Joined: 2005-01-09
Posts: 383
Posted: Mon, 2005-06-06 09:08

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...