Project

General

Profile

Actions

Bug #73553

closed

Impossible to restore elements from recycler

Added by Jérémie Roulin almost 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Category:
Recycler
Target version:
Start date:
2016-02-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
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

Actions #1

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.

Actions #2

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;
    }

...

Actions #3

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
Actions #4

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

Actions #5

Updated by Andreas Fernandez over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF