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.
After enabling AF trying to view a forum leads to a 500 error, and the following message in the log:
[Wed Mar 30 15:26:36 2011] [error] [client 195.186.55.199] PHP Fatal error: Call to undefined method stdClass::preview() in /var/www/drupal7/sites/all/modules/advanced_forum/includes/core-overrides.inc on line 221, referer: https://mensa.kri.st/forum
What is the problem here?
Comment | File | Size | Author |
---|---|---|---|
#2 | fix-views-api-issue-1110688-2.patch | 662 bytes | jemond |
Comments
Comment #1
troky CreditAttribution: troky commented#1104832: Strict warning: Non-static method views_many_to_one_helper
Install latest Views and CTools.
Please try to use search function before posting duplicate issue.
Comment #2
jemond CreditAttribution: jemond commentedI ran into this problem using the latest stable releases of this module, Views, and CTools. Changing the Views API version from 3 alpha to just 3 seemed to do the trick. Patch attached.
Comment #3
jemond CreditAttribution: jemond commentedI've deployed this to my production site, and it seems to have addressed the issue.
Comment #4
jemond CreditAttribution: jemond commentedThis patch did not in fact fix the issue. I'm debugging this more today and will update shortly.
Comment #5
jemond CreditAttribution: jemond commentedI was using the latest stable releases of Views and CTools. I have confirmed that updating to the dev snapshots of Views and CTools did not fix this issue. I'm still looking.
Comment #6
jemond CreditAttribution: jemond commentedAlso, I think this comment in 1104832 no longer applies as it appears that the 'file' key is no longer supported.
Comment #7
jemond CreditAttribution: jemond commentedWell, after much more troubleshooting the patch may indeed be the fix. I didn't properly flush Redis on my production machine, so that may have explained why the issue persisted. I'm going to leave the patch on production for a few days to see if the issue is truly fixed and will update back here.
Comment #8
jemond CreditAttribution: jemond commentedComment #9
jemond CreditAttribution: jemond commentedThe patch didn't work. I'm totally stumped.
Comment #10
jemond CreditAttribution: jemond commentedCross-posted to StackExchange with no luck: http://drupal.stackexchange.com/questions/38231/what-is-causing-views-to...
Comment #11
troky CreditAttribution: troky commentedAccording to your post(s) at StackExchange it looks like problem is in Views caching mechanism.
#853864: views_get_default_view() - race conditions and memory usage
#1102252: Caching of defaults
Comment #12
jemond CreditAttribution: jemond commentedYes, looking that way.