I noticed that I was getting a dead page on any view using the Global: View Result Counter field.
My error logs had:
PHP Fatal error: Call to undefined function dsm() in /home/klat/web/sites/all/modules/contrib/views/handlers/views_handler_field_counter.inc on line 29
I assume that dsm is misused shorthand for drupal_set_message.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 621532_views_handler_field_counter.patch | 871 bytes | matt2000 |
| #1 | views-counter-fix.patch | 854 bytes | dawehner |
Comments
Comment #1
dawehnerFast fix.
Comment #2
matt2000 commentedYup, that's a wrapper from devel module. Looks like debugging that didnt get cleaned up.
This patch removes the unnecessary and problematic line.
Comment #3
vacilando commentedReviewed, the #2 patch fixes the issue.
Comment #4
ermannob commentedI can confirm both patches are good.
Comment #5
dawehnerAh by the way, this was fixed in the dev version of views 2.
Comment #6
dagmarWe should mark this as fixed, isn't?
Comment #7
dawehnerThe patch wasn't applied to views-3 yet.
http://drupal.org/files/issues/views-counter-fix.patch
Comment #8
merlinofchaos commentedFixed in 3.x as well.