Project

General

Profile

Actions

Bug #28686

closed

menu generation for shortcuts on translated pages broken.

Added by Björn Pedersen over 12 years ago. Updated over 9 years ago.

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

0%

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

Description

The shortcut change (https://review.typo3.org/#change,3413) breaks translated sites menus.

Catchable Fatal Error: Argument 1 passed to t3lib_div::implodeAttributes() must be an array, boolean given, called in /home/webmaster/frm2/typo3_src_git/typo3/sysext/cms/tslib/class.tslib_menu.php on line 1504 and defined in /home/webmaster/frm2/typo3_src_git/t3lib/class.t3lib_div.php line 1918 (More information)

t3lib_error_Exception thrown in file
/home/webmaster/frm2/typo3_src_git/t3lib/error/class.t3lib_error_errorhandler.php in line 105.

35 t3lib_error_ErrorHandler::handleError(4096, "Argument 1 passed to t3lib_div::implodeAttributes(…slib/class.tslib_menu.php on line 1504 and defined", "/home/webmaster/frm2/typo3_src_git/t3lib/class.t3lib_div.php", 1918, array)

/home/webmaster/frm2/typo3_src_git/t3lib/class.t3lib_div.php:

01916:   * @return string Imploded attributes, eg. 'bgcolor="red" border="0"'
01917:   */

01918:  public static function implodeAttributes(array $arr, $xhtmlSafe = FALSE, $dontOmitBlankAttribs = FALSE) {

01919:   if ($xhtmlSafe) {
01920:    $newArr = array();

34 t3lib_div::implodeAttributes(boolean, 1)

/home/webmaster/frm2/typo3_src_git/typo3/sysext/cms/tslib/class.tslib_menu.php:

01502:  function setATagParts() {
01503:   debug($this->I,'I');

01504:   $this->I['A1'] = 'I['linkHREF'],1).' '.$this->I['val']['ATagParams'].$this->I['accessKey']['code'].'>';

01505:   $this->I['A2'] = '';
01506:  }

reason:

linkHREF
is empty for the translated page, as the type and linkmode/target are not inherited anymore ( the alternative page lange entry has still type standard). Changing the alternative page language entry to shortcut solves this problem, but old sites may break.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #32406: Menus not working in translated pages for type "shortcut"Closed2011-12-08

Actions
Actions

Also available in: Atom PDF