[Solved][Updates] module error after upgrading to 2.0.2

Fjelsten

Joined: 2005-10-15
Posts: 66
Posted: Thu, 2006-01-26 07:30

I wanted to update my Updates module so I DLed Mindless' update to 0.2.6. I got an error from my 2.0 installation (something with APIs not being the correct version).

Then I thought: well, I'd better upgrade to 2.0.2 and I did that (manully copying the files). I ran through the updater and all was fine (except the upgrade modules bit - which said I could do it afterwards). When I started Gallery, there was still problems with Updates 0.2.6 (wrong API again). Then I downgraded to Updates 0.2.4 but now that does not work.

Please help me to sort this out.

Updates error printout below:

Quote:
Error Detail -Error (ERROR_BAD_PARAMETER) : /home2/fjelsten/public_html/gallery/modules/core/classes/../../../modules/updates/ShowUpdates.incin modules/core/classes/GalleryView.class at line 158 (gallerystatus::error)in main.php at line 262 (galleryview::loadview)in main.php at line 87in main.php at line 80System InformationGallery version 2.0.2PHP version 4.3.10 apacheWebserver Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.10 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7aDatabase mysql 4.0.25-standardToolkits SquareThumb, GdOperating system Linux dallas3.incognitonetworks.com 2.4.21-32.ELsmp #1 SMP Fri Apr 15 21:17:59 EDT 2005 i686Browser Opera/9.0 (Windows NT 5.1; U; en)

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Thu, 2006-01-26 09:32

runs perfect on my 2.1 setup with the latest module

Gallery version = 2.1.0- core 1.0.19
PHP version=5.1.2 apache2handler
Webserver=Apache/2.2.0 (Win32) DAV/2 PHP/5.1.1 mod_ssl/2.2.0 OpenSSL/0.9.8a
Database=mysql 5.0.18-nt-log
Gallery-URL=http://lf-photodesign.de

 
Fjelsten

Joined: 2005-10-15
Posts: 66
Posted: Thu, 2006-01-26 09:39

2.1? The newest release is 2.0.2 n'est-ce pas?

I prefer not to use CVS versions since it makes upgrading difficult.

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Thu, 2006-01-26 10:39

yes - that's the CVS version.

due to the incorrect API version, I assume you don't see an uninstall link for the module?
One way could be to copy back the (wrong) .26 archive, change module.inc to fake the API requirements and
instantly uninstall it. Replace the folder with a clean, old .24 version and try to reinstall.

Gallery version = 2.1.0- core 1.0.19
PHP version=5.1.2 apache2handler
Webserver=Apache/2.2.0 (Win32) DAV/2 PHP/5.1.1 mod_ssl/2.2.0 OpenSSL/0.9.8a
Database=mysql 5.0.18-nt-log
Gallery-URL=http://lf-photodesign.de

 
Fjelsten

Joined: 2005-10-15
Posts: 66
Posted: Thu, 2006-01-26 16:27

I have tried that without succes:

Deleted 0.2.4, installed 0.2.6 with a changed API requirement, deactivated and uninstalled that, installed and activated 0.2.4.

Quote:
Error Detail -
Error (ERROR_BAD_PARAMETER) : /home2/fjelsten/public_html/gallery/modules/core/classes/../../../modules/updates/ShowUpdates.inc
in modules/core/classes/GalleryView.class at line 158 (gallerystatus::error)
in main.php at line 262 (galleryview::loadview)
in main.php at line 87
in main.php at line 80
System Information
Gallery version 2.0.2
PHP version 4.3.10 apache
Webserver Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.10 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a
Database mysql 4.0.25-standard
Toolkits SquareThumb, Gd
Operating system Linux dallas3.incognitonetworks.com 2.4.21-32.ELsmp #1 SMP Fri Apr 15 21:17:59 EDT 2005 i686
Browser Opera/9.0 (Windows NT 5.1; U; en)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2006-01-27 00:01

maybe try going into your db and clearing out everything for module 'updates' in g2_PluginMap and g2_PluginParameterMap. i'm pretty sure that's every trace of this module in the db. then go to site admin / maintenance and run the flush db cache task. now put the 0.2.4 code in place and you should be able to install the module again.

 
Fjelsten

Joined: 2005-10-15
Posts: 66
Posted: Fri, 2006-01-27 13:18

Dang! No difference. Just tried. It is properly removed from the DB on uninstallation. Any other suggestions?

Peter
http://gallery.fjelsten.dk/v/peter/

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2006-01-27 15:31

Can you describe exactly what happens when you try to install/activate/use the module? Right now the updates module doesn't appear to be active.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2006-01-27 15:44

Also post the URL you are trying.. that error indicates you tried something like g2_view=ShowUpdates instead of g2_view=updates.ShowUpdates

 
Fjelsten

Joined: 2005-10-15
Posts: 66
Posted: Fri, 2006-01-27 15:55

There is no problems installing/uninstalling (i.e. no errors).

It was deactivated before, now I've reactivated it: http://gallery.fjelsten.dk/main.php?g2_view=updates.ShowUpdates.

I have URL-rewrite activated but this link should work regardless of URL-rewrite.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2006-01-27 20:57

then i'd make sure all the files in modules/updates are there and the files and dirs have the correct permissions.

 
Fjelsten

Joined: 2005-10-15
Posts: 66
Posted: Sun, 2006-01-29 20:49

Thanks. It was permissions. I had copied the Updates folder to my HDD and moving it back to the webserver apparently changed some permissions. Thanks for your help. Looking forward to Gallery 2.1 :-)