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.

CommentFileSizeAuthor
#1 views_bulk_operations-n540902.patch785 bytesdamienmckenna

Comments

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new785 bytes

Patch attached to simply change the #cache setting to FALSE.

infojunkie’s picture

I remember introducing this setting because VBO needed it. I will check in CVS what prompted this, and get back to you.

damienmckenna’s picture

Status: Needs review » Needs work

.. 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..

infojunkie’s picture

In 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!

damienmckenna’s picture

Status: Needs work » Postponed
damienmckenna’s picture

Component: Code » Core

Could another event on the site be clearing the cache_form table and causing this to stop working?

infojunkie’s picture

Not sure who you're asking. But were you able to trace the selection issue to a loss of cached form info?

sammys’s picture

I 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.

infojunkie’s picture

@sammys, can you please explain how your comment relates to this issue?

infojunkie’s picture

bojanz’s picture

Status: Postponed » Closed (works as designed)

VBO 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.