Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Uncaught TYPO3 Exception in list module #205

Closed
Patta opened this issue May 8, 2023 · 0 comments · Fixed by #213
Closed

[BUG] Uncaught TYPO3 Exception in list module #205

Patta opened this issue May 8, 2023 · 0 comments · Fixed by #213
Assignees
Labels
bug Something isn't working

Comments

@Patta
Copy link

Patta commented May 8, 2023

Uncaught TYPO3 Exception in list module on root level after upgrade to version 3.0.0.
Glossary functionality is not used. Upgrade wizard is not available.

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception

PHP Warning: Trying to access array offset on value of type null in /var/www/html/private/typo3conf/ext/wv_deepltranslate/Classes/Hooks/ButtonBarHook.php line 40
in /var/www/html/private/typo3/sysext/core/Classes/Error/ErrorHandler.php line 137

        }

        $message = self::ERROR_LEVEL_LABELS[$errorLevel] . ': ' . $errorMessage . ' in ' . $errorFile . ' line ' . $errorLine;
        if ($errorLevel & $this->exceptionalErrors) {
            throw new Exception($message, 1476107295);
        }

        $message = $this->getFormattedLogMessage($message);

at TYPO3\CMS\Core\Error\ErrorHandler->handleError(2, 'Trying to access array offset on value of type null', '/var/www/html/private/typo3conf/ext/wv_deepltranslate/Classes/Hooks/ButtonBarHook.php', 40)
in /var/www/html/private/typo3conf/ext/wv_deepltranslate/Classes/Hooks/ButtonBarHook.php line 40

                'uid,module'
            );

            if (
                $page['module'] === 'glossary'
                && $this->getBackendUserAuthentication()
                    ->check('tables_modify', 'tx_wvdeepltranslate_glossaryentry')
            ) {
                $parameters = $this->buildParamsArrayForListView($page['uid']);

at WebVision\WvDeepltranslate\Hooks\ButtonBarHook->getButtons(array('buttons' => array('left' => array(array(object(TYPO3\CMS\Backend\Template\Components\Buttons\LinkButton)), array(object(TYPO3\CMS\Backend\Template\Components\Buttons\LinkButton))), 'right' => array(array(object(TYPO3\CMS\Backend\Template\Components\Buttons\LinkButton)), array(object(TYPO3\CMS\Backend\Template\Components\Buttons\Action\ShortcutButton)), array(object(TYPO3\CMS\Backend\Template\Components\Buttons\Action\HelpButton))))), object(TYPO3\CMS\Backend\Template\Components\ButtonBar))
at call_user_func_array(array(object(WebVision\WvDeepltranslate\Hooks\ButtonBarHook), 'getButtons'), array(array('buttons' => array('left' => array(array(object(TYPO3\CMS\Backend\Template\Components\Buttons\LinkButton)), array(object(TYPO3\CMS\Backend\Template\Components\Buttons\LinkButton))), 'right' => array(array(object(TYPO3\CMS\Backend\Template\Components\Buttons\LinkButton)), array(object(TYPO3\CMS\Backend\Template\Components\Buttons\Action\ShortcutButton)), array(object(TYPO3\CMS\Backend\Template\Components\Buttons\Action\HelpButton))))), object(TYPO3\CMS\Backend\Template\Components\ButtonBar)))
in /var/www/html/private/typo3/sysext/core/Classes/Utility/GeneralUtility.php line 3126

                $methodName = (string)$parts[1];
                $callable = [$classObj, $methodName];
                if (is_callable($callable)) {
                    // Call method:
                    $content = call_user_func_array($callable, [&$params, &$ref]);
                } else {
                    throw new \InvalidArgumentException('No method name \'' . $parts[1] . '\' in class ' . $parts[0], 1294585865);
                }
            } else {

at TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction('WebVision\\WvDeepltranslate\\Hooks\\ButtonBarHook->getButtons', array('buttons' => array('left' => array(array(object(TYPO3\CMS\Backend\Template\Components\Buttons\LinkButton)), array(object(TYPO3\CMS\Backend\Template\Components\Buttons\LinkButton))), 'right' => array(array(object(TYPO3\CMS\Backend\Template\Components\Buttons\LinkButton)), array(object(TYPO3\CMS\Backend\Template\Components\Buttons\Action\ShortcutButton)), array(object(TYPO3\CMS\Backend\Template\Components\Buttons\Action\HelpButton))))), object(TYPO3\CMS\Backend\Template\Components\ButtonBar))
...

TYPO3 Setup

  • TYPO3 Version: 11.5.26
  • Server (Apache-cgi/Apache-fpm/nginx-fm/other): Apache, ddev, WSL2
  • Database type and version (SQLite/Postgres/MariaDB/MySQL): MariaDB 10.5.19
  • PHP version: 8.1.18
  • DeepL free or paid API?: Free API
  • composer or classic setup?: Composer mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants