Issue Bug Closed

#95078 TypeError in MoveElementController when using sqlite

Daniel Siepmann 09/02/21, 11:57 updated 09/07/21, 07:31

Description

Steps to reproduce:
  1. Use SQLite
  2. Go to List Module
  3. Click on “…” Button to open further actions
  4. Click on “Display change history / Un-do”

An PHP TypeError is thrown:

(1/1) TypeError

Typed property TYPO3\CMS\Backend\Controller\ContentElement\MoveElementController::$page_id must be int, string used

typo3/sysext/backend/Classes/Controller/ContentElement/MoveElementController.php line 114

        $assigns['makeCopyChecked'] = (bool)$this->makeCopy;
        $assigns['makeCopyUrl'] = GeneralUtility::linkThisScript(['makeCopy' => !$this->makeCopy]);
        // Get page record (if accessible):
        if ($this->table !== 'pages' && $this->moveUid === $this->page_id) {
            $this->page_id = $elRow['pid'];
        }
        $pageInfo = BackendUtility::readPageAccess($this->page_id, $this->perms_clause);
        $assigns['pageInfo'] = $pageInfo;
        if (is_array($pageInfo) && $backendUser->isInWebMount($pageInfo['pid'], $this->perms_clause)) {

Reviews 1