Project

General

Profile

Actions

Bug #53682

closed

Exception '$toolbarItem "shortcuts" must implement interface ...\ToolbarItemHookInterface'

Added by Jost Baron over 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend API
Target version:
Start date:
2013-11-15
Due date:
% Done:

100%

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

Description

The backend does not work with PHP 5.5.6 anymore. The exception thrown is this one:

$toolbarItem "shortcuts" must implement interface TYPO3\CMS\Backend\Toolbar\ToolbarItemHookInterface

To reproduce, create a new 6.2 installation using the wizard in the install tool, and run it on PHP 5.5.6.

This does not happen on PHP 5.5.5 or 5.4.22, I have not tested other versions. Ernesto Baschny pointed out that this problem occurred with PHP 5.3.3 too, maybe that info helps?

Link to the PHP bug tracker: https://bugs.php.net/bug.php?id=66107

The following classes are affected:

  • typo3/sysext/backend/Classes/Toolbar/ToolbarItemHookInterface
  • typo3/sysext/backend/Classes/Toolbar/ShortcutToolbarItem
  • typo3/sysext/backend/Classes/Toolbar/LiveSearchToolbarItem
  • typo3/sysext/backend/Classes/Toolbar/ClearCacheToolbarItem
  • typo3/sysext/backend/Classes/Form/Element/TreeElement.php
  • typo3/sysext/workspaces/Classes/ExtDirect/WorkspaceSelectorToolbarItem.php
  • typo3/sysext/opendocs/Classes/Controller/OpendocsController.php
  • typo3/sysext/sys_action/Classes/ActionToolbarMenu.php

To solve the issue temporarily you need to modify the constructor of those classes by removing the reference operator (&) of all referenced class parameters.

public function __construct(SomeClassNameHere &$backendReference = NULL)

public function __construct(SomeClassNameHere $backendReference = NULL)

Files

test.php (704 Bytes) test.php Chris Zepernick, 2013-11-27 00:09
php-5.5.6.patch (7.06 KB) php-5.5.6.patch Philipp Gampe, 2013-12-07 13:01

Related issues 7 (0 open7 closed)

Related to TYPO3 Core - Feature #17795: add the workspace selector to the cleaner backend toolbarClosedIngo Renner2007-11-15

Actions
Related to TYPO3 Core - Bug #54425: TYPO3\CMS\Frontend\ContentObject\ContentObject not foundClosed2013-12-15

Actions
Related to TYPO3 Core - Bug #55811: Namespace usage in 4.7Closed2014-02-09

Actions
Related to TYPO3 Core - Bug #62391: TYPO3 4.5.37 requires PHP 5.3Closed2014-10-22

Actions
Related to TYPO3 Core - Bug #33416: Exception thrown by tslib_content->getContentObject when referenced TS objects are emptyClosed2012-01-24

Actions
Has duplicate TYPO3 Core - Bug #53754: Failure in backend with php-5.5.6Closed2013-11-19

Actions
Has duplicate TYPO3 Core - Bug #53777: Exception: $toolbarItem "shortcuts" must implement interface backend_toolbarItem Closed2013-11-20

Actions
Actions

Also available in: Atom PDF