After update from 2.26 to 2.30 the dropdown menu at every space only shows "subscribe". All other options like configuring the settings of the space are gone. This is for group managers and user 1.

I checked all organic group settings and didn't find anything.

Comments

nchase’s picture

I have rebuilt permissions - that didn't help.

nchase’s picture

Title: after update to 2.30 "configure" dropdown menu only shows "subscribe" » after update to 2.30 "configure" dropdown menu only shows "subscribe" for group admins
nchase’s picture

I can still access the /node/x/group site. But it is not within the menu

Argus’s picture

Which dropdown menu are you referring to?

TobiasKa’s picture

Same problem for me, the drop down menu under the "gear icon". It now only show "subscribe"...
in 2.26 there was a lot of options...

nchase’s picture

@Argus, I'm referring to the "gear icon" - the one TobiasKa is describing.

katrien_w’s picture

Same problem, contextual tabs only show option 'follow'.
No overrides, all features were reverted.

mpotter’s picture

Category: Support request » Bug report

I cannot reproduce this on a fresh install, nor on our internal upgraded servers.

I assume you have run updates.php (drush updb) and also cleared caches?

Can you also try going into contextual tab settings and just re-saving that page?

Argus’s picture

As an addition to #8: try running update.php multiple times, I have noticed it sometimes takes multiple runs to complete all updates.

mpotter’s picture

Also wonder if it's related to this #2334813: Edit button disapeared

uaziz’s picture

Tried the following with no luck.
- Re-Saved contextual tabs
- Cleared Caches
- drush updb (multiple times).

Any other suggestions?

ericmulder1980’s picture

Same issue here when upgrading from 7.x-2.26 to 7.x-2.30. Perhaps it is good to know that the installation was previously upgraded from 7.x-1.x to 7.x-2.x. Also the default language for the site is Dutch, not English.

Have tried all suggestions above but no results.

mpotter’s picture

was previously upgraded from 7.x-1.x to 7.x-2.x

Not sure what you mean by that since there wasn't any 7.x-1.x version.

Seems like this is only happening for people doing an upgrade who have non-English being used. I can only test and debug a clean install of Open Atrium, so if somebody could help post a procedure that shows the problem starting with a new install that would be helpful. If you are using non-English then you are probably enabling modules that don't normally come with OA that might be causing this interaction problem.

nchase’s picture

I have no 2nd language enabled - and never had.

  1. Saving the contextual tabs
  2. drush cc all
  3. drush updb

Still no dropdown menu.

Here is whats in my contextual tabs

user*:Edit|Edit profile,icon-pencil
node/*/clone/confirm:View|Cancel,icon-remove
node/*/edit:View|Cancel,icon-remove
View
Edit,icon-pencil
Members,icon-user
groups:Group permissions,icon-user
List,icon-th-list
mpotter’s picture

Nchase: Can you visit the /node/123/edit page where 123 is the node id of the page you are viewing? Can you verify that your OG Permissions have the "Administer Group" permission set for Adminstrator on this page admin/config/group/permissions/node/oa_space.

nchase’s picture

mpotter: Yes, I can visit /node/123/edit. The administer group permission is set.

mpotter’s picture

As I mentioned in #13, I need a procedure for this on a fresh install. I still cannot reproduce this. The Edit button is controlled by Drupal. All Contextual Tabs does is move tabs between buttons or the Gear menu. So there is still something different between your site and a fresh install that I don't understand that is preventing the edit tab from being shown. None of our upgraded sites here show the problem. I'm afraid you'll need to get a local developer to look into debugging this one. I can't do anything else to help debug this from here.

jbrundle’s picture

An addition to this thread here. I upgraded a site from 7.x-2.30rc1 to 7.x-2.30 (stable). I created 3 spaces. The gear icon at the upper right is not really functional. If I roll over it with my mouse, the small (yellow) popup says "Configure". But there is apparently no menu now to do that. The larger (white) box that appears says "Subscribe" only. No other menu items.

I attach some screenshots from 7.x-2.26 and 7.x-2.30 installs

jbrundle’s picture

andrimont’s picture

I have the same issue with the gear icon "configure" that only shows "subscribe" …
It happened the same way after the upgrade to the stable version of OA.
Plus not sure if related : all content disappeared from viewer (but still content exists in database). I have a feeling that it is linked to the configuration of languages that are impossible to do now.

andrimont’s picture

As mention by Mike otter on #13
Yes it seems that it is only happening for people doing an upgrade who have several languages activated.
This is probably the reason why all content disapeared…

nchase’s picture

I already pointed out that I only have the default language enabled. The problem must be somewhere in the update process or within a certain configuration setting.

andrimont’s picture

Ok thanks Nchase.

mpotter’s picture

So, the only change made recently to contextual_tabs is this one:

http://cgit.drupalcode.org/contextual_tabs/commit/?id=aaadc35

Could somebody who has this problem undo that commit (you can just change the one line of code back manually) and let me know if that fixes it. Have no idea why this would have any effect, but it's the only change I can see.

andrimont’s picture

I remove the commit but still nothing came back in the gear.

That's it Mike, yes everything came back. Thanks a lot.
In the file contextual_tabs.module in the contextual_tabs module :
This

    // remove links with empty data
    foreach ($data['links'] as $key => $value) {
      if (!isset($value['data']) || empty($value['data'])) {
        unset($data['links'][$key]);
      }
    }

should be :

    // remove links with empty data
    foreach ($data['links'] as $key => $value) {
      if (isset($value['data']) && empty($value['data'])) {
        unset($data['links'][$key]);
      }
    }
jbrundle’s picture

OK, I removed the commit and nothing changed at my site. Still just have a menu that says "Subscribe". I am using the default language (which is English for me). I didn't have the problem with data disappearing, however. No content problems on my site. Just that one issue.

Argus’s picture

@jbrundle: cleared cache afterwards?

jbrundle’s picture

updated php and cleared cache, yes

mpotter’s picture

You say you have English as the default language, but have you enabled *any* other modules on your site?

So, the next severe way to debug this is to disable both oa_contextual_tabs and contextual_tabs and clear cache. That should restore the default Drupal tabs across the top of the page. You might need to switch your theme to something like Garland or Bartik to see them. But we need to find out if the Edit tab actually gets displayed for your node on a normal Drupal site. As I said, Contextual Tabs just rearranges the existing tabs and shouldn't ever delete them.

Another thing to try is to use Inspect Element in Chrome on your gear icon and see if the other links are in the menu but just being hidden on display somehow by your theme.

Finally, be sure you are doing all of the testing using the Drupal Admin account so it's not just a permission issue.

jbrundle’s picture

Mike, I'd be happy to send you links to my code base and db so you can look at it yourself. I have the facebook statuses running as you know. that is really the only other set of modules that i have running. let me know if you want the db and code tarfile

update: no difference if I log in as drupal admin

mpotter’s picture

Sure, that would be helpful. Probably won't get to it till next week but at least I could debug it more easily.

jbrundle’s picture

Will do.

nchase’s picture

mpotter: disabling oa_contextual_tabs and contextual_tabs shows all the tab entries that should appear in the dropdown menu.

It doesn't matter if I'm user 1 or someone else: They dropdown menu only shows subscribe.

I used the Chrome inspector to check the elements but there is only one li element within the dropdown-menu and thats the flag-wrapper.

nchase’s picture

ok, #25 is working for me! Thanks!

uaziz’s picture

- I just did a fresh install of 2.30
- Created a space and am only seeing the subscribe option when clicking the gear.

I also inspected the dropdown and its only showing one li element for Subscribe.

cgove’s picture

Same issue on my upgraded site. #25 worked for me as well.

mpotter’s picture

Ack, andrimont please do *not* edit older replies like you did. Always post your update and new information to a NEW reply. Otherwise we lose the history of the issue and it makes the following replies really confusing to new people reading this thread.

In any case, thanks for confirming the problem. We'll get that fix into the 2.31 version.

mpotter’s picture

Also, while #25 fixes this issue (good to know), it doesn't solve the issue that change was originally added for which is to remove the gear icon when there are no drop-down options available. So I still need to work on this a bit more.

mpotter’s picture

Could somebody who was having this problem where #25 fixed it for them do the following:

1) Enable the Devel module (drush en -y devel)
2) Edit the contextual_tabs module right above where you made the change in #25 and add:

dpm($data)

That should go just about the foreach statement in #25. Then refresh your page and you should see debug output in the messages area of the page. Fully expand everything (you can click on rows to expand them) and post a screen shot. Thanks!

mpotter’s picture

OK, actually, only do whats in #39 if the following change doesn't work.

Instead of in #25, change

// remove links with empty data
    foreach ($data['links'] as $key => $value) {
      if (!isset($value['data']) || empty($value['data'])) {
        unset($data['links'][$key]);
      }
    }

to this:

// remove links with empty data
    foreach ($data['links'] as $key => $value) {
      if (is_array($value) && array_key_exists('data', $value) && empty($value['data'])) {
        unset($data['links'][$key]);
      }
    }

Let me know if this fixed the problem.

ttaylor249’s picture

The change in #40 works for me (and also makes the gear icon show up again in user Dashboard pages).

cgove’s picture

Yep, working here as well.

mpotter’s picture

Status: Active » Fixed

OK good. Committed this to contextual_tabs and will get it into 2.31. Which looks like Monday at this point.

jbrundle’s picture

I also confirm that this patch works. Installed it, updated php and cleared caches. Full Gear dropdown menu now available.

jbrundle’s picture

Thanks to the P2 team!

nchase’s picture

Thank you!

Status: Fixed » Closed (fixed)

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