beechit / fal_securedownload

An extension for TYPO3 CMS which adds secure downloads to FAL
36 stars 62 forks source link

more php errors #184

Open marclindemann opened 2 years ago

marclindemann commented 2 years ago

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1476107295: PHP Warning: Undefined array key "download_name" in /var/www/html/vendor/typo3/cms-core/Classes/Resource/ProcessedFile.php line 491 | TYPO3\CMS\Core\Error\Exception thrown in file /var/www/html/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php in line 137. Requested URL: https://xxx.localhost/index.php?eID=dumpFile&t=p&p=553&token=--AnonymizedToken--

-> filelist /vendor/beechit/fal-securedownload/Classes/Hooks/FileDumpHook.php:217 calls

Classes/Resource/ProcessedFile.php

public function getProperty($key) { // The uid always (!) has to come from this file and never the original file (see getOriginalFile() to get this) if ($this->isUnchanged() && $key !== 'uid') { return $this->originalFile->getProperty($key); } return $this->properties[$key]; }

adding plugin file_list to backend brings: An error occurred trying to process items for field "Folder" (PHP Warning: Undefined array key 0 in /var/www/html/vendor/beechit/fal-securedownload/Classes/Service/UserFileMountService.php line 48). After selecting a folder error is gone

FamousWolf commented 2 years ago

What PHP version and TYPO3 versions are you using?

marclindemann commented 2 years ago

8.0 and 11 LTS

FamousWolf commented 2 years ago

I can't reproduce these errors. Can you give some more information. What are the exact PHP and TYPO3 versions? What are your setting for error reporting in TYPO3? The latest release of file_list isn't compatible with TYPO3 11/PHP 8 yet. Are you using the master branch? Are you doing anything else to get these errors?

marclindemann commented 2 years ago

Hey, First error: TYPO3 "FIlelist" Module. When option "display thumbnails" is on.

Sorry, i mean not file_list but "falsecuredownload_filetree"

FamousWolf commented 2 years ago

To keep each issue about one thing, I've created a separate issue for the problem with thumbnails in the backend (#186).

This issue will be only about the error when creating a falsecuredownload_filetree plugin

FamousWolf commented 2 years ago

@marclindemann Can you check if the changes I made in pull request #187 fix the problems with the falsecuredownload_filetree plugin?