Module Activate/Configure/Etc not working

iamcanadian2222
iamcanadian2222's picture

Joined: 2007-01-17
Posts: 24
Posted: Thu, 2008-01-03 02:22

With the updated version of Gallery2, when I click on any of the links in Site Admin > Plugins there is a javascript error thrown (in Firebug) and the links don't work. By work I mean the option doesn't follow through directly. Upon refreshing the page, the action will have gone through. This isn't an issue for most things, except for when you need to configure an item (like URL Rewrite) which won't go through.

For example. If I activate an item, it turns green like it's going to activate, but I get no message at the top of the screen and the item just stays green with the same text. But if I refresh the page (F5) the option will have gone through and will now show "deactivate" and subsequently the option (if capable) will show in the navigation.

This was causing URL rewrite to not work though - and when I was activating it from the backend it was configuring the URL rewrite for gallery non-embedded. I got around it by click Configure in the backend, then copying and pasting the URL in the embedded version and it let me set it up. (?g2_view=core.SiteAdmin&g2_subView=rewrite.SetupRewrite)

There seems to be some sort of javascript conflict or something going on. The error showing in firebug is:

syntax error
http://www.jslyon.com/gallery2/modules/core/templates/AdminPlugins.js
Line 121

With an output of:
var result =

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Thu, 2008-01-03 03:42

Does it work standalone?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
iamcanadian2222
iamcanadian2222's picture

Joined: 2007-01-17
Posts: 24
Posted: Thu, 2008-01-03 04:26

Yes, works fine standalone.