Build question

View: New views
2 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

Re: Build question

by Jon Ciesla :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bharat Mediratta wrote:

> Jon Ciesla wrote:
>  
>> On a more serious note, pulling the .jars broke adding new items:
>>
>> Error (ERROR_BAD_PATH) : Invalid path:
>> modules/uploadapplet/ItemAddUploadApplet.inc
>>
>>     * *in*
>>       modules/core/classes/helpers/GalleryFactoryHelper_simple.class *at
>>       line* 171 (GalleryCoreApi::error)
>>     * *in*
>>       modules/core/classes/helpers/GalleryFactoryHelper_simple.class *at
>>       line* 201 (GalleryFactoryHelper_simple::newInstance)
>>     * *in* modules/core/classes/GalleryCoreApi.class *at line* 175
>>       (GalleryFactoryHelper_simple::newInstanceById)
>>     * *in* modules/core/ItemAdd.inc *at line* 601
>>       (GalleryCoreApi::newFactoryInstanceById)
>>     * *in* modules/core/ItemAdmin.inc *at line* 140
>>       (ItemAddView::loadTemplate)
>>     * *in* modules/core/classes/GalleryView.class *at line* 293
>>       (ItemAdminView::loadTemplate)
>>     * *in* main.php *at line* 465 (GalleryView::doLoadTemplate)
>>     * *in* main.php *at line* 104
>>     * *in* main.php *at line* 88
>>
>> Is there a workaround?  I know all work is currently aimed at Gallery3,
>> but I can't upgrade all supported Fedora releases to alpha code.  Thanks
>> in advance for any suggestions.
>>    
>
> I'm confused.. that code is referring to the uploadapplet module, which
> was pulled.  So I don't understand how there could still be factory
> mappings for it.  If you're doing a fresh install without that module,
> those mappings couldn't exist.  If you're upgrading a G2 that had the
> uploadapplet activated to one that no longer has the code for it, then
> in upgrade/steps/UpgradeOtherModuleStep.class on line 351 we call
> deactivate() on that plugin which in turn should call
> GalleryModule::deactivate and in
> modules/core/classes/GalleryModule.class on line 363 it should
> unregister any factory mappings.
>
> Can you tell me how you got to this error?  Which of the above scenarios
> was it?
>
> FYI, you can work around this problem by dropping any rows from
> g2_FactoryMap where g_implModuleId='uploadapplet' (or any other module
> which you've dealt with this way) and then deleting
> g2data/cache/module/_all/0/0/* and g2data/cache/module/uploadapplet
>
> -Bharat
>  
Essentially, the case in question is where the modules are removed by
the upgrade of the RPM, and they have not been deactivated or
uninstalled by the application beforehand.  If I write a script to call
deactivate on those plugins, should that do the trick?

Also, that work around worked, thanks!

--
in your fear, speak only peace
in your fear, seek only love

-d. bowie


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
__[ g a l l e r y - d e v e l ]_________________________

[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]

Re: Build question

by Bharat Mediratta :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jon Ciesla wrote:
> Essentially, the case in question is where the modules are removed by
> the upgrade of the RPM, and they have not been deactivated or
> uninstalled by the application beforehand.  If I write a script to call
> deactivate on those plugins, should that do the trick?

Do you force users to go through the Gallery 2 upgrader?  Because that
would fix the problem for you.  But if you crib from the installer code
(see the file/line in my prior reply) you can call deactivate yourself, too.

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
__[ g a l l e r y - d e v e l ]_________________________

[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]
< Prev | 1 - 2 | Next >