Bug #73553
closed
Impossible to restore elements from recycler
Added by Jérémie Roulin almost 9 years ago.
Updated about 6 years ago.
Sprint Focus:
Remote Sprint
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
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.
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;
}
...
- 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
- Status changed from Accepted to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF