Issue Bug Closed

#108722Exception while trying to update extension with extension manager in TYPO3 14.1.0

Wittkiel Gruppe 01/22/26, 07:39 updated 03/31/26, 08:59

Description

We tried to update content_blocks with extension manager in current TYPO3 14.1.0 (non-composer, PHP 8.4), but it fails because of an exception:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository::findByVersionRangeAndExtensionKeyOrderedByVersion(): Argument #2 ($lowestVersion) must be of type int, string given, called in /var/www/clients/clientx/webx/web/typo3_src-14.1.0/typo3/sysext/extensionmanager/Classes/Controller/DownloadController.php on line 264 | TypeError thrown in file /var/www/clients/clientx/webx/web/typo3_src-14.1.0/typo3/sysext/extensionmanager/Classes/Domain/Repository/ExtensionRepository.php in line 218. Requested URL: https://example.com/typo3/module/extensions/Download/updateCommentForUpdatableVersions?token=--AnonymizedToken--ea48aa91b5bf1961cce8f9b0&extension=content_blocks&integerVersionStart=2000002&integerVersionStop=2000004&format=json

After manually fixing it with casting to int in DownloadController->updateCommentForUpdatableVersionsAction it occurs an error in javascript:

Uncaught (in promise) TypeError: can't access property "progressBar", this is undefined
updateExtension https://example.com/typo3/sysext/extensionmanager/Resources/Public/JavaScript/main.js?bust=4e9711ce9e0bf4ee701a6836a96d49cd101d1a57:14
main.js:14:335

Reviews 2

Files 1

History 79

  1. Garvin Hicking commented and changed priority Should have Must have <span data-processor="relativetime" data-value="2026-01-22T07:50:12+00:00" > 01/22/26, 07:50 </span>

    Can you mention from which version to which version you tried to update? Maybe a full stack trace for the PHP failure?

    Also for the TypeScript it would help to know which place the progressBar fails on.

  2. Wittkiel Gruppe commented and changed attached stack-trace.html <span data-processor="relativetime" data-value="2026-01-22T08:12:50+00:00" > 01/22/26, 08:12 </span>

    Garvin Hicking wrote in #note-1:
    > Can you mention from which version to which version you tried to update? Maybe a full stack trace for the PHP failure?
    >
    > Also for the TypeScript it would help to know which place the progressBar fails on.

    We tried to update content_blocks 2.0.2 to 2.0.4, hope stack trace is ok as attachment?

    The error in JavaScript is here “this.progressBar && this.progressBar.done()”, see this function:

      async updateExtension(r) {
        let n = 0;
        const t = await r.resolve(),
        o = document.createElement('form');
        for (const [s,
        d]of Object.entries(t.updateComments)) {
          const i = document.createElement('input');
          i.setAttribute('type', 'radio'),
          i.setAttribute('name', 'version'),
          i.value = s,
          n === 0 &&
          i.setAttribute('checked', 'checked');
          const h = document.createElement('h3');
          h.innerHTML = y.encodeHtml(s),
          h.prepend(i);
          const x = document.createElement('div');
          x.innerHTML = d.replace(/(\r\n|\n\r|\r|\n)/g, `
    
          `).split(/\n/).map(v => y.encodeHtml(v)).join('<br>'),
          o.append(h, x),
          n++
        }
        const e = document.createElement('h1');
        e.textContent = TYPO3.lang['extensionList.updateConfirmation.title'];
        const c = document.createElement('h2');
        c.textContent = TYPO3.lang['extensionList.updateConfirmation.message'];
        const m = document.createElement('div');
        m.append(e, c, o),
        //ERROR IS HERE
        this.progressBar &&
        this.progressBar.done(),
        l.confirm(
          TYPO3.lang['extensionList.updateConfirmation.questionVersionComments'],
          m,
          b.warning,
          [
            {
              text: TYPO3.lang['button.cancel'],
              active: !0,
              btnClass: 'btn-default',
              trigger: (s, d) => d.hideModal()
            },
            {
              text: TYPO3.lang['button.updateExtension'],
              btnClass: 'btn-warning',
              trigger: (s, d) => {
                const i = document.createElement('typo3-backend-progress-bar');
                document.body.appendChild(i),
                i.start(),
                new p(t.url).post({
                  version: d.querySelector('input[name="version"]:checked') ?.value
                }).finally(() => {
                  location.reload()
                }),
                d.hideModal()
              }
            }
          ]
        )
      }
  3. Garvin Hicking commented <span data-processor="relativetime" data-value="2026-01-22T10:28:21+00:00" > 01/22/26, 10:28 </span>

    Thanks! Oli has pushed a patch to gerrit, maybe you could test if this works for you too?

  4. Wittkiel Gruppe commented <span data-processor="relativetime" data-value="2026-01-22T10:46:43+00:00" > 01/22/26, 10:46 </span>

    Garvin Hicking wrote in #note-6:
    > Thanks! Oli has pushed a patch to gerrit, maybe you could test if this works for you too?

    I reviewed the patch, it’s working, thanks for this fast fix!

  5. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-01-22T11:40:07+00:00" > 01/22/26, 11:40 </span>

    Applied in changeset commit:85dc0e4a54a046835785ed960f75d42b31e46d49.