.t3d import on classic TYPO3 installation causes 503

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
rowild

.t3d import on classic TYPO3 installation causes 503

Post by rowild » 05 Jan 2023, 15:31

I installed a TYPO3 11.5 (php 8.1) on a shared hosting platform (all-inkl) and added the aimeos extension. After uploading the .t3d (2022.4+) and importing the data, I get this error:

Code: Select all

503
Oops, an error occurred!
Argument 1 passed to TYPO3\CMS\Impexp\Import::getReferenceDefaultValue() must be of the type array, null given, called in /[path]/typo3_src-11.5.21/typo3/sysext/impexp/Classes/Import.php on line 1056
Currently no aimeos installation method seems to work ... :cry:

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: .t3d import on classic TYPO3 installation causes 503

Post by aimeos » 06 Jan 2023, 12:17

Do you have a full stack trace?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rowild

Re: .t3d import on classic TYPO3 installation causes 503

Post by rowild » 06 Jan 2023, 18:05

Here is the stack trace of a completely new install:

Code: Select all

(1/1) TypeError
TYPO3\CMS\Impexp\Import::getReferenceDefaultValue(): Argument #1 ($configuration) must be of type array, null given, called in /var/www/html/public/typo3/sysext/impexp/Classes/Import.php on line 1056

in /var/www/html/public/typo3/sysext/impexp/Classes/Import.php line 1070
     *
     * @param array $configuration The TCA configuration of the accordant field
     * @return int|float|string
     */
    protected function getReferenceDefaultValue(array $configuration)
    {
        if (!empty($configuration['MM']) || !empty($configuration['foreign_field'])) {
            return 0;
        }
at TYPO3\CMS\Impexp\Import->getReferenceDefaultValue(null)
in /var/www/html/public/typo3/sysext/impexp/Classes/Import.php line 1056
                        // BUT for the field "configuration" of the table "sys_file_storage" the relation MUST NOT be
                        // cleared, because the configuration array contains only string values, which are furthermore
                        // important for the further import, e.g. the base path.
                        if (!($table === 'sys_file_storage' && $field === 'configuration')) {
                            $importData[$table][$ID][$field] = $this->getReferenceDefaultValue($GLOBALS['TCA'][$table]['columns'][$field]['config']);
                        }
                        break;
                }
            }
