When enabling the Facebook API from Drupal for Facebook, the Module filter doesn't work. Both the tabs and the text filter option stop working, making the Module filter module useless.

*Update: It also breaks the views ui and things like fieldsets when opened inside the overlay

Disabling the overlay(core) module apparently provides a workaround for those facing the same issue. The problem only occurs when looking at the module page inside the overlay.

Comments

greenskin’s picture

Project: Module Filter » Drupal for Facebook
Version: 7.x-1.7 » 7.x-3.3-beta4
Dave Cohen’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

I'd be surprised to learn the problem is with modules/fb. That said, if it is and someone submits a patch I'd consider it.

One thing drupal for facebook does is include the module's real name (i.e. fb.module) in the .info file. I do this specifically to make the module easier to find on Drupal's ridiculously bad module admin page.

greenskin’s picture

In Module Filter's settings page (/admin/config/user-interface/modulefilter) try disabling "Use URL fragment". If this fixes the issue then perhaps Drupal for Facebook can programmatically disable this setting when viewing the site within Facebook?

Dave Cohen’s picture

I don't think he's viewing the site inside facebook. I think he's saying when fb.module is simply enabled, it somehow breaks Module Filter. It's hard for me to imagine how.

It's hard to know what "...the tabs don't work" even means.

marajah’s picture

Dear Dave,
firstly: thank you for the great work!

I have the same problem: when i enable drupal for facebook module (just the basic fb.module) and after having done all yhe steps that are required in the README.txt, the module filter module have a problem in activating the filters. When you click on the tabs, they just don't work. You also can't search for modules using the search field. It shows all the module installed, without filtering them (so it's unuseful).
I'm using Drupal 7.15 and the last Module Filter and Drupal for Facebook versions, available at this moment.

But there is a workaround to this strange behaviour: you must not use the overlay layout.
In other words, if you open
www.yoursite.com/admin/modules
it will work like a charm.
If, instead, you will use (in eample):
www.yoursite.com/user#overlay=admin/modules
it won't work as said before.

Yes, it's only a workaround, but i really hope it can help you in help us to solve this thread; maybe it can cause problems in other area of the site.

Thank you again.
Alessandro Bronzo

Dave Cohen’s picture

If someone figures out the problem, I'm happy to consider a patch. Although I suspect from what I've read here the problem is in the module filter module.

greenskin’s picture

This is an issue between Drupal for Facebook module and the Overlay module. Module Filter breaking is a byproduct of fb.js having an uncaught TypeError on line 67 when the Overlay module is enabled. Disable Module Filter and you still get that JavaScript error. Disable Overlay and the error goes away.

greenskin’s picture

Title: Drupal for Facebook Breaks Module filter tabs » Drupal for Facebook breaks when used with Overlay
Status: Postponed (maintainer needs more info) » Active
Dave Cohen’s picture

Version: 7.x-3.3-beta4 » 7.x-3.x-dev
Status: Active » Fixed

I thought this was fixed. Still broken in .dev or beta5 build???

greenskin’s picture

I don't know about the beta5. I was using beta4 when I was debugging.

danon1981’s picture

Thanks for replies, to everyone who responded, apologies for crappy initial problem description. Think I mixed something up since I also submitted the issue to the Module Filter issue's.

I editted the problem description to make it more understandable(I hope) and added the suggested workaround from #5 marajah.

Thanks!!

danon1981’s picture

Issue summary: View changes

Bette problem description for readers of this issue

Dave Cohen’s picture

Can you confirm this is still broken in the latest .dev build? I believe it is fixed.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Extra info on views ui also breaking when Drupal for facebook is installed.