I've been getting a **flood** of the same error in the dblogs whenever I access some of our site's Views. For example, all at 12:30 AM, there are 3 pages of the following log:
Notice: Undefined property: views_handler_field_field::$original_value in views_handler_field->render_text() (line 1118 of /path-to-drupal/sites/all/modules/views/handlers/views_handler_field.inc).
The same thing happened at 1:11 AM. I went back a bunch at 6:56 PM, 9:30 AM, etc.
After looking at enough of them, it appears the errors are only coming from one kind of View: They are table style Views, listing some node content types we created to represent events, filtered by specific taxonomy terms, so they contain date fields as well as images and the field listing all taxonomy term for the node.
I don't know if this error is being generated by a bug in some elements of the View, or if it's an corruption of some kind specific to these Views (it's possible these Views were all cloned from the first of them -- I don't recall -- so perhaps if there's corrupted data in one, it transferred to the others when cloned). I can't find any errors in the code, and none are reported by Views when I save the view.
This is causing a *big* performance hit for our site each time we hit a View and it writes all these logs, so I'm hoping someone can tell me how to fix it.
I'll add a comment showing the view export data.
Comments
Comment #1
somatics commentedOh, also, I've seen a few other posts about this kind of error, and they may be related:
For example, I have Drupal Commerce installed, but we have a working store with thousands of records in it, so I cannot uninstall and reinstall it like it says eliminated the error in this post -- http://drupal.org/node/1074440
And, I have had Product Display Manager installed like in this one -- http://drupal.org/node/1552458 -- but it's not currently enabled.
I've also found a few posts about this error that claim a Dev update fixed it, but those posts were from a year ago, and I am running the latest Dev version from a few days ago.
Comment #2
somatics commentedHere's one of the Views I described above that is causing the error:
Comment #3
damiankloip commentedThis is a dupe of #1548240: this->original_value does not always exist in views_handler_field->render_text() (line 1118? The error is due to the original value not always being set if there are no results. There is a patch in that issue too.
Comment #4
damiankloip commentedComment #5
somatics commentedOkay, thanks! I can see that is very recent -- I hadn't seen that one yet. Has this or this patch going to be committed to the Dev release?
If, say, this is going to be rolled into Dev tonight, I would prefer to wait until then rather than patch it -- to avoid all sorts of issues, including falling out of sync with standard code. I've been updating Views to latest Dev regularly, and if this fix isn't going to be in there without a patch, I need to know that so I don't reverse the fix with a new Dev update.