Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If a view hasn't already been cached, the function correctly updates the cache with the 'count' and 'countquery' values, but doesn't incorporate them in the current $info variable for the current call. This can result in there being no values to substitute and an invalid query still containing '%s' is returned causing errors the first time the user hits the view or after a clear of the views cache.
Installing the viewtheme.module showed this up for me; it does an early count.
Attached is a patch which seems to have sorted the problem for me.
Comment | File | Size | Author |
---|---|---|---|
views_6.patch | 1.11 KB | adrianr | |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedMarking patches as patches will get them looked at sooner. That can save weeks =)
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedFixed in -dev. Thanks for the submission!
Comment #3
(not verified) CreditAttribution: commented