tttpapi
tttpapi

Reputation: 897

TYPO3 error: "Declaration of tx_ttnews_categorytree::getTree() should be compatible with t3lib_treeView::getTree"

I copied a TYPO3 site from the server to localhost, TYPO3 version 4.5. I set db credentials in localconf and when I launch the site I got this error.

Runtime Notice: Declaration of tx_ttnews_categorytree::getTree() should be 
compatible with t3lib_treeView::getTree($uid, $depth = 999, $depthData = '',
$blankLineCode = '', $subCSSclass = '')

I found same problem with Google but no solution, or in a language I was not able to understand.
I tried to delete every cache I was able to find, both from files and from db.

EDIT

Upvotes: 1

Views: 2523

Answers (1)

Mateng
Mateng

Reputation: 3734

As mentioned in the comments, there might be several issues with your local installation.
Try this (edited):

  • Change your error handling bitmask to exclude strict errors, or switch off error reporting in localconf.php. Either:
    • $TYPO3_CONF_VARS['SYS']['exceptionalErrors'] = E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_WARNING ^ E_USER_ERROR ^ E_USER_NOTICE ^ E_USER_WARNING ^ E_STRICT; (change bitmask, source), or
    • $TYPO3_CONF_VARS['SYS']['displayErrors'] = 0; (off)

This should remove the message in the frontend. You can alternatively try these untested suggestions:

  • PHP version: For TYPO3 4.5, 5.2 or 5.3 is recommended. Try switching. TYPO3 4.5 requirements
  • If you don't need the extension tt_news, uninstall (Or update it - there is an issue with tt_news 3.2.x, maybe it's obsolete since 3.4.0)

Sources (German):

Upvotes: 6

Related Questions