Bug #73553
closedImpossible to restore elements from recycler
100%
Description
Hi there,
Since TYPO3 7.6.3 release it is no more possible to restore elements once they have been deleted.
Can anyone tell me why? :)
Kind regards,
Jérémie
Updated by Thomas Kieslich almost 9 years ago
I see:
Fatal error: Call to undefined method TYPO3\CMS\Recycler\Utility\RecyclerUtility::getPidOfUid() in /Users/thomask/Aktuell/www-mamp/projects/ccp/typo3-sources/typo3_src-7.6.3/typo3/sysext/recycler/Classes/Domain/Model/DeletedRecords.php on line 339
some things changed in this files January, but i cant find a solution.
Update:
the getPidOfUid in RecyclerUtility.php was included on 14.01. but it is not included in TYPO3 7.6.3
changes in DeletedRecords.php on 14.01. to but included in TYPO3 7.6.3
quick fix: i take the complete recycler from todays git master and so far i see it works with recursive restore to.
Updated by Robert Breithuber over 8 years ago
i can also confirm that the Recycler is broken in 7.6.3 :(
to fix it, you can also add the function to sysext/recycler/Classes/Utility/RecyclerUtility.php:
... /** * Helper class for the 'recycler' extension. */ class RecyclerUtility { /** * Get pid of uid * * @param int $uid * @param string $table * @return int */ public static function getPidOfUid($uid, $table) { $db = static::getDatabaseConnection(); $res = $db->exec_SELECTquery('pid', $table, 'uid=' . (int)$uid); if ($res !== false) { $record = $db->sql_fetch_assoc($res); return $record['pid']; } return 0; } ...
Updated by Andreas Kienast over 8 years ago
- Category set to Recycler
- Status changed from New to Accepted
- Assignee set to Andreas Kienast
- Is Regression changed from No to Yes
- Sprint Focus set to Remote Sprint
Updated by Gerrit Code Review over 8 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46795
Updated by Andreas Fernandez over 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 626d3ad9f112b2e34cbe68d6d0cc2e87535af76c.