2.0.2 upgrade issue

RLRescue

Joined: 2005-08-08
Posts: 11
Posted: Sun, 2006-01-29 02:48

This is a short and sweet item (I hope)

Was running 2.0 RC 2 read the site down loaded the full 2.0.2 software, unzipped with winRAR and ran the update.

That went well, too well, as when I got to the step to run the updated software the system went back to the install program and started over. What do I have to delete/change to get to the upgraded software?

Paul

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2006-01-29 09:38

please read:
http://gallery.menalto.com/node/43543
("immediate" debug mode, versions in version.dat, module.inc and in the database)

 
RLRescue

Joined: 2005-08-08
Posts: 11
Posted: Sun, 2006-01-29 11:44

Sounds like the same problem here. Just keeps looping in the upgrade program. Additional details: I belived that the FTP software I used had the "force lowercase" set on the first try to upload from my XP to the server. That was corrected and the system cleaned up as best I could. Files were resent without that option set. Same result. I down loaded the "full" version for 2.0.2 fromthe server as directed in the instructions for an upgrade from 2.0 rc 2. I have also tried running the 2.0.2 install program from the install directory. It worked as well but when attempting to "start" gallery I get sent right back to the update program.

Additional details: I'm renting space on a security parinoid system so I do not have access to the command line. I can FTP to the system and access file thru the browser.

Core Module is :
class CoreModule extends GalleryModule {

function CoreModule() {
global $gallery;

$this->setId('core');
$this->setName($gallery->i18n('Core'));
$this->setGalleryVersion('2.0.2');

/* Don't forget to update CoreModuleExtras::upgrade and _prepareConfigUpgrade too! */
$this->setVersion('1.0.0.2');

I am using CP telcom out of duluth. If there are more questions about the server I have to call teck support for those answers.

as a footnote version 2.0 RC2 worked fine until I upgraded. is this something tied to the update or a missing file (uppercase vs lower?) It impresses me as being a some kind of flag/setting in a file that's getting missed somewhere. My programming skills have gotta rusty enough that I can't find it.

lesse, debug mode:

getParameter permissions.file for core plugin file_exists(/export/htdocs/redlightrescue.com/homepage/albums/cache/module/core/0/0/0.inc) file_exists(/export/htdocs/redlightrescue.com/homepage/albums/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc) Unimplemented: GalleryUrlGenerator file_exists(/export/htdocs/redlightrescue.com/homepage/albums/sessions/29a11913e69784811d640681833b357a) getParameter session.lifetime for core plugin getParameter session.inactivityTimeout for core plugin stat(/export/htdocs/redlightrescue.com/homepage/albums/sessions/29a11913e69784811d640681833b357a) file_exists(/export/htdocs/redlightrescue.com/homepage/albums/sessions/29a11913e69784811d640681833b357a) getParameter cookie.domain for core plugin getParameter cookie.path for core plugin getParameter default.language for core plugin Loading plugin core Class not defined, trying to include it. file_exists(/export/htdocs/redlightrescue.com/homepage/gallery2/gallery2/modules/core/classes/helpers/../../../../modules/core/module.inc) core plugin successfully instantiated file_exists(/export/htdocs/redlightrescue.com/homepage/albums/versions.dat) file(/export/htdocs/redlightrescue.com/homepage/albums/versions.dat, ) [1138534882] can't guarantee 5 -- extending! file_exists(/export/htdocs/redlightrescue.com/homepage/albums/cache/entity/0/0/5.inc) Loading plugin core core plugin successfully instantiated Check the version of the core plugin file_exists(/export/htdocs/redlightrescue.com/homepage/albums/cache/module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) The version of the core plugin is ok file_exists(/export/htdocs/redlightrescue.com/homepage/gallery2/gallery2/modules/core/classes/../../../modules/core/ShowItem.inc) getParameter id.rootAlbum for core plugin file_exists(/export/htdocs/redlightrescue.com/homepage/albums/cache/entity/0/0/7.inc) getParameter default.theme for core plugin Loading plugin matrix Class not defined, trying to include it. file_exists(/export/htdocs/redlightrescue.com/homepage/gallery2/gallery2/modules/core/classes/helpers/../../../../themes/matrix/theme.inc) matrix plugin successfully instantiated Check the version of the matrix plugin file_exists(/export/htdocs/redlightrescue.com/homepage/albums/cache/theme/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) getParameter default.theme for core plugin Unable to deactivate matrix, jumping to upgrader. Array ( [href] => upgrade/ )
Warning: Cannot modify header information - headers already sent by (output started at /export/htdocs/redlightrescue.com/homepage/gallery2/gallery2/modules/core/classes/Gallery.class:735) in /export/htdocs/redlightrescue.com/homepage/gallery2/gallery2/modules/core/classes/helpers/GalleryPluginHelper_simple.class on line 164

So that's what I have for now. Any help in there?

Paul

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2006-01-29 11:55

versions.dat and the version in the db? see the other thread that i've linked to.

 
RLRescue

Joined: 2005-08-08
Posts: 11
Posted: Sun, 2006-01-29 18:10

got some sleep, found the versions.dat file:

1.0.0.2
2.0.2

went looking for the g2_PluginParameterMap for row
pluginId = 'core', parameterName = '_version'

found there are 20 files with the text pluginid in them. can you be a little more specific about what file to look in? The most likely ones do not hace the line with it being equal to "core".

Paul

 
RLRescue

Joined: 2005-08-08
Posts: 11
Posted: Sun, 2006-01-29 18:31

Added thought as I look at this....It appears as if there is a issue with the "matrix" theme getting loaded. any way to change that to a different default?

Paul

 
RLRescue

Joined: 2005-08-08
Posts: 11
Posted: Sun, 2006-01-29 18:51

One more thing now that I'm actually awake and thinking clearly...

with the messages in the debug and the matrix thing above, I am getting the follwoing error during the update program in step 4:

Warning: array_keys() [function.array-keys]: The first argument should be an array in /export/htdocs/redlightrescue.com/homepage/gallery2/gallery2/upgrade/steps/UpgradeOtherModulesStep.class on line 82

Warning: Invalid argument supplied for foreach() in /export/htdocs/redlightrescue.com/homepage/gallery2/gallery2/upgrade/steps/UpgradeOtherModulesStep.class on line 82
Gallery Upgrader

Paul

 
RLRescue

Joined: 2005-08-08
Posts: 11
Posted: Mon, 2006-01-30 02:02

still struggling with this. have reloaded the theme and reloaded the full down load. working on a second pass at reinstalling now. still no luck....

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2006-01-30 02:14

please try the latest nightly snapshot of G2.1, thanks.

http://galleryupdates.jpmullan.com/#gallery2

 
RLRescue

Joined: 2005-08-08
Posts: 11
Posted: Mon, 2006-01-30 07:49

downloaded and unziped. Transferred to the destination machine. Started the install process.

It's complaining about two missing files (modules/core/test/data/localUploadDir/test[3].gif
modules/core/test/data/test[3].gif)

it went on to the install modules step. The 'matrix' module was the set theme in 2.0rc2 and the install program does not seem to like that too well. The install software for 2.1 allowed me to get to the login for the administrator like it was going to allow me to change the setting back to classic. It highlights an option to chage the theme but after selecting that highlighted option it then errored out. tried it again and got thru step 8 to step 9 then got this message:

Fatal error: Call to undefined method GalleryCoreApi::relativerequireonce() in /export/htdocs/redlightrescue.com/homepage/gallery2/gallery2/modules/newitems/module.inc on line 101

suggestions?

Paul

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2006-01-30 11:54

these 2 missing files are ok. our zip archive is actually missing them, don't know why. the tar.gz is ok. you don't need those 2 files, they are just for testing.
ignore the warning for missing files if only these 2 files are missing.

Fatal error: Call to undefined method GalleryCoreApi::relativerequireonce() in /export/htdocs/redlightrescue.com/homepage/gallery2/gallery2/modules/newitems/module.inc on line 101

there are no relativeRequireOnce calls anymore, just checked the file.
that means you didn't overwrite this modules/newitems/module.inc file.

didn't you get a warning for modified files??

 
RLRescue

Joined: 2005-08-08
Posts: 11
Posted: Tue, 2006-01-31 02:19

Probably did, but the message I most likely ignored because I figured that it was telling me that that was the number of files that it changed and not that they were not the proper files for the program. After reloading those files from the unzipped stuff I'll re-run the install and pay a little more attention to what else is not right and upload thos files too.

I'll keep you updated.

Paul

 
RLRescue

Joined: 2005-08-08
Posts: 11
Posted: Tue, 2006-01-31 02:46

Re-ran with the same results (see above error-mo modded files in the install now). Any chance I could copy the classic theme over the matrix theme to get past this or set the theme somewhere to classic to see if this would correct this?

Paul

 
RLRescue

Joined: 2005-08-08
Posts: 11
Posted: Tue, 2006-01-31 02:56

hold a sec. This is beginning to look like my FTP program didn't do what it was asked. I'll resend again and advise.

Paul

 
RLRescue

Joined: 2005-08-08
Posts: 11
Posted: Tue, 2006-01-31 08:08

up nd running. WOW, 2.5 days to upgrade to 2.0.2 from 2.0.0 and end up with a nightly build for 2.1.0 what an adventure.

The software is great and you efforts are appreciated. I just wish this would have been a little less painless. ;-)

thanks folks for the assistance. I would not have succeeded with out it.

Paul