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?

CommentFileSizeAuthor
#2 fix-views-api-issue-1110688-2.patch662 bytesjemond
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

troky’s picture

Status: Active » Closed (duplicate)

#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.

jemond’s picture

Version: 7.x-2.x-dev » 7.x-2.0
Status: Closed (duplicate) » Active
FileSize
662 bytes

I 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.

jemond’s picture

Status: Active » Needs review

I've deployed this to my production site, and it seems to have addressed the issue.

jemond’s picture

Status: Needs review » Needs work

This patch did not in fact fix the issue. I'm debugging this more today and will update shortly.

jemond’s picture

I 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.

jemond’s picture

Also, I think this comment in 1104832 no longer applies as it appears that the 'file' key is no longer supported.

jemond’s picture

Well, 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.

jemond’s picture

Status: Needs work » Needs review
jemond’s picture

Status: Needs review » Active

The patch didn't work. I'm totally stumped.

jemond’s picture

troky’s picture

Status: Active » Closed (works as designed)

According 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

jemond’s picture

Yes, looking that way.