typo3-realurl
typo3-realurl copied to clipboard
Datahandler hook breaking copying of page trees.
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php'['processDatamapClass']['realurl']
The above hook always process the function processDatamap_afterDatabaseOperations() (i.e on page copying,editing etc).But It should be avoidable on page copying.Otherwise it causes for the timeout issue on page tree copying.
I'm using TYPO3 v7.6.15 and realurl v2.1.5. I am facing issues in page copying. My instance handles a much bigger project which do have many page levels and deeper page trees. Recently I'd found trouble in copying large page trees. They aren't getting copied, literally. After an investigation, I tried with disabling realurl and found that copying was working perfectly. I guess, the hook mentioned by @rickymathew is causing the mishap.
Seems like there are parentheses missing in the expireCache function in DataHandler.php. Try changing: if ($status !== 'new' && $tableName == 'pages' || $tableName == 'pages_language_overlay') { into if ($status !== 'new' && ($tableName == 'pages' || $tableName == 'pages_language_overlay')) {
Also see: https://github.com/dmitryd/typo3-realurl/commit/738c1a94fae7a9fe4d7d88963232add2082a9083