2.2RC1 Upgrade: Failure upgrading URL Rewrite

mikeage
mikeage's picture

Joined: 2005-01-23
Posts: 138
Posted: Mon, 2007-01-01 18:32

I have two G2 installations using a common codebase (multisite). The first upgrade went off without any problems... the second couldn't upgrade the URL Rewrite module. Clicking on upgrade gives me:

"Security Violation

The action you attempted is not permitted.

Back to the Gallery
Error Detail -
Error (ERROR_BAD_PARAMETER) : /home/mikeage/public_html/content/gallery-codebase/modules/updates/module.inc

* in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 94 (gallerycoreapi::error)
* in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 88 (gallerypluginhelper_simple::loadplugin)
* in modules/core/classes/GalleryCoreApi.class at line 207 (gallerypluginhelper_simple::loadplugin)
* in modules/rewrite/RewriteModuleExtras.inc at line 291 (gallerycoreapi::loadplugin)
* in modules/rewrite/module.inc at line 50 (rewritemoduleextras::upgrade)
* in modules/core/classes/GalleryModule.class at line 155 (rewritemodule::upgrade)
* in modules/core/PluginCallback.inc at line 236 (rewritemodule::installorupgrade)
* in modules/core/PluginCallback.inc at line 73 (plugincallbackview::handlecallback)
* in main.php at line 433 (plugincallbackview::renderimmediate)
* in main.php at line 94
* in main.php at line 83
* in main.php at line 3

System Information
Gallery version 2.2-rc-1
PHP version 4.4.4 cgi
Webserver Apache/1.3.37 (Unix) mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Database mysqlt 5.0.27-standard-log
Toolkits ImageMagick, Thumbnail, NetPBM, Gd
Operating system Linux lotis.site5.com 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:21:39 CDT 2006 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2007-01-01 23:01

from the 2.2-rc-1 feedback topic:

mindless wrote:
mikeage, did you extract 2.2-rc-1 on top of the existing codebase or remove the old and put 2.2-rc-1 in place? The error indicates the code for a 3rd party module is no longer there, so the site using that module got an error.

 
mikeage
mikeage's picture

Joined: 2005-01-23
Posts: 138
Posted: Tue, 2007-01-02 04:44

oh, right, forgot to answer that ;)

I extracted 2.2RC1 on top of 2.1.2.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2007-01-02 06:16

well, still check that the updates module is still there, i guess..

 
mikeage
mikeage's picture

Joined: 2005-01-23
Posts: 138
Posted: Tue, 2007-01-02 07:30

Oh... ok. I was thinking it was a problem with URL Rewrites, and totally forgot that I (used to) have the updates module installed. I'd deleted it from within one multisite, forgetting that another still used it (I now use a dynamic album instead).

Without re-installing it (since I don't recall which version I had), is there a way to remove whatever it left behind in the database, that the URL rewrite module is trying to update?

On another note, perhaps it should be clarified in the documentation (even though it is rather obvious, if one thinks about it) that install/activate/configure is per-G2 directory, but delete operates on the shared codebase

 
mikeage
mikeage's picture

Joined: 2005-01-23
Posts: 138
Posted: Tue, 2007-01-02 13:25

Fixed.

I reinstalled the updates module, upgraded URL Rewrite, then disabled and removed updates.

Thanks for your help!

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2007-01-02 16:05

absolutely.. you've hit upon one of our high priority items to fix before 2.2 final: http://codex.gallery2.org/index.php/Gallery2:2.2_Release_Blockers#Bug:_DP:_Multisites_can_break_one_another
..but we decided to fix for RC-2 and not hold up RC-1 any longer.. sorry this one bit you!

 
mikeage
mikeage's picture

Joined: 2005-01-23
Posts: 138
Posted: Wed, 2007-01-03 08:58

No biggie. It's actually quite obvious, but I wasn't thinking.

It seems that the fact that the URL Rewrites module can be broken by another module (indeed, any module can, but rewrites is probably the most dependant on other modules) is a more serious issue.