Hello,

Strict warning: Non-static method views_many_to_one_helper::option_definition() should not be called statically, assuming $this from incompatible context in views_handler_argument_many_to_one->option_definition() (line 36 of /var/www/example.com/drupal-7.0/sites/all/modules/views/handlers/views_handler_argument_many_to_one.inc).

This has begun appearing in my logs after enabling AF. =)

Best regards,
Ao

CommentFileSizeAuthor
#6 af7_1104832.patch35.29 KBtroky

Comments

troky’s picture

Status: Active » Closed (duplicate)

It seems you are using some old Views version. Use search... this issue has been discussed already.

Aonoa’s picture

I have been using the latest stable version; 7.x-3.0-alpha1. I can try the latest development version instead.

Best regards,
Ao

troky’s picture

Please try. Alpha1 has too many bugs that affect AF.

Aonoa’s picture

After 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

troky’s picture

Priority: Normal » Critical
Status: Closed (duplicate) » Active

Installed latest Views build and got the same error. Views now don't recognize AF views.

I must investigate this...

troky’s picture

StatusFileSize
new35.29 KB

Fixed and committed this patch.

Aonoa’s picture

Priority: Critical » Normal
Status: Active » Closed (duplicate)

I'm still getting this error when using the latest dev snapshot from today, I assume it has the patch?

Best regards,
Ao

Aonoa’s picture

Priority: Normal » Critical
Status: Closed (duplicate) » Active

Ops

michelle’s picture

Depends on when you downloaded it. The new snapshot was generated less than 30 minutes before you posted here.

Michelle

Aonoa’s picture

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

troky’s picture

Cache cleared? Check in Structure->Views if there are AF related views in the list.
Also, try to disable/enable AF, clear views cache...

Aonoa’s picture

Cache 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

troky’s picture

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

    'file' => 'views.inc',

Check again if this line exists.

troky’s picture

Also, install the latest dev CTools.

Aonoa’s picture

Aha, latest CTools dev snapshot did the trick. Thank you! =)

Best regards,
Ao

troky’s picture

Status: Active » Fixed

pfff... glad to hear that. I was desperate already :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.