Issue Bug Closed

#37409Page Module unuseable if resource is missing due to exception

Kay Strobach 05/23/12, 08:39 updated 02/20/14, 17:19

Description

Uncaught TYPO3 Exception

t3lib_file_exception_FileDoesNotExistException thrown in file
D:\devenv\mowesII\www\t3-trunk\t3lib\file\Driver\AbstractDriver.php in line 407.

12 t3lib_file_Driver_AbstractDriver::getFile("uploads/pics/a2.jpg")

D:\devenv\mowesII\www\t3-trunk\t3lib\file\Storage.php:
00861:   */
00862:  public function getFile($identifier) {
00863:   return $this->driver->getFile($identifier);
00864:  }
00865: 

11 t3lib_file_Storage::getFile("uploads/pics/a2.jpg")

D:\devenv\mowesII\www\t3-trunk\t3lib\file\Factory.php:
00312:   }
00313: 
00314:   return $this->getStorageObject($storageUid)->getFile($fileIdentifier);
00315:  }
00316: 

10 t3lib_file_Factory::getFileObjectFromCombinedIdentifier("uploads/pics/a2.jpg")

D:\devenv\mowesII\www\t3-trunk\t3lib\file\Factory.php:
00355:   } else {
00356:     // only the path
00357:    return $this->getFileObjectFromCombinedIdentifier($input);
00358:   }
00359:  }

9 t3lib_file_Factory::retrieveFileOrFolderObject("uploads/pics/a2.jpg")

D:\devenv\mowesII\www\t3-trunk\t3lib\class.t3lib_befunc.php:
01629:     if ($theFile) {
01630:      $fileName = trim($uploaddir . '/' . $theFile, '/');
01631:      $fileObject = t3lib_file_Factory::getInstance()->retrieveFileOrFolderObject($fileName);
01632: 
01633:      $fileExtension = $fileObject->getExtension();

8 t3lib_BEfunc::thumbCode(array, "tt_content", "image", "../../../")

D:\devenv\mowesII\www\t3-trunk\typo3\class.db_list.inc:
00440:   */
00441:  function thumbCode($row, $table, $field) {
00442:   return t3lib_BEfunc::thumbCode($row, $table, $field, $this->backPath);
00443:  }
00444: 

7 recordList::thumbCode(array, "tt_content", "image")

D:\devenv\mowesII\www\t3-trunk\typo3\sysext\cms\layout\class.tx_cms_layout.php:
01388:      if ($row['CType'] == 'textpic' || $row['CType'] == 'image') {
01389:       if ($row['image']) {
01390:        $out .= $this->thumbCode($row, 'tt_content', 'image') . '
';
01391:        if ($row['imagecaption']) {
01392:         $out .= $this->linkEditContent($this->renderText($row['imagecaption']), $row) . '
';

6 tx_cms_layout::tt_content_drawItem(array, boolean)

D:\devenv\mowesII\www\t3-trunk\typo3\sysext\cms\layout\class.tx_cms_layout.php:
00417: 
00418:        $isRTE = $RTE && $this->isRTEforField('tt_content', $row, 'bodytext');
00419:        $innerContent = '
' . $this->tt_content_drawItem($row, $isRTE) . '
';
00420: 
00421:        $singleElementHTML .= '
' .

5 tx_cms_layout::getTable_tt_content(1)

D:\devenv\mowesII\www\t3-trunk\typo3\sysext\cms\layout\class.tx_cms_layout.php:
00116:      break;
00117:     case 'tt_content':
00118:      return $this->getTable_tt_content($id);
00119:      break;
00120:    }

4 tx_cms_layout::getTable("tt_content", 1, "")

D:\devenv\mowesII\www\t3-trunk\typo3\class.db_list.inc:
00281: 
00282:      // Finally, render the list:
00283:     $this->HTMLcode.=$this->getTable($tableName, $this->id, implode(',',$fields));
00284:    }
00285:   }

3 recordList::generateList()

D:\devenv\mowesII\www\t3-trunk\typo3\sysext\cms\layout\db_layout.php:
01065: 
01066:     // Generate the list of elements here:
01067:    $dblist->generateList();
01068: 
01069:     // Adding the list content to the tableOutput variable:

2 SC_db_layout::renderListContent()

D:\devenv\mowesII\www\t3-trunk\typo3\sysext\cms\layout\db_layout.php:
00501:     $body = $this->renderQuickEdit(); // QuickEdit
00502:    } else {
00503:     $body = $this->renderListContent(); // All other listings
00504:    }
00505: 

1 SC_db_layout::main()

D:\devenv\mowesII\www\t3-trunk\typo3\sysext\cms\layout\db_layout.php:
01337: 
01338: $SOBE->clearCache();
01339: $SOBE->main();
01340: $SOBE->printContent();
01341: 

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.