Denis Milosavljevic
Denis Milosavljevic

Reputation: 405

TYPO3 - TMENU error

I am building menu in TYPO3 template - setup.

This is typoscript code from template - setup:

menuSecondary = HMENU
menuSecondary {
    special = directory
    special.value = 11

    wrap = <ul>|</ul>

    1 = TMENU
    1 {
      NO = 1
      NO {
        linkWrap = <li>|</li>
      }
    }
  }

The problem is, this 1 = TMENU, since I have defined 1 = TMENU I got this error in browser:

"[] operator not supported for strings"

Any help will be greatly appreciated!

Upvotes: 1

Views: 144

Answers (1)

Daniel
Daniel

Reputation: 7036

This is a bug with TYPO3 7.6.15 and PHP 7.1 (Bug report). It was already fixed and will be included in the next release 7.6.16 that is scheduled for Tuesday, February 28th, 2017 (source).

Until the release you can apply the patch manually. You find the patch here.

Also keep in mind that TYPO3 7LTS does not officially support PHP 7.1 but TYPO3 8LTS will (source).

Upvotes: 3

Related Questions