This problem has arisen after upgrading from Drupal6.8 to Drupal6.15.

Sometimes - and I'm sorry I don't know under what circumstances - when I save a node, instead of showing the /node/[nid]/view I get the /node/[nid]/edit, and can then of course see (still) the Edit tab, giving the impression that the node was not saved (although inspecting view shows it was).

The same happens, sometime, when I use the Clone tab (from project Node Clone; on saving the cloned node I am offered the opportunity to clone the clone, and the Clone tab shows (instead of the view of the saved clone).

And it seems to happen sometimes when using the "add and reference" feature of Node Relationships, when saving a node that has been added "on-the-fly", compromising the return to the node reference field.

Glad for any help, Webel

Comments

webel’s picture

bumping. very glad for help on this quite annoying and distracting issue.

webel’s picture

bumping again. this one is really annoying me. it is not due to the Clone module, i've turned that off and it still happens. for some reason the edit form and edit tab sometimes shows after saving, and sometimes it shows for no apparent reason on viewing a page. it is particularly distracting for other users (who are not developers), whereas at least, being a developer, I can cope with it.

surely somebody else has suffered this strange behavior too. i have googled and search here over and over without success.

very glad for help.

Junro’s picture

Priority: Normal » Critical

Glad to see I'm not the only one to have thus f*** problem.

I really don't know where the problem come from...

Sometimes, I click on my home link and have the edit page of my home panel page.

Right now, I can't have my page /admin/build/modules/. I've got /admin/build/modules/uninstall instead.

Junro’s picture

@webel

Are you using Smart Tabs module?

webel’s picture

@junro

Very glad for support here, because this one is really annoying and time consuming.

> Are you using Smart Tabs module?

Yes, it is required by Module Grants Monitor.
I am disabling them both and will report back.

Junro’s picture

Project: Drupal core » Module Grants
Version: 6.15 »
Component: node system » Code

Yep, Smart Tabs did this.

You can read on the project page:

Q: I use a really out there theme whose tab appearance gets altered by Smart tabs. What can I do?
A: Most likely your theme overrides menu_local_tasks() in some way, using calls to menu_primary_local_tasks(). In your theme folder under sites/all/themes do a search for menu_primary_local_tasks and menu_secondary_local_tasks. You'll probably find these in the template.php file, inside a function named phptemplate_menu_local_tasks() or THEMENAME_menu_local_tasks(). Simply replace menu_primary_local_tasks() by menu_primary_local_tasks_smart_tabs() and menu_secondary_local_tasks() by menu_secondary_local_tasks_smart_tabs() and you should be good to go.
At Site configuration>>Smart tabs untick the first checkbox "Allow Smart tabs to control tab behaviour" and press Save. To make sure the registry gets refreshed visit Site building >> Modules.

Maybe it could help.

@ Rick

I moved this issue in Module Grants because when I did it for Smart Tabs, Smart Menu, I had a "Smart Tabs, Smart Menu is not a valid project".

RdeBoer’s picture

Project: Module Grants » Smart menus Smart tabs
Version: » 6.x-1.5
Priority: Critical » Normal

Yes, judging by the symptoms, I think Smart Tabs may have something to do with this.... And maybe, as you suggested, the theme is the culprit.
However, I feel the quickest way to a fix is what is also mentioned on the Smart tabs project page and that is to put the offending URL or group of URLs (using the wildcard character *) on the page exclusion list.
Please log-off and log back in after you've done this to clear your session data.

webel’s picture

I disabled Smart Tabs some days ago, and have not experienced this problem since.

RdeBoer’s picture

@webel
Thanks for the update. By disabling Smart tabs altogether you won't have the Accessible content filtering tabs, as provided by Module Grants Monitor. Did you try the workaround mentioned above in #7? This allows you to have Smart tabs on selected pages only.

codewatson’s picture

Same issue with various menus. Seems to be that the first primary link of any menu tab, regardless of what it is, will always redirect back to the last other tab you were on. ie, if you have "view | edit | revisions" and click on "revisions" it works fine. if you click on "edit" it works fine. if you click on "view" you are redirected back to either "edit" or "revisions", depending on which one you were on last.

RdeBoer’s picture

Thank for chipping in dwatson...
So I tried to reproduce this, but cannot on my system... I am not denying that the problem exists.
See also #778058: Cannot get to admin/user/user/list after creating new user, which I suspect may be a duplicate of this issue, judging by its symptoms.
Can anyone think of any other modules or conditions that might be in play? For starters do all of you have the module Module Grants Monitor enabled, or does this also happen without that module being active?

RdeBoer’s picture

Title: Edit tab shows after save (and Clone tab shows after save) instead of View » When clicking first tab (i.e. View), Smart tabs redirects to last clicked tab (e.g Edit)
Assigned: Unassigned » RdeBoer

Changing title.
The following all seem to be manifestations of the same underlying issue, which unfortunately I haven't been able to reproduce yet in 6.x.1.5:
#778058: Cannot get to admin/user/user/list after creating new user
#755134: Smart tabs 'stick'
#707782: When clicking first tab (i.e. View), Smart tabs redirects to last clicked tab (e.g Edit) (this issue).

Marking other issues as duplicate and will be tracking all progress here.
Some code was put in 6.x.1.5 to prevent the reported symptoms. I suspect there's interference with another module or not everyone is on 6.x.1.5.

webel’s picture

< For starters do all of you have the module Module Grants Monitor enabled, or does this also happen without that module being active?

Also without.

BTW am not ignoring your workaround suggestions, will report back on that, and am tracking this.

webel’s picture

BTW am using a Zen-based theme.

RdeBoer’s picture

@webel
Have you tried temporarily switching to a core theme (preferable NOT Garland), e.g Bluemarine ?

monotaga’s picture

Also experiencing this same issue as webel (also on a zen-based theme).

I've just disabled Module Grants Monitor and Smart Tabs.

Any updates?

RdeBoer’s picture

@monotaga, #16

Could you please add some details regarding your symptoms?
Should I assume what you see is, what the title of this issue says: "when clicking first tab (i.e. View), Smart tabs redirects to last clicked tab (e.g Edit)".
Does this happen:
a) only when "Smart tabs" module (version 6.x-1.5) is enabled (see also my comments in #12)
b) only when you enable this Zen-based theme of yours? Do the symptoms persist when you switch to, say, the core Bluemarine theme?

Are your symptoms identical to dwatson's, in #10 ?

As a workaround, have you tried going to Administer >> Site configuration >> Smart tabs and added node/*/edit to "Pages to exclude" ?

harlekinx’s picture

same problem here.
i am using drupal 6.17, revisioning.module, module grants, smart tabs and a zen-based theme.
smart tabs keep getting stuck on the edit-tab as soon as i first select this tab.

*EDIT*
workaround #17 seems to fix the issue

RdeBoer’s picture

Status: Active » Needs work

Good to learn the workaround fixes the problem. But the problem shouldn't be there in the first place. Will look into it deeper.

RdeBoer’s picture

Status: Needs work » Closed (fixed)

Cannot reproduce.
Also the configuration mentioned in #17 has been confirmed as a solution.
Closing as fixed.

RdeBoer’s picture

Status: Closed (fixed) » Fixed

Finally! Reproduced and fixed. Checked into repository. Available as dev version.
With Extended Path Aliases installed (which I always have) there was and is no problem.

It was not a theme issue. It had to do with the fact that the older version could not distinguish between the (aliased) View link as it appears on the tab and that same link in other contexts, eg the memory contexts. The new version appends a subtle '?x' to the href on the View tab allowing the module to bypass the fancy footwork that applies in other contexts for the same link.

If you have Extended Path Aliases enabled the '?x' is not necessary and won't appear.

Status: Fixed » Closed (fixed)

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

ailgm’s picture

Version: 6.x-1.5 » 6.x-1.7
Status: Closed (fixed) » Active

I am encountering this problem with the current dev version, without Extended Path Aliases installed.

On administration screens that have tabs, the first choice is often linked to the upper level menu item.

For example, for Input Formats, there are two tabs:
- List (linking to /admin/settings/filters)
- Add input format (linking to /admin/settings/filters/add)
Another example is the Users screen:
- List (linking to /admin/user/user)
- Add user (linking to /admin/user/user/create)

After adding an input format or a user, the List option is redirected to the Add page.

RdeBoer’s picture

@ailgm, #23
Thank you for providing a reproduceable test-case. Hope to look into it soon.

RdeBoer’s picture

Status: Active » Closed (won't fix)

This one was in dev and should now be in 6.x-1.8.
I won't be doing support for this module anymore. D6 is approaching end of life...

RdeBoer’s picture

Status: Closed (won't fix) » Closed (fixed)