Project

General

Profile

Actions

Bug #66970

closed

Pagetree crashes after editing Page Properties

Added by Alexander Malicke almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2015-05-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

After editing Page Properties and saving the pagetree is not showing anymore. only Reload of the Page can fix it.

I get the following Error in error.log:
Call to a member function set() on a non-object in .../typo3_src/typo3/sysext/backend/Classes/Tree/Pagetree/ExtdirectTreeCommands.php on line 370

Without investigating to much i found a Change from Version 6.2.x to 7.3-dev in Line 347 of ExtdirectTreeCommands.php

6.2.x (line 348):
$userSettings = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\User\\ExtDirect\\BackendUserSettingsDataProvider');

7.3-dev (line 347):
$userSettingsController = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\UserSettingsController::class);

in both Versions in line 370:
$userSettings->set('BackendComponents.States.' . $stateId, $state);

The new $userSettingsController imho needs this line:
$userSettingsController->process('set','BackendComponents.States.' . $stateId, $state);

I changed this line and this fixed it for me.

Actions #1

Updated by Andreas Kienast almost 9 years ago

  • Status changed from New to Needs Feedback

It seems you're not on the latest master. This bug is fixed already: https://git.typo3.org/Packages/TYPO3.CMS.git/commit/9c62b598fcdbeb454159125106e550b93a395907

Actions #2

Updated by Wouter Wolters almost 9 years ago

  • Status changed from Needs Feedback to Closed

Thanks for reporting. This is solved in master already. Please update your installation.

Actions

Also available in: Atom PDF