at TYPO3\CMS\Impexp\Import->addSingle(array('sys_template' => array('NEW63b861ec2d43b758516500' => array('pid' => 1, 'tstamp' => 1650528784, 'crdate' => 1650446491, 'cruser_id' => 1, 'deleted' => 0, 'hidden' => 0, 'starttime' => 0, 'endtime' => 0, 'sorting' => 256, 'description' => '', 't3_origuid' => 0, 't3ver_oid' => 0, 't3ver_wsid' => 0, 't3ver_state' => 0, 't3ver_stage' => 0, 'title' => '+ext', 'root' => 0, 'clear' => 0, 'include_static_file' => 'EXT:aimeos/Configuration/TypoScript/', 'constants' => '', 'config' => '# Please adapt the page ID! plugin.tx_aimeos.settings.client.html.basket.standard.url.target = 123 plugin.tx_aimeos.settings.mshop.customer.manager.typo3.pid-default = 123 config.typolinkLinkAccessRestrictedPages = 123 config.typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL### config.compressJs = 0 config.compressCss = 0 config.concatenateJs = 0 config.concatenateCss = 0 page.includeCSSLibs.aimeos = EXT:aimeos/Resources/Public/Themes/default/aimeos.css page.includeCSSLibs.aimeos-typo3 = EXT:aimeos/Resources/Public/Themes/default/typo3.css page.includeJSFooterlibs.aimeos = EXT:aimeos/Resources/Public/Themes/default/aimeos.js page.includeJSFooterlibs.aimeos-typo3 = EXT:aimeos/Resources/Public/Themes/default/typo3.js # Aimeos debug log level #plugin.tx_aimeos.settings.madmin.log.manager.standard.loglevel = 7 # Disable basket caching for development # plugin.tx_aimeos.settings.client.html.basket.cache.enable = 0 # Default group IDs for newly created users (single value or array) #plugin.tx_aimeos.settings.controller.frontend.customer.groupids = ... # Show "add to basket" in list views #plugin.tx_aimeos.settings.client.html.catalog.lists.domains { # 0 = attribute # 1 = media # 2 = price # 3 = product # 4 = text #} #plugin.tx_aimeos.settings.client.html.catalog.lists.basket-add = 1 # Use alternative image partial for detail pages # plugin.tx_aimeos.settings.client.html.catalog.detail.partials.image = catalog/detail/image-partial-bottom.php plugin.tx_aimeos.settings.client.html.catalog.selection.type.color = radio plugin.tx_aimeos.settings.client.html.catalog.selection.type.length = radio plugin.tx_aimeos.settings.client.html.catalog.selection.type.width = radio plugin.tx_aimeos.settings.client.html.catalog.attribute.type.sticker = input # Example for overwriting translations plugin.tx_aimeos.settings.i18n.de { 0 { domain = client/code string = sticker trans = Sticker } 1 { domain = client/code string = print trans = Aufdruck } } plugin.tx_aimeos.settings.i18n.en { 0 { domain = client string = Attributes trans = Filter } 1 { domain = client string = %1$d article trans { 0 = %1$d 1 = %1$d } } } # Show small basket in the header # Add this to the main navigation Fluid template # <f:if condition="{f:cObject(typoscriptObjectPath:\'lib.navigation.misc.basket\')}"> # <f:cObject typoscriptObjectPath="lib.navigation.misc.basket" /> # </f:if> lib.navigation.misc = COA lib.navigation.misc.basket = USER lib.navigation.misc.basket { userFunc = TYPO3\\CMS\\Extbase\\Core\\Bootstrap->run vendorName = Aimeos extensionName = Aimeos pluginName = basket-small controller = Basket action = small settings =< plugin.tx_aimeos.settings } ', 'basedOn' => '', 'includeStaticAfterBasedOn' => 0, 'static_file_mode' => 0, 'tx_impexp_origuid' => 10), 'NEW63b861ec2d459580631162' => array('pid' => 2, 'tstamp' => 1650446491, 'crdate' => 1650446491, 'cruser_id' => 1, 'deleted' => 0, 'hidden' => 0, 'starttime' => 0, 'endtime' => 0, 'sorting' => 256, 'description' => null, 't3_origuid' => 0, 't3ver_oid' => 0, 't3ver_wsid' => 0, 't3ver_state' => 0, 't3ver_stage' => 0, 'title' => '+ext', 'root' => 0, 'clear' => 0, 'include_static_file' => '', 'constants' => null, 'config' => 'config.additionalHeaders.1000.header = Cache-control: no-store page = PAGE page { typeNum = 0 headerData > config { disableAllHeaderCode = 1 disableCharsetHeader = 1 disablePrefixComment = 1 } 10 = CONTENT 10 { table = tt_content select.orderBy = sorting select.languageField = sys_language_uid } } tt_content.stdWrap > tt_content.list = COA tt_content.list.20 = CASE tt_content.list.20.key.field = list_type tt_content.list.templateName > tt_content.list.templateRootPaths > tt_content.list.partialRootPaths > tt_content.list.layoutRootPaths > ', 'basedOn' => '', 'includeStaticAfterBasedOn' => 0, 'static_file_mode' => 0, 'tx_impexp_origuid' => 9), 'NEW63b861ec2d45c653663135' => array('pid' => 5, 'tstamp' => 1650446491, 'crdate' => 1650446491, 'cruser_id' => 1, 'deleted' => 0, 'hidden' => 0, 'starttime' => 0, 'endtime' => 0, 'sorting' => 256, 'description' => null, 't3_origuid' => 0, 't3ver_oid' => 0, 't3ver_wsid' => 0, 't3ver_state' => 0, 't3ver_stage' => 0, 'title' => '+ext', 'root' => 0, 'clear' => 0, 'include_static_file' => '', 'constants' => null, 'config' => 'config.additionalHeaders.1000.header = Cache-control: max-age=300', 'basedOn' => '', 'includeStaticAfterBasedOn' => 0, 'static_file_mode' => 0, 'tx_impexp_origuid' => 8), 'NEW63b861ec2d45e057989727' => array('pid' => 6, 'tstamp' => 1650446491, 'crdate' => 1650446491, 'cruser_id' => 1, 'deleted' => 0, 'hidden' => 0, 'starttime' => 0, 'endtime' => 0, 'sorting' => 256, 'description' => null, 't3_origuid' => 0, 't3ver_oid' => 0, 't3ver_wsid' => 0, 't3ver_state' => 0, 't3ver_stage' => 0, 'title' => '+ext', 'root' => 0, 'clear' => 0, 'include_static_file' => '', 'constants' => null, 'config' => 'config.additionalHeaders.1000.header = Cache-control: no-store page = PAGE page { typeNum = 0 headerData > config { disableAllHeaderCode = 1 disableCharsetHeader = 1 disablePrefixComment = 1 } 10 = CONTENT 10 { table = tt_content select.orderBy = sorting select.languageField = sys_language_uid } } tt_content.stdWrap > tt_content.list = COA tt_content.list.20 = CASE tt_content.list.20.key.field = list_type tt_content.list.templateName > tt_content.list.templateRootPaths > tt_content.list.partialRootPaths > tt_content.list.layoutRootPaths > ', 'basedOn' => '', 'includeStaticAfterBasedOn' => 0, 'static_file_mode' => 0, 'tx_impexp_origuid' => 7), 'NEW63b861ec2d461494436881' => array('pid' => 8, 'tstamp' => 1650446491, 'crdate' => 1650446491, 'cruser_id' => 1, 'deleted' => 0, 'hidden' => 0, 'starttime' => 0, 'endtime' => 0, 'sorting' => 256, 'description' => null, 't3_origuid' => 0, 't3ver_oid' => 0, 't3ver_wsid' => 0, 't3ver_state' => 0, 't3ver_stage' => 0, 'title' => '+ext', 'root' => 0, 'clear' => 0, 'include_static_file' => '', 'constants' => null, 'config' => 'config.additionalHeaders.1000.header = Cache-control: max-age=30', 'basedOn' => '', 'includeStaticAfterBasedOn' => 0, 'static_file_mode' => 0, 'tx_impexp_origuid' => 6), 'NEW63b861ec2d463709954820' => array('pid' => 12, 'tstamp' => 1650446491, 'crdate' => 1650446491, 'cruser_id' => 1, 'deleted' => 0, 'hidden' => 0, 'starttime' => 0, 'endtime' => 0, 'sorting' => 256, 'description' => null, 't3_origuid' => 0, 't3ver_oid' => 0, 't3ver_wsid' => 0, 't3ver_state' => 0, 't3ver_stage' => 0, 'title' => '+ext', 'root' => 0, 'clear' => 0, 'include_static_file' => '', 'constants' => null, 'config' => 'config.additionalHeaders.1000.header = Cache-control: no-store', 'basedOn' => '', 'includeStaticAfterBasedOn' => 0, 'static_file_mode' => 0, 'tx_impexp_origuid' => 5), 'NEW63b861ec2d465091959192' => array('pid' => 13, 'tstamp' => 1650446491, 'crdate' => 1650446491, 'cruser_id' => 1, 'deleted' => 0, 'hidden' => 0, 'starttime' => 0, 'endtime' => 0, 'sorting' => 256, 'description' => null, 't3_origuid' => 0, 't3ver_oid' => 0, 't3ver_wsid' => 0, 't3ver_state' => 0, 't3ver_stage' => 0, 'title' => '+ext', 'root' => 0, 'clear' => 0, 'include_static_file' => '', 'constants' => null, 'config' => 'config.additionalHeaders.1000.header = Cache-control: no-store', 'basedOn' => '', 'includeStaticAfterBasedOn' => 0, 'static_file_mode' => 0, 'tx_impexp_origuid' => 4), 'NEW63b861ec2d467678689926' => array('pid' => 14, 'tstamp' => 1650446491, 'crdate' => 1650446491, 'cruser_id' => 1, 'deleted' => 0, 'hidden' => 0, 'starttime' => 0, 'endtime' => 0, 'sorting' => 256, 'description' => null, 't3_origuid' => 0, 't3ver_oid' => 0, 't3ver_wsid' => 0, 't3ver_state' => 0, 't3ver_stage' => 0, 'title' => '+ext', 'root' => 0, 'clear' => 0, 'include_static_file' => '', 'constants' => null, 'config' => 'config.additionalHeaders.1000.header = Cache-control: no-store', 'basedOn' => '', 'includeStaticAfterBasedOn' => 0, 'static_file_mode' => 0, 'tx_impexp_origuid' => 3)), 'tt_content' => array('NEW63b861ec2d46a899967790' => array('rowDescription' => '', 'pid' => 1, 'tstamp' => 1651045078, 'crdate' => 1650446491, 'cruser_id' => 1, 'deleted' => 0, 'hidden' => 0, 'starttime' => 0, 'endtime' => 0, 'fe_group' => '', 'sorting' => 8, 'editlock' => 0, 'sys_language_uid' => 0, 'l18n_parent' => 0, 'l10n_source' => 0, 'l10n_state' => null, 't3_origuid' => 0, 'l18n_diffsource' => '{"colPos":"","sys_language_uid":""}', 't3ver_oid' => 0, 't3ver_wsid' => 0, 't3ver_state' => 0, 't3ver_stage' => 0, 'CType' => 'list', 'header' => '', 'header_position' => '', 'bodytext' => null, 'bullets_type' => 0, 'uploads_description' => 0, 'uploads_type' => 0, 'assets' => 0, 'image' => 0, 'imagewidth' => 0, 'imageorient' => 0, 'imagecols' => 2, 'imageborder' => 0, 'media' => 0, 'layout' => 0, 'frame_class' => 'none', 'cols' => 0, 'space_before_class' => '', 'space_after_class' => '', 'records' => '', 'pages' => '', 'colPos' => 1, 'subheader' => '', 'header_link' => '', 'image_zoom' => 0, 'header_layout' => '0', 'list_type' => 'aimeos_catalog-filter', 'sectionIndex' => 1, 'linkToTop' => 0, 'file_collections' => '', 'filelink_size' => 0, 'filelink_sorting' => '', 'filelink_sorting_direction' => '', 'target' => '', 'date' => 0, 'recursive' => 0, 'imageheight' => 0, 'pi_flexform' => '', 'accessibility_title' => '', 'accessibility_bypass' => 0, 'accessibility_bypass_text' => '', 'category_field' => '', 'table_class' => '', 'table_caption' => null, 'table_delimiter' => 124, 'table_enclosure' => 0, 'table_header_position' => 0, 'table_tfoot' => 0, 'categories' => 0, 'selected_categories' => '0', 'tx_impexp_origuid' => 256, 'teaser' => null, 'aspect_ratio' => '1.3333333333333', 'items_per_page' => 10, 'readmore_label' => '', 'quote_source' => '', 'quote_link' => '', 'panel_class' => 'default', 'file_folder' => '', 'icon' => '', 'icon_set' => '', 'icon_file' => 0, 'icon_position' => '', 'icon_size' => 'default', 'icon_type' => 'default', 'icon_color' => '#FFFFFF', 'icon_background' => '#333333', 'external_media_source' => '', 'external_media_ratio' => '', 'tx_bootstrappackage_card_group_item' => 0, 'tx_bootstrappackage_carousel_item' => 0, 'tx_bootstrappackage_accordion_item' => 0, 'tx_bootstrappackage_icon_group_item' => 0, 'tx_bootstrappackage_tab_item' => 0, 'tx_bootstrappackage_timeline_item' => 0, 'frame_layout' => 'default', 'background_color_class' => 'none', 'background_image' => 0, 'background_image_options' => '<?xml version="1.0" encoding="utf-8" standalone="yes" ?><T3FlexForms> <data> <sheet index="sDEF"> <language index="lDEF"> <field index="parallax"> <value index="vDEF">0</value> </field> <field index="fade"> <value index="vDEF">0</value> </field> <field index="filter"> <value index="vDEF"></value> </field> </language> </sheet> </data></T3FlexForms>'))), 'tt_content', 256, 1)
in /var/www/html/public/typo3/sysext/impexp/Classes/Import.php line 851
                                continue;
                            }
                        }
                        // Add record
                        $this->addSingle($importData, $table, $uid, $pid);
                    }
                }
            }
        } else {
at TYPO3\CMS\Impexp\Import->writeRecords()
in /var/www/html/public/typo3/sysext/impexp/Classes/Import.php line 389
        $this->writeSysFileRecords();
        // Write records, first pages, then the rest
        // Fields with "hard" relations to database, files and flexform fields are kept empty during this run
        $this->writePages();
        $this->writeRecords();
        // Finally all the file and database record references must be fixed. This is done after all records have supposedly
        // been written to database. $this->importMapId will indicate two things:
        // 1) that a record WAS written to db and
        // 2) that it has got a new id-number.
at TYPO3\CMS\Impexp\Import->importData()
in /var/www/html/public/typo3/sysext/impexp/Classes/Controller/ImportController.php line 202
            try {
                $this->import->loadFile($filePath, true);
                $this->import->checkImportPrerequisites();
                if ($inData['import_file'] ?? false) {
                    $this->import->importData();
                    BackendUtility::setUpdateSignal('updatePageTree');
                }
            } catch (\Exception $e) {
                $this->moduleTemplate->addFlashMessage($e->getMessage(), '', FlashMessage::ERROR);
at TYPO3\CMS\Impexp\Controller\ImportController->importData(array('file' => '1:/user_upload/_temp_/importexport/Aimeos-pages_2022.04.t3d', 'do_update' => '', 'notShowDiff' => '', 'force_all_UIDS' => '', 'import_file' => '1', 'action' => 'import', 'enableLogging' => '1'))
in /var/www/html/public/typo3/sysext/impexp/Classes/Controller/ImportController.php line 97
        // Handle upload
        $inData = $this->handleUpload($request, $inData);

        // Perform import
        $inData = $this->importData($inData);

        // Prepare view
        $this->registerDocHeaderButtons();
        $this->makeForm();
at TYPO3\CMS\Impexp\Controller\ImportController->mainAction(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/backend/Classes/Http/RouteDispatcher.php line 91
        }
        $targetIdentifier = $route->getOption('target');
        $target = $this->getCallableFromTarget($targetIdentifier);
        $arguments = [$request];
        return $target(...$arguments);
    }

    /**
     * Wrapper method for static form protection utility
at TYPO3\CMS\Backend\Http\RouteDispatcher->dispatch(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/backend/Classes/Http/RequestHandler.php line 110
        // there are Core classes that need the Request object but do not get it handed in
        $this->resetGlobalsToCurrentRequest($request);
        try {
            // Check if the router has the available route and dispatch.
            return $this->dispatcher->dispatch($request);
        } catch (MissingRequestTokenException $e) {
            // When token was missing, then redirect to login, but keep the current route as redirect after login
            $loginUrl = $this->uriBuilder->buildUriWithRedirect(
                'login',
at TYPO3\CMS\Backend\Http\RequestHandler->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/core/Classes/Middleware/ResponsePropagation.php line 34
{
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        try {
            $response = $handler->handle($request);
        } catch (PropagateResponseException $e) {
            $response = $e->getResponse();
        }

at TYPO3\CMS\Core\Middleware\ResponsePropagation->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(TYPO3\CMS\Backend\Http\RequestHandler))
in /var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172

                if (!$middleware instanceof MiddlewareInterface) {
                    throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
                }
                return $middleware->process($request, $this->next);
            }
        };
    }
}
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/backend/Classes/Middleware/SiteResolver.php line 69
            }
            $site = $this->siteMatcher->matchByPageId($pageId, $rootLine);
            $request = $request->withAttribute('site', $site);
        }
        return $handler->handle($request);
    }
}
at TYPO3\CMS\Backend\Middleware\SiteResolver->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a))
in /var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172

                if (!$middleware instanceof MiddlewareInterface) {
                    throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
                }
                return $middleware->process($request, $this->next);
            }
        };
    }
}
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/backend/Classes/Middleware/AdditionalResponseHeaders.php line 41
     * @return ResponseInterface
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $response = $handler->handle($request);
        foreach ($GLOBALS['TYPO3_CONF_VARS']['BE']['HTTP']['Response']['Headers'] ?? [] as $header) {
            [$headerName, $value] = explode(':', $header, 2);
            $response = $response->withAddedHeader($headerName, trim($value));
        }
at TYPO3\CMS\Backend\Middleware\AdditionalResponseHeaders->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a))
in /var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172

                if (!$middleware instanceof MiddlewareInterface) {
                    throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
                }
                return $middleware->process($request, $this->next);
            }
        };
    }
}
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/backend/Classes/Middleware/OutputCompression.php line 47
        ob_clean();
        // Initialize output compression if configured
        $this->initializeOutputCompression();

        return $handler->handle($request);
    }

    /**
     * Initialize output compression if configured
at TYPO3\CMS\Backend\Middleware\OutputCompression->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a))
in /var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172

                if (!$middleware instanceof MiddlewareInterface) {
                    throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
                }
                return $middleware->process($request, $this->next);
            }
        };
    }
}
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/backend/Classes/Middleware/BackendUserAuthenticator.php line 166
        }
        $GLOBALS['LANG'] = $this->languageServiceFactory->createFromUserPreferences($GLOBALS['BE_USER']);
        // Re-setting the user and take the workspace from the user object now
        $this->setBackendUserAspect($GLOBALS['BE_USER']);
        $response = $handler->handle($request);
        $this->sessionGarbageCollection();
        return $this->enrichResponseWithHeadersAndCookieInformation($response, $GLOBALS['BE_USER']);
    }

at TYPO3\CMS\Backend\Middleware\BackendUserAuthenticator->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a))
in /var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172

                if (!$middleware instanceof MiddlewareInterface) {
                    throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
                }
                return $middleware->process($request, $this->next);
            }
        };
    }
}
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/backend/Classes/Middleware/BackendRouteInitialization.php line 86
            $uri = GeneralUtility::makeInstance(UriBuilder::class)->buildUriFromRoute('login');
            return new RedirectResponse($uri);
        }

        return $handler->handle($request);
    }
}
at TYPO3\CMS\Backend\Middleware\BackendRouteInitialization->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a))
in /var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172

                if (!$middleware instanceof MiddlewareInterface) {
                    throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
                }
                return $middleware->process($request, $this->next);
            }
        };
    }
}
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/backend/Classes/Middleware/ForcedHttpsBackendRedirector.php line 55
            [$server, $address] = explode('/', $url, 2);
            return new RedirectResponse('https://' . $server . $sslPortSuffix . '/' . $address);
        }

        return $handler->handle($request);
    }
}
at TYPO3\CMS\Backend\Middleware\ForcedHttpsBackendRedirector->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a))
in /var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172

                if (!$middleware instanceof MiddlewareInterface) {
                    throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
                }
                return $middleware->process($request, $this->next);
            }
        };
    }
}
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/backend/Classes/Middleware/LockedBackendGuard.php line 75
            $request->getAttribute('normalizedParams')->getRemoteAddress(),
            trim((string)$GLOBALS['TYPO3_CONF_VARS']['BE']['IPmaskList'])
        );

        return $handler->handle($request);
    }

    /**
     * Check adminOnly configuration variable and redirects to an URL in file typo3conf/LOCK_BACKEND
at TYPO3\CMS\Backend\Middleware\LockedBackendGuard->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a))
in /var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172

                if (!$middleware instanceof MiddlewareInterface) {
                    throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
                }
                return $middleware->process($request, $this->next);
            }
        };
    }
}
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/core/Classes/Middleware/NormalizedParamsAttribute.php line 45
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $request = $request->withAttribute('normalizedParams', NormalizedParams::createFromRequest($request));
        return $handler->handle($request);
    }
}
at TYPO3\CMS\Core\Middleware\NormalizedParamsAttribute->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a))
in /var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172

                if (!$middleware instanceof MiddlewareInterface) {
                    throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
                }
                return $middleware->process($request, $this->next);
            }
        };
    }
}
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/core/Classes/Middleware/VerifyHostHeader.php line 55
                1396795884
            );
        }

        return $handler->handle($request);
    }

    /**
     * Checks if the provided host header value matches the trusted hosts pattern.
at TYPO3\CMS\Core\Middleware\VerifyHostHeader->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a))
in /var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172

                if (!$middleware instanceof MiddlewareInterface) {
                    throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
                }
                return $middleware->process($request, $this->next);
            }
        };
    }
}
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$2a->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 78
     * @return ResponseInterface
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        return $this->tip->handle($request);
    }

    /**
     * Seed the middleware stack with the inner request handler
at TYPO3\CMS\Core\Http\MiddlewareDispatcher->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/core/Classes/Http/AbstractApplication.php line 86
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        try {
            $response = $this->requestHandler->handle($request);
        } catch (ImmediateResponseException $exception) {
            $response = $exception->getResponse();
        }
        return $response;
at TYPO3\CMS\Core\Http\AbstractApplication->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/backend/Classes/Http/Application.php line 72
        $request = $request->withAttribute('applicationType', $applicationType);

        // Set up the initial context
        $this->initializeContext();
        return parent::handle($request);
    }

    /**
     * Create a PSR-7 Response that redirects to the install tool
at TYPO3\CMS\Backend\Http\Application->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/core/Classes/Http/AbstractApplication.php line 100
     * @param callable $execute Deprecated, will be removed in TYPO3 v12.0
     */
    final public function run(callable $execute = null)
    {
        $response = $this->handle(ServerRequestFactory::fromGlobals());
        if ($execute !== null) {
            trigger_error('Custom execution of Application code will be removed in TYPO3 v12.0, use PSR-15 Middlewares instead.', E_USER_DEPRECATED);
            $execute();
        }
at TYPO3\CMS\Core\Http\AbstractApplication->run()
in /var/www/html/public/typo3/index.php line 20
// Set up the application for the backend
call_user_func(static function () {
    $classLoader = require dirname(dirname(__DIR__)).'/vendor/autoload.php';
    \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(1, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_BE);
    \TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Backend\Http\Application::class)->run();
});
at {closure}()
in /var/www/html/public/typo3/index.php line 21
call_user_func(static function () {
    $classLoader = require dirname(dirname(__DIR__)).'/vendor/autoload.php';
    \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(1, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_BE);
    \TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Backend\Http\Application::class)->run();
}); 

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: .t3d import on classic TYPO3 installation causes 503

Post by aimeos » 08 Jan 2023, 09:38

This is the latest T3D page tree:
https://aimeos.org/fileadmin/download/A ... 2.04-2.t3d

Which PHP version do you use?
It seems like an issue with a new PHP version (8.2+) and TYPO3 11.5 T3D import.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rowild

Re: .t3d import on classic TYPO3 installation causes 503

Post by rowild » 08 Jan 2023, 12:20

I keep getting the same error with the latest T3D page tree as well.
I use php 8.1, but I also tried with php 8.0 - same problem.

As a side note: the Aimeos Distribution package works just fine.

rowild

Re: .t3d import on classic TYPO3 installation causes 503

Post by rowild » 10 Jan 2023, 15:51

Any news here?
I also tried with php 7.4 - same problem.

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: .t3d import on classic TYPO3 installation causes 503

Post by aimeos » 11 Jan 2023, 09:17

Not yet. We have to set up and test a new installation ourselves to see if we can reproduce the problem.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rowild

Re: .t3d import on classic TYPO3 installation causes 503

Post by rowild » 13 Jan 2023, 10:52

If its of any help I'm happy to give you my credentials to my all-inkl account...

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: .t3d import on classic TYPO3 installation causes 503

Post by aimeos » 13 Jan 2023, 14:55

We've found the problem. TYPO3 import has changed somewhere between v11.5.13 and v11.5.21 and can't read T3D or XML files from earlier version any more because of these lines (XML snippet):

Code: Select all

<field index="background_image_options" type="array">
	<type>flex</type>
	<flexform index="flexFormRels" type="array">
		<db_relations index="db" type="array"></db_relations>
		<softref_relations index="softrefs" type="array"></softref_relations>
	</flexform>
</field>
Maybe it has something to do with the Bootstrap package because Aimeos doesn't use background images in any page at all.

Removing these lines, importing and exporting the T3D file again seem to have fixed the problem. A new T3D file is available here: https://aimeos.org/fileadmin/download/A ... 022.10.t3d
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rowild

Re: .t3d import on classic TYPO3 installation causes 503

Post by rowild » 19 Jan 2023, 08:08

Thank you very much! Also for posting the code snippet that is responsible for the break! Great! I will try ASAP.

(Sorry for the late response. I forgot to activate the "Notify me when a reply is posted"...)

Post Reply