With an advanced cache system in use the following line causes problems:
$form['#cache'] = TRUE;
(line 344)
With this set to TRUE you can end up with the following error:
No row selected. Please select one or more rows.
Setting the cache to FALSE resolves the issue and shouldn't cause much of a performance hit.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | views_bulk_operations-n540902.patch | 785 bytes | damienmckenna |
Comments
Comment #1
damienmckennaPatch attached to simply change the #cache setting to FALSE.
Comment #2
infojunkieI remember introducing this setting because VBO needed it. I will check in CVS what prompted this, and get back to you.
Comment #3
damienmckenna.. this particular change may not have been completely necessary, the server has been showing other issues.. some in relation to #541258: Option to not show tag vocabularies as they can be too long..
Comment #4
infojunkieIn your latest comment, are you referring to your patch or to the #cache setting?
If the issue is deeper than just setting #cache on or off, then please mark this issue as postponed until we find a reproducible scenario. Thanks!
Comment #5
damienmckennaComment #6
damienmckennaCould another event on the site be clearing the cache_form table and causing this to stop working?
Comment #7
infojunkieNot sure who you're asking. But were you able to trace the selection issue to a loss of cached form info?
Comment #8
sammys commentedI have extended the style plugin class and am trying to use an AHAH-powered element in a configurable action. It is unable to retrieve the plugin form parameter from cache because the plugin class definition isn't loaded before the call to form_get_cache(). From the ahah callback, manually calling
views_get_view(), set the display and init the style plugin the call to form_get_cache() successfully loads the cached parameter.I am yet to find a clean way to load the necessary plugins without the overhead of loading the entire view.
Comment #9
infojunkie@sammys, can you please explain how your comment relates to this issue?
Comment #10
infojunkieMight be related to #361871: VBO loses selection with caching module.
Comment #11
bojanz commentedVBO 6.x-1.x (and 6.x-1.11-beta1) no longer has $form['#cache'] = TRUE; Since pretty much everything changed since this (very old) issue has last been active, closing it. Reopen if it still fails with the new code.