Fatal error: Call to a member function validate() on a non-object in /var/www/vhosts/XXX.com/httpdocs/sites/all/modules/views/includes/admin.inc on line 895
When adding a feed display, you see "Missing style plugin", but you can fix it. However, when you click "Save" above error occurs. Site breaks.
Version 6.x-2.6
Drupal 6.13
Comments
Comment #1
Anonymous (not verified) commentedThe included frontpage2 view has a pre-made Feed display. It works. But when you edit it and save that view, again the above error also occurs. All caches were cleared before testing this.
Comment #2
Anonymous (not verified) commentedThe problem seems to be APC cache on my web server! This APC, I think, caches the Views form, but loses some data in the process. Not good, deactivating APC for now. Does someone have the same experience?
Comment #3
merlinofchaos commentedneeds review means there is a patch.
Comment #4
Anonymous (not verified) commentedProblem solved, this was the reason (my own fault):
I was experiencing problems with APC cache and some imagefield forms, so I built a custom module with:
Thinking this would solve my problem, it breaks the inner workings of Views. It was related to this http://drupal.org/node/500646
Comment #5
digi24 commentedI am reopening this issue, although I do not know, who the culprit is. The combination of views and imagefield isn't that rare. Is anyone else experiencing these issues? I would like to find out, at which point to address this problem.
My observations:
1. Right now, imagefield does not work reliably without the cache set to true as mentioned in #500646: An unrecoverable error occurred. Form missing from server cache.
2. I actually do not see the connection to APC, I guess people are referring to the general caching mechanisms in Drupal. Excluding the probably relevant views files (views_ui, views/includes/admin.inc) from APC did not solve the problem.
3. Inserting debug output into imagefield_module_alter does not show that it is called before saving a view.
4. Reloading the error page multiple times successfully saves the view. This may be related to the spawning of a new php process or hitting a certain cache
Comment #6
digi24 commentedComment #7
hefox commentedduplicate of #585886: Call to a member function validate() on a non-object views/includes/admin.inc on line 895 perhaps?
Comment #8
dawehnerThanks