Issue Bug Closed

#104719call to missing method ProcessedFile::process

Franz Holzinger 08/23/24, 19:35 updated 12/02/25, 14:33

Description

The front end leads to a PHP error message:

Call to undefined method TYPO3\CMS\Core\Resource\ProcessedFile::process()
in /home/path/typo3_src-13.2.1/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php line 940

if ($altUrl) {
$url = $altUrl . (($conf[‘JSwindow.’][‘altUrl_noDefaultParams’] ?? false) ? ‘’ : ‘?file=’ . rawurlencode((string)$imageFile) . $params);
}
$processedFile = $file->process(ProcessedFile::CONTEXT_IMAGECROPSCALEMASK, $conf);
$JSwindowExpand = $this->stdWrapValue(‘expand’, $conf[‘JSwindow.’] ?? []);
$offset = GeneralUtility::intExplode(‘,’, $JSwindowExpand . ‘,’);
$newWindow = $this->stdWrapValue(‘newWindow’, $conf[‘JSwindow.’] ?? []);
$params = [

It is this call:

$processedFile = $file->process(ProcessedFile::CONTEXT_IMAGECROPSCALEMASK, $conf);

Call backtrace:

in /path/typo3_src-13.2.1/typo3/sysext/frontend/Classes/ContentObject/ImageContentObject.php line 109

if ($linkWrap !== ‘’) {
$theValue = $this->linkWrap($theValue, $linkWrap);
} elseif ($conf[‘imageLinkWrap’] ?? false) {
$originalFile = urldecode($imageResource->getFullPath());
$theValue = $this->cObj->imageLinkWrap($theValue, $originalFile, $conf[‘imageLinkWrap.’]);

Reviews 3

Files 3

History 915

  1. Garvin Hicking commented and changed category status New Needs Feedback <span data-processor="relativetime" data-value="2024-08-23T23:31:12+00:00" > 08/23/24, 23:31 </span>

    Please provide the full stacktrace and especially what kind of image you use/pass here (I guess via typoscript?) and details like if it is a remote or local file.
    Thank you!

  2. Franz Holzinger commented and changed attached debug-104719.html <span data-processor="relativetime" data-value="2024-08-24T06:44:26+00:00" > 08/24/24, 06:44 </span>

    add debug file

    file.
    Array
    maxW 100
    maxH 200
    imageLinkWrap 1
    imageLinkWrap.
    Array
    enable 1
    bodyTag <body bgcolor="black" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><br>wrap <a href="javascript:close();"> | </a><br>width 800<br>height <br>JSwindow 1<br>JSwindow. <br>Array <br>newWindow 1<br>expand 0,0<br>$imageConfStart Pos 1</body>

  3. Garvin Hicking commented <span data-processor="relativetime" data-value="2024-08-24T06:53:04+00:00" > 08/24/24, 06:53 </span>

    (My point is I need steps to reproduce in a plain TYPO3 installation without extra extensions, and the backtrace, not only debug output. It looks to me as if you pass an already processed file into your processing, but processed files cannot be processed again)

  4. Franz Holzinger commented and changed attached TYPO3 Exception-104719.html <span data-processor="relativetime" data-value="2024-08-24T19:13:58+00:00" > 08/24/24, 19:13 </span>

    full backtrace

    There is no change since TYPO3 12, where it works.

  5. Garvin Hicking commented <span data-processor="relativetime" data-value="2024-08-24T19:29:58+00:00" > 08/24/24, 19:29 </span>

    Could you please give a minimal reproducible example of code on how to reproduce this, without extra extensions being involved? Thank you!

  6. Franz Holzinger commented and changed attached TestImage.typoscript <span data-processor="relativetime" data-value="2024-09-06T10:42:04+00:00" > 09/06/24, 10:42 </span>

    Example Setup for IMAGE.
    It uses a file “file = fileadmin/imagefilename.jpg”. You must add some image there for reproducing this error.

        <div style="background-color: blue; padding: 0.5em 1em;">
            <dl>
                <dt>IMAGE file</dt>
                <dd>
                    <f:cObject typoscriptObjectPath="lib.testImage" />
                </dd>
            </dl>
        </div>

    The error happens when imageLinkWrap is part of the IMAGE.
    ContentObjectRenderer.php line 940

    $processedFile = $file->process(ProcessedFile::CONTEXT_IMAGECROPSCALEMASK, $conf);
  7. Gerrit Code Review pushed patch set 1 for main to change 86194 status Needs Feedback Under Review <span data-processor="relativetime" data-value="2024-09-19T07:43:47+00:00" > 09/19/24, 07:43 </span>

  8. Garvin Hicking commented <span data-processor="relativetime" data-value="2024-09-19T07:44:58+00:00" > 09/19/24, 07:44 </span>

    Thank you Franz, with your snippet it was really easy for me to reproduce this, and I believe to have found the issue (with the help of #typo3-cms and especially Mathias Brodala ;)).

    Please check out the patch if that works for you?

  9. Garvin Hicking commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2024-10-23T17:25:08+00:00" > 10/23/24, 17:25 </span>

    Applied in changeset commit:1ede0bb29332efb6c22356d575c7ccb74f359258.