typo3-realurl icon indicating copy to clipboard operation
typo3-realurl copied to clipboard

Datahandler hook breaking copying of page trees.

Open rickymathew opened this issue 8 years ago • 2 comments

$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.

rickymathew avatar Jan 19 '17 04:01 rickymathew

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.

AnuBN avatar Jan 19 '17 06:01 AnuBN

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

JammoV avatar Mar 27 '17 10:03 JammoV