FluidTYPO3 / vhs

TYPO3 extension VHS: Fluid ViewHelpers
https://fluidtypo3.org
Other
189 stars 228 forks source link

v:iterator.extract tries to log error, but fails #1667

Closed EagleT3 closed 2 years ago

EagleT3 commented 4 years ago

Call to undefined method TYPO3\CMS\Core\Utility\GeneralUtility::sysLog()

in /app/web/typo3conf/ext/vhs/Classes/ViewHelpers/Iterator/ExtractViewHelper.php line 128
            } else {
                $result = static::extractByKey($content, $key);
            }
        } catch (\Exception $error) {
            GeneralUtility::sysLog($error->getMessage(), 'vhs', GeneralUtility::SYSLOG_SEVERITY_WARNING);
            $result = [];
        }

        if (true === (boolean) $single) {

Yes, I read comments in this viewhelper. But please check: "GeneralUtility::sysLog..." and "GeneralUtility::SYSLOG_SEVERITY_WARNING..."

Thank you.

cjanody commented 4 years ago

I confirm the issue on TYPO3 v10 image

NamelessCoder commented 2 years ago

Solved a long time ago, by using LogManager if it exists.