Closed (fixed)
Project:
Advanced Forum
Version:
7.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2011 at 01:40 UTC
Updated:
8 Apr 2011 at 14:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
troky commentedIt seems you are using some old Views version. Use search... this issue has been discussed already.
Comment #2
Aonoa commentedI have been using the latest stable version; 7.x-3.0-alpha1. I can try the latest development version instead.
Best regards,
Ao
Comment #3
troky commentedPlease try. Alpha1 has too many bugs that affect AF.
Comment #4
Aonoa commentedAfter changing to views-7.x-3.x-dev, AF became broken.. Opening /forum to see the forum list is fine, but when I click to open one of them, such as "General discussion" I get this:
Fatal error: Call to undefined method stdClass::preview() in /var/www/example.com/drupal-7.0/sites/all/modules/advanced_forum/includes/core-overrides.inc on line 221
Best regards,
Ao
Comment #5
troky commentedInstalled latest Views build and got the same error. Views now don't recognize AF views.
I must investigate this...
Comment #6
troky commentedFixed and committed this patch.
Comment #7
Aonoa commentedI'm still getting this error when using the latest dev snapshot from today, I assume it has the patch?
Best regards,
Ao
Comment #8
Aonoa commentedOps
Comment #9
michelleDepends on when you downloaded it. The new snapshot was generated less than 30 minutes before you posted here.
Michelle
Comment #10
Aonoa commentedI'm quite sure I got the right one, though, just to be on the safe side I re-downloaded it now and the result is the same.
Best regards,
Ao
Comment #11
troky commentedCache cleared? Check in Structure->Views if there are AF related views in the list.
Also, try to disable/enable AF, clear views cache...
Comment #12
Aonoa commentedCache was cleared. Cleared it again to be safe. Disabling and re-enabling AF does not help.
There are no AF related views in Structure -> Views.
Best regards,
Ao
Comment #13
troky commentedI had the same problem when installed latest Views dev release but after I applied above patch everything returned to normal.
Problematic line was in advanced_forum.module, advanced_forum_views_api() function:
Check again if this line exists.
Comment #14
troky commentedAlso, install the latest dev CTools.
Comment #15
Aonoa commentedAha, latest CTools dev snapshot did the trick. Thank you! =)
Best regards,
Ao
Comment #16
troky commentedpfff... glad to hear that. I was desperate already :)