Project

General

Profile

Actions

Bug #24887

closed

Context Menu of the pagetree is not shown anymore after update

Added by Matthias Bannert about 13 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-01-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

After an update from 4.4.6 to 4.5.0 the context menu of the pagetree is not shown anymore. The functionality is still there as it works for the List module or the Filelist.

No JS disabled no blockers shown.

PHP version is 5.3.5 ,
I have a solution... to this just want to post it here, because I saw that a couple of folks were lookin for solution on google.
(issue imported from #M17400)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #24394: "defaultUserTSconfig" does not workClosed2010-12-22

Actions
Actions #1

Updated by Matthias Bannert about 13 years ago

Older versions tend to have the following entry in their localconf.php:

$TYPO3_CONF_VARS['BE']['defaultUserTSconfig']='';

I looked at my localhost's test version of TYPO3 4.5, that did not sport this line. On the webserver this line was still carried along from previous versions. Until today it did so without any damage.

After removing this line, the context menu worked like it's supposed to.
Is this a proper way to handle the problem?

Actions #2

Updated by Stefan Galinski about 13 years ago

Seems that the current internal handling of the default user ts config must be changed. The current defaults must be merged with the configured ones from the localconf.php or extension configurations. However this would also affect the already existing options before 4.5 alongside the new tree and contextmenu related ones.

Actions #3

Updated by Steffen Kamper about 13 years ago

what we need is to respect that in update wizard. As the default string was empty before 4.5, this was never a problem. But now new defaults were added, and this has to be merged with existing configuration if any.

Actions #4

Updated by Ernesto Baschny about 13 years ago

Similar problem as with requiredExt (which was overwritten in some installations with improper values).

What we provide here is not only a "default" but a core setup which cannot be overwritten, because we might want to enhance that in future versions also.

So having a "similar" solution as requiredExt problem would be most appropriate:

1) defaultUserTSconfig = leave that to the user,
2) coreUserTSconfig = provided by the core, cannot be changed by localconf.php,
3) merge both together (via TypoScript array "merging") so that our basic configuration is always loaded in any case.

Any candidates for a patch? :) I would also like to see that in 4.5.x, because else we will carry on that problem forever (3 years at least).

Actions #5

Updated by Michael Bakonyi about 13 years ago

I've got the same problem here with two installations regarding the not appearing context menu but in my installations the mentionend CONF_VARS never was set.

Additionally the new "create page"-wizard doesn't show any icons but one "missing img"-icon. Moving pages + renaming them's working. Cleared all caches, re-installed t3-skin + all not necessary extensions but without success.

If you need additional infos please say so + say what exactly you need.

Actions #6

Updated by Ernesto Baschny about 13 years ago

Michael, go to the Admin Tools > User Admin and check the "TSconfig" of your users (tick the checkbox, click "Update"). You should see a tree of TSconfig for each user. Check if you have a branch called:

options.contextMenu. ...

If you don't then there is something in your installation that is overwritting $TYPO3_CONF_VARS['BE']['defaultUserTSconfig']. Grep for it in your localconf.php file and also in ext_localconf / ext_tables.php of your extensions, maybe you find something.

Actions #7

Updated by Michael Bakonyi about 13 years ago

Shame on me, there was a left over $TYPO3_CONF_VARS['BE']['defaultUserTSconfig'] indeed. Fixed now, thanks a lot!

BTW. seems like options.contextMenu doesn't lead to the mentioned behavior as this is set in my installation but the context menu is working anyway. So it's only the the "defaultUserTSconfig"-setting.

Actions #8

Updated by Matthias Bannert about 13 years ago

What if the install tool`d grep the localconf.php for any leftover, empty defaultUserTsconfig and delete the entry if empty?

Actions #9

Updated by Ernesto Baschny about 13 years ago

Actually, I just found out / remembered that we have an API for adding new default UserTS without touching the "defaultUserTSconfig", so I guess this is what the pagetree should also use:

t3lib_extMgm::addUserTSConfig(' ... ');

This should then be added at some central place like t3lib/tables.php

What do you think?

Actions #10

Updated by Steffen Gebert about 13 years ago

I would really prefer using such a call.. also for the default bookmark options.
I think sb. started with 4.3 or 4.4 to preset the value of defaultUserTSconfig and some people (including me..) jumped up that train.

Actions #11

Updated by Christian Kuhn about 13 years ago

Ah, that was the reason why my contextmenu didn't show up ;)

I think this is not a bug: in localconf.php one should set
$TYPO3_CONF_VARS['BE']['defaultUserTSconfig'] .= 'whatever = foo'; (mind the dot)
to append /overwrite config_default.php defaults.

The issue only just popped up now, since we started to use the text field from core side for defaults.

Actions #12

Updated by Alexander Opitz about 10 years ago

  • Status changed from Accepted to Needs Feedback
  • Target version deleted (0)
  • Is Regression set to No

Hi,

as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (6.1.7)?

Actions #13

Updated by Alexander Opitz almost 10 years ago

  • Status changed from Needs Feedback to Closed

No feedback within the last 90 days => closing this ticket.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions

Also available in: Atom PDF