AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / coding / 问题

问题[typo3](coding)

Martin Hope
user500665
Asked: 2025-04-16 18:33:51 +0800 CST

如何在 TYPO3 中嵌套 SplitProcessors?

  • 6

我需要按行拆分字符串,然后按|。

最初,我使用了一个与简单字符串一起工作的CommaSeparatedValueProcessor函数fieldDelimiter = |,但是现在字符串包含"和'用于测量,这使其无法工作。

我尝试设置fieldEnclosure其他值,"但似乎没有帮助。

所以我想我可以退回到SplitProcessor。有没有办法嵌套它来获得 2 个分割?

dataProcessing {
    10 = TYPO3\CMS\Frontend\DataProcessing\SplitProcessor
    10 {
        fieldName = data
        delimiter.char = 10
        as = myarray
    }
}
typo3
  • 1 个回答
  • 29 Views
Martin Hope
user500665
Asked: 2025-03-24 14:57:17 +0800 CST

我可以使用 TSConfig 更改字段的 renderType 吗?

  • 5

如何更改 TSConfig 中字段的 renderType?

我想删除 Table 元素上的向导,以便它显示为常规文本区域。使用 Page TSConfig 可以实现这一点吗?

类似于:

TCEFORM.tt_content.table.config.renderType = text
typo3
  • 1 个回答
  • 25 Views
Martin Hope
Stefan Müller
Asked: 2024-09-25 15:57:33 +0800 CST

我可以根据寄存器值的存在来设置 typoscript 库吗?

  • 6

我的任务是,如果设置了特殊寄存器值,则显示特定的面包屑路径。我尝试在 fluid 中直接访问这些寄存器值,但它们似乎不可评估(例如“大于”的条件根本不起作用)所以我想出了一个 TS-lib,并尝试了打击 TS。您能看出我想做什么吗?是否可以根据该寄存器值将“lib.defaultproductpath”设置为 1 或 0?:

# die Anzeige des default-product path an/aus schalten
    
    lib.defaultproductpath = TEXT
    lib.defaultproductpath.value = 1
    lib.defaultproductpath.if {
         10 = TEXT
         10.data = register:level1-uid
        // isGreaterThan
    }

typo3
  • 1 个回答
  • 17 Views
Martin Hope
oheil
Asked: 2024-08-22 17:46:59 +0800 CST

Typo3 从 v11 升级到 v12,升级向导不起作用

  • 5

更新 3:找到解决方案:

The local template package, created in v11 according to
https://docs.typo3.org/m/typo3/tutorial-sitepackage/11.5/en-us/Index.html
has not been detected by the v12 "Scan Extension Files" tool as
problematic, but it was.
Using
  composer require --dev ssch/typo3-rector
  vendor/bin/typo3-init
  vendor/bin/rector process --dry-run
  vendor/bin/rector process
resolved this issue.
In
  local_packages/site-template/ext_localconf.php
there was a
  defined('TYPO3_MODE') || die();
which needs to be
  defined('TYPO3') || die();
in v12.

I knew this but I relied on the "Scan Extension Files" tool
and didn't checked the files after the tool was all green.

非常感谢“Boku No Maxi”向我介绍了解决方案!


更新 2:已找到该问题的原因但尚未解决:

What I tried next:
- Installing Typo3 v12 new and clean with an empty database
- Imported old Typo3 v11 database overwriting the new one completely
- Running Upgrade Wizard successfully

Fine until now, but I need the sites template and I see, the original
site configuration wasn't there.

- creating Site Configuration in the backend (as it was in the original)
- installing Sites Package Theme as it was in Typo3 v11:
  
  composer config repositories.local path "local_packages/*"
  composer require "oheil/core-facilities-genomics-and-proteomics:@dev"
  composer require typo3/cms-fluid-styled-content

This went well, except that the backend is now refusing to work.
Typo3 Install Tool shows exactly same problem.

This local package template does not show any problems with the
"Scan Extension Files" tool in v12!

Removing the local template package again and all is fine again,
except that the Typo3 error log gives:
  The page is not configured!
which is expected.

So the question now moved to "how can I migrate the v11 local package
template to v12?". A new SO question has to be opened, I guess.
Will link it here later.

问题:

After Typo3 composer upgrade from 11.5.39 (11LTS) to 12.4.19 (12LTS)
the Upgrade Wizard is not working.

环境:

Typo3 composer installation 11.5.39
composer 2.7.7
on Debian Bookworm
php 8.3.10
Apache
all Typo3 debug and error options switched on
Upgrade following official documents at
 https://docs.typo3.org/m/typo3/guide-installation/12.4/en-us/Major/Index.html
All System Requirements are fulfilled
All extensions, except for the site theme, are removed.

错误:

The usual case:
 When clicking in the Install Backend on Upgrade Wizard, I don't get any error,
 just two pink error pop ups with
  "Something went wrong The request was not processed successfully.
  Please check the browser's console and TYPO3's log."
 Browser console, Typo3 log and php log don't give any error,
 apache2 access logs give code 200 (ok).

The sometimes case:
 In some unclear circumstances I get a detailed Ajax error, and this is also
  reflected in Typo3 error log as (formatted a bit and clipped):

 Wed, 21 Aug 2024 13:26:29 +0200 [CRITICAL] request="773899d0627ec"
  component="TYPO3.CMS.Core.Error.DebugExceptionHandler":
  Core: Exception handler (WEB: BE): TYPO3\CMS\Core\Error\Exception, code #1476107295,
  file /var/www/html/typo3/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php, line 138: 
  PHP Warning:
  file_put_contents(/var/www/html/typo3/var/cache/code/di/66c5cee5312b3891804751.temp):
  Failed to open stream: No such file or directory in
  /var/www/html/typo3/vendor/typo3/cms-core/Classes/Cache/Backend/SimpleFileBackend.php line 229
  ...
  TYPO3\\CMS\\Core\\Http\\AbstractApplication->run()
  #21 /var/www/html/typo3/public/typo3/install.php(20): {closure}()\n#22 {main}"}

 All permissions are ok, file system is totally fine, there is no reason why this file
 can't be written or created.

完整错误:

Wed, 21 Aug 2024 13:26:29 +0200 [CRITICAL] request="773899d0627ec" component="TYPO3.CMS.Core.Error.DebugExceptionHandler": Core: Exception handler (WEB: BE): TYPO3\CMS\Core\Error\Exception, code #1476107295, file /var/www/html/typo3/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php, line 138: PHP Warning: file_put_contents(/var/www/html/typo3/var/cache/code/di/66c5cee5312b3891804751.temp): Failed to open stream: No such file or directory in /var/www/html/typo3/vendor/typo3/cms-core/Classes/Cache/Backend/SimpleFileBackend.php line 229- Exception: PHP Warning: file_put_contents(/var/www/html/typo3/var/cache/code/di/66c5cee5312b3891804751.temp): Failed to open stream: No such file or directory in /var/www/html/typo3/vendor/typo3/cms-core/Classes/Cache/Backend/SimpleFileBackend.php line 229, in file /var/www/html/typo3/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php:138 - {"mode":"WEB","application_mode":"BE","exception_class":"TYPO3\\CMS\\Core\\Error\\Exception","exception_code":1476107295,"file":"/var/www/html/typo3/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php","line":138,"message":"PHP Warning: file_put_contents(/var/www/html/typo3/var/cache/code/di/66c5cee5312b3891804751.temp): Failed to open stream: No such file or directory in /var/www/html/typo3/vendor/typo3/cms-core/Classes/Cache/Backend/SimpleFileBackend.php line 229","request_url":"https://webcms7-test.inet.dkfz-heidelberg.de/typo3/install.php?install%5Bcontroller%5D=upgrade&install%5Bcontext%5D=&install%5Baction%5D=upgradeWizardsDoneUpgrades","exception":"TYPO3\\CMS\\Core\\Error\\Exception: PHP Warning: file_put_contents(/var/www/html/typo3/var/cache/code/di/66c5cee5312b3891804751.temp): Failed to open stream: No such file or directory in /var/www/html/typo3/vendor/typo3/cms-core/Classes/Cache/Backend/SimpleFileBackend.php line 229 in /var/www/html/typo3/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php:138\nStack trace:\n#0 [internal function]: TYPO3\\CMS\\Core\\Error\\ErrorHandler->handleError()\n#1 /var/www/html/typo3/vendor/typo3/cms-core/Classes/Cache/Backend/SimpleFileBackend.php(229): file_put_contents()\n#2 /var/www/html/typo3/vendor/typo3/cms-core/Classes/DependencyInjection/Cache/ContainerBackend.php(36): TYPO3\\CMS\\Core\\Cache\\Backend\\SimpleFileBackend->set()\n#3 /var/www/html/typo3/vendor/typo3/cms-core/Classes/Cache/Frontend/PhpFrontend.php(61): TYPO3\\CMS\\Core\\DependencyInjection\\Cache\\ContainerBackend->set()\n#4 /var/www/html/typo3/vendor/typo3/cms-core/Classes/DependencyInjection/ContainerBuilder.php(165): TYPO3\\CMS\\Core\\Cache\\Frontend\\PhpFrontend->set()\n#5 /var/www/html/typo3/vendor/typo3/cms-core/Classes/DependencyInjection/ContainerBuilder.php(85): TYPO3\\CMS\\Core\\DependencyInjection\\ContainerBuilder->dumpContainer()\n#6 /var/www/html/typo3/vendor/typo3/cms-core/Classes/Core/BootService.php(58): TYPO3\\CMS\\Core\\DependencyInjection\\ContainerBuilder->createDependencyInjectionContainer()\n#7 /var/www/html/typo3/vendor/typo3/cms-core/Classes/Core/BootService.php(47): TYPO3\\CMS\\Core\\Core\\BootService->prepareContainer()\n#8 /var/www/html/typo3/vendor/typo3/cms-install/Classes/Service/LateBootService.php(30): TYPO3\\CMS\\Core\\Core\\BootService->getContainer()\n#9 /var/www/html/typo3/vendor/typo3/cms-core/Classes/Core/BootService.php(117): TYPO3\\CMS\\Install\\Service\\LateBootService->getContainer()\n#10 /var/www/html/typo3/vendor/typo3/cms-install/Classes/Service/LateBootService.php(35): TYPO3\\CMS\\Core\\Core\\BootService->loadExtLocalconfDatabaseAndExtTables()\n#11 /var/www/html/typo3/vendor/typo3/cms-install/Classes/Controller/UpgradeController.php(1069): TYPO3\\CMS\\Install\\Service\\LateBootService->loadExtLocalconfDatabaseAndExtTables()\n#12 /var/www/html/typo3/vendor/typo3/cms-install/Classes/Middleware/Maintenance.php(234): TYPO3\\CMS\\Install\\Controller\\UpgradeController->upgradeWizardsDoneUpgradesAction()\n#13 /var/www/html/typo3/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(111): TYPO3\\CMS\\Install\\Middleware\\Maintenance->process()\n#14 /var/www/html/typo3/vendor/typo3/cms-core/Classes/Middleware/NormalizedParamsAttribute.php(41): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#15 /var/www/html/typo3/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\\NormalizedParamsAttribute->process()\n#16 /var/www/html/typo3/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(70): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()\n#17 /var/www/html/typo3/vendor/typo3/cms-core/Classes/Http/AbstractApplication.php(80): TYPO3\\CMS\\Core\\Http\\MiddlewareDispatcher->handle()\n#18 /var/www/html/typo3/vendor/typo3/cms-install/Classes/Http/Application.php(46): TYPO3\\CMS\\Core\\Http\\AbstractApplication->handle()\n#19 /var/www/html/typo3/vendor/typo3/cms-core/Classes/Http/AbstractApplication.php(92): TYPO3\\CMS\\Install\\Http\\Application->handle()\n#20 /var/www/html/typo3/public/typo3/install.php(19): TYPO3\\CMS\\Core\\Http\\AbstractApplication->run()\n#21 /var/www/html/typo3/public/typo3/install.php(20): {closure}()\n#22 {main}"}

composer show作曲家升级后的输出:

bacon/bacon-qr-code                           2.0.8            BaconQrCode is a QR code generator for PHP.
christian-riesen/base32                       1.6.0            Base32 encoder/decoder according to RFC 4648
dasprid/enum                                  1.0.6            PHP 7.1 enum implementation
doctrine/annotations                          2.0.1            Docblock Annotations Parser
doctrine/cache                                2.2.0            PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and ...
doctrine/dbal                                 3.9.0            Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.
doctrine/deprecations                         1.1.3            A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.
doctrine/event-manager                        2.0.1            The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.
doctrine/instantiator                         2.0.0            A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer                                3.0.1            PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.
egulias/email-validator                       4.0.2            A library for validating emails against several RFCs
enshrined/svg-sanitize                        0.18.0           An SVG sanitizer for PHP
firebase/php-jwt                              6.10.1           A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.
guzzlehttp/guzzle                             7.9.2            Guzzle is a PHP HTTP client library
guzzlehttp/promises                           2.0.3            Guzzle promises library
guzzlehttp/psr7                               2.7.0            PSR-7 message implementation that also provides common utility methods
helhum/config-loader                          0.12.5           Generic config loader with context and environment support.
helhum/php-error-reporting                    1.0.1            Create ErrorException with clean trace from PHP error handler errors, inspired by Sentry PHP SDK
helhum/typo3-console                          8.1.1            A reliable and powerful command line interface for TYPO3 CMS
lolli42/finediff                              1.1.1            PHP implementation of a Fine granularity Diff engine
masterminds/html5                             2.9.0            An HTML5 parser and serializer.
nikic/php-parser                              4.19.1           A PHP parser written in PHP
oheil/core-facilities-genomics-and-proteomics dev-webcms7-test core-facilities-genomics-and-proteomics
phpdocumentor/reflection-common               2.2.0            Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock             5.4.1            With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a Doc...
phpdocumentor/type-resolver                   1.8.2            A PSR-5 based resolver of Class names, Types and Structural Element Names
phpstan/phpdoc-parser                         1.29.1           PHPDoc parser with support for nullable, intersection and generic types
psr/cache                                     3.0.0            Common interface for caching libraries
psr/clock                                     1.0.0            Common interface for reading the clock.
psr/container                                 2.0.2            Common Container Interface (PHP FIG PSR-11)
psr/event-dispatcher                          1.0.0            Standard interfaces for event handling.
psr/http-client                               1.0.3            Common interface for HTTP clients
psr/http-factory                              1.1.0            PSR-17: Common interfaces for PSR-7 HTTP message factories
psr/http-message                              2.0              Common interface for HTTP messages
psr/http-server-handler                       1.0.2            Common interface for HTTP server-side request handler
psr/http-server-middleware                    1.0.2            Common interface for HTTP server-side middleware
psr/log                                       3.0.0            Common interface for logging libraries
ralouphie/getallheaders                       3.0.3            A polyfill for getallheaders.
symfony/cache                                 7.1.3            Provides extended PSR-6, PSR-16 (and tags) implementations
symfony/cache-contracts                       3.5.0            Generic abstractions related to caching
symfony/clock                                 7.1.1            Decouples applications from the system clock
symfony/config                                7.1.1            Helps you find, load, combine, autofill and validate configuration values of any kind
symfony/console                               7.1.3            Eases the creation of beautiful and testable command line interfaces
symfony/dependency-injection                  7.1.3            Allows you to standardize and centralize the way objects are constructed in your application
symfony/deprecation-contracts                 3.5.0            A generic function and convention to trigger deprecation notices
symfony/doctrine-messenger                    7.1.2            Symfony Doctrine Messenger Bridge
symfony/event-dispatcher                      7.1.1            Provides tools that allow your application components to communicate with each other by dispatching events and listening to them
symfony/event-dispatcher-contracts            3.5.0            Generic abstractions related to dispatching event
symfony/expression-language                   7.1.1            Provides an engine that can compile and evaluate expressions
symfony/filesystem                            7.1.2            Provides basic utilities for the filesystem
symfony/finder                                7.1.3            Finds files and directories via an intuitive fluent interface
symfony/http-foundation                       7.1.3            Defines an object-oriented layer for the HTTP specification
symfony/mailer                                7.1.2            Helps sending emails
symfony/messenger                             7.1.3            Helps applications send and receive messages to/from other applications or via message queues
symfony/mime                                  7.1.2            Allows manipulating MIME messages
symfony/options-resolver                      7.1.1            Provides an improved replacement for the array_replace PHP function
symfony/polyfill-ctype                        1.30.0           Symfony polyfill for ctype functions
symfony/polyfill-intl-grapheme                1.30.0           Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-idn                     1.30.0           Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer              1.30.0           Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring                     1.30.0           Symfony polyfill for the Mbstring extension
symfony/polyfill-php72                        1.30.0           Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php83                        1.30.0           Symfony polyfill backporting some PHP 8.3+ features to lower PHP versions
symfony/polyfill-uuid                         1.30.0           Symfony polyfill for uuid functions
symfony/process                               7.1.3            Executes commands in sub-processes
symfony/property-access                       7.1.1            Provides functions to read and write from/to an object or array using a simple string notation
symfony/property-info                         7.1.3            Extracts information about PHP class' properties using metadata of popular sources
symfony/rate-limiter                          7.1.1            Provides a Token Bucket implementation to rate limit input and output in your application
symfony/routing                               7.1.3            Maps an HTTP request to a set of configuration variables
symfony/service-contracts                     3.5.0            Generic abstractions related to writing services
symfony/string                                7.1.3            Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way
symfony/type-info                             7.1.1            Extracts PHP types information.
symfony/uid                                   7.1.1            Provides an object-oriented API to generate and represent UIDs
symfony/var-dumper                            7.1.3            Provides mechanisms for walking through any arbitrary PHP variable
symfony/var-exporter                          7.1.2            Allows exporting any serializable PHP data structure to plain PHP code
symfony/yaml                                  7.1.1            Loads and dumps YAML files
typo3/class-alias-loader                      1.1.4            Amends the composer class loader to support class aliases to provide backwards compatibility for packages
typo3/cms-adminpanel                          12.4.19          TYPO3 CMS Admin Panel - The Admin Panel displays information about your site in the frontend and contains a range of metrics including debug...
typo3/cms-backend                             12.4.19          TYPO3 CMS backend
typo3/cms-belog                               12.4.19          TYPO3 CMS Log - View logs from the sys_log table in the TYPO3 backend modules System>Log
typo3/cms-beuser                              12.4.19          TYPO3 CMS Backend User - TYPO3 backend module System>Backend Users for managing backend users and groups.
typo3/cms-cli                                 3.1.1            TYPO3 command line binary
typo3/cms-composer-installers                 5.0.1            TYPO3 CMS Installers
typo3/cms-core                                12.4.19          TYPO3 CMS Core
typo3/cms-dashboard                           12.4.19          TYPO3 CMS Dashboard - TYPO3 backend module used to configure and create backend widgets.
typo3/cms-extbase                             12.4.19          TYPO3 CMS Extbase - Extension framework to create TYPO3 frontend plugins and TYPO3 backend modules.
typo3/cms-extensionmanager                    12.4.19          TYPO3 CMS Extension Manager - Backend module (Admin Tools>Extensions) for viewing and managing extensions.
typo3/cms-felogin                             12.4.19          TYPO3 CMS Frontend Login - A template-based plugin to log in website users in the TYPO3 frontend.
typo3/cms-filelist                            12.4.19          TYPO3 CMS Filelist - TYPO3 backend module (File>Filelist) used for managing files.
typo3/cms-filemetadata                        12.4.19          TYPO3 CMS File Metadata - Adds additional metadata to file management.
typo3/cms-fluid                               12.4.19          TYPO3 CMS Fluid Integration - Integration of the Fluid templating engine into TYPO3.
typo3/cms-fluid-styled-content                12.4.19          TYPO3 CMS Fluid Styled Content - Fluid templates for TYPO3 content elements.
typo3/cms-form                                12.4.19          TYPO3 CMS Form - Flexible TYPO3 frontend form framework that comes with a backend editor interface.
typo3/cms-frontend                            12.4.19          TYPO3 CMS Frontend
typo3/cms-impexp                              12.4.19          TYPO3 CMS Import/Export - Tool for importing and exporting records using XML or the custom T3D format.
typo3/cms-indexed-search                      12.4.19          TYPO3 CMS Indexed Search - Provides indexing functionality for TYPO3 pages and records as well as files including PDF, Word, HTML and plain ...
typo3/cms-info                                12.4.19          TYPO3 CMS Info - TYPO3 backend module for displaying information, such as a pagetree overview and localization information.
typo3/cms-install                             12.4.19          TYPO3 CMS Install Tool - The Install Tool is used for installation, upgrade, system administration and setup tasks.
typo3/cms-linkvalidator                       12.4.19          TYPO3 CMS LinkValidator - Checks for broken links and displays results in the (Info>LinkValidator) backend module.
typo3/cms-lowlevel                            12.4.19          TYPO3 CMS Lowlevel - Technical analysis of the system. This includes raw database search, checking relations, counting pages and records etc.
typo3/cms-opendocs                            12.4.19          TYPO3 CMS Open Docs - Shows opened documents for the TYPO3 backend user.
typo3/cms-reactions                           12.4.19          TYPO3 CMS Reactions - Handle incoming Webhooks for TYPO3
typo3/cms-recycler                            12.4.19          TYPO3 CMS Recycler - Restore deleted records or remove them from the database permanently.
typo3/cms-redirects                           12.4.19          TYPO3 CMS Redirects - Create manual redirects, list existing redirects and automatically createredirects on slug changes.
typo3/cms-reports                             12.4.19          TYPO3 CMS Reports - Show status reports and installed services in the (System>Reports) backend module.
typo3/cms-rte-ckeditor                        12.4.19          TYPO3 CMS RTE CKEditor - Integration of CKEditor as a Rich Text Editor for the TYPO3 backend.
typo3/cms-scheduler                           12.4.19          TYPO3 CMS Scheduler - Schedule tasks to run once or periodically at a specific time.
typo3/cms-seo                                 12.4.19          TYPO3 CMS SEO - SEO features including specific fields for SEO purposes, rendering of HTML meta tags and sitemaps.
typo3/cms-setup                               12.4.19          TYPO3 CMS Setup - Allows users to edit a limited set of options for their user profile, including preferred language, their name and email a...
typo3/cms-sys-note                            12.4.19          TYPO3 CMS System Notes - Records with messages which can be placed on any page and contain instructions or other information related to a pa...
typo3/cms-t3editor                            12.4.19          TYPO3 CMS T3Editor - JavaScript-driven editor with syntax highlighting and code completion. Based on CodeMirror.
typo3/cms-tstemplate                          12.4.19          TYPO3 CMS TypoScript - TYPO3 backend module for the management of TypoScript records for the CMS frontend.
typo3/cms-viewpage                            12.4.19          TYPO3 CMS Viewpage - Use the (Web>View) backend module to view a frontend page inside the TYPO3 backend.
typo3/cms-webhooks                            12.4.19          TYPO3 CMS Webhooks - Handle outgoing Webhooks for TYPO3
typo3/cms-workspaces                          12.4.19          TYPO3 CMS Workspaces - Workflows with custom stages and versioning for a better editing and publishing experience.
typo3/html-sanitizer                          2.2.0            HTML sanitizer aiming to provide XSS-safe markup based on explicitly allowed tags, attributes and values.
typo3/minimal                                 12.4.0           Minimal required set of TYPO3 extensions
typo3fluid/fluid                              2.14.1           The TYPO3 Fluid template rendering engine
webmozart/assert                              1.11.0           Assertions to validate method input/output with nice error messages.

尝试“维护”->“分析数据库结构”时也出现同样的问题。只有一个粉红色的弹出错误,但其他地方没有其他错误。

其他工具(例如“扫描扩展文件”)似乎运行良好。

当我尝试打开前端时,我只得到一个空白页。apache2 访问日志显示 HTTP 代码 200。Typo3 日志中没有错误。php 日志中没有错误。

原始站点在相同环境下运行良好(Typo3 v11、php-8.3、composer 等)

在作曲家升级步骤之后,由于无法解决的错误,必须删除其中的typo3cms install:fixfolderstructure部分内容。composer.json

我的诊断可能性已经到了极限,所以我想问一下,我该怎么做?我还能做哪些额外的诊断?是否已经知道类似的情况?


新具体细节1:

After removing `var/cache` the folder `var/cache/code/di/` is created
but empty when I reload the Install Backend in the browser.
After clicking on Upgrade Wizard, the above error appeared with
detailed Ajax error (just the error from the Typo3 log file as given
above but formatted and the file
`DependencyInjectionContainer_3d4d55ae0d9e911f84709f95e71961a7e01b1a46.php`
is created.
Now I created (touch) the file `66c71554afddf725068450.temp` 
which is the file from the detailed error, put all access rights on it.

Tried Upgrade Wizard again, same result, no success.   

更新 1:

user@host:/var/www/html/typo3$ vendor/bin/typo3 install:fixfolderstructure
The following directory structure has been fixed:
Path /public/fileadmin is not a directory

这是预料之中的,因为public/fileadmin它是指向网站使用的大量文件的符号链接。到目前为止,这从未成为问题。我不认为这与上述问题有关,但如果人们认为我应该尝试,我会尝试任何方法。

typo3
  • 1 个回答
  • 42 Views
Martin Hope
Doku
Asked: 2024-08-15 00:03:59 +0800 CST

n:1 关系中的水合对象 TYPO3

  • 6

在我的 Extbase 扩展中,我有两个类 ParentUser 和 Child。

子表保存对 parent_user 的引用

CREATE TABLE tx_xxx_domain_model_child (
    ...
    parent_user int(11) unsigned DEFAULT '0'
)

parent_user表不了解 Child。是否可以以某种方式补充 ParentUser 对象,使其包含子级的 ObjectStorage(或类似对象)。我想呈现所有 ParentUser 及其子级的列表。

注意,我不希望模型知道任何存储库。使用 ProppertyMapper 会更好。


更多代码:

三氯乙酸酯:

...
'parent_user' => [
    'exclude' => false,
    'label' => 'LLL:EXT:xxx/Resources/Private/Language/locallang_db.xlf:tx_xxx_domain_model_child.parent_user',
    'description' => 'LLL:EXT:xxx/Resources/Private/Language/locallang_db.xlf:tx_xxx_domain_model_child.parent_user.description',
    'config' => [
        'type' => 'select',
        'renderType' => 'selectSingle',
        'foreign_table' => 'tx_xxx_domain_model_parentuser',
        'default' => 0,
        'minitems' => 0,
        'maxitems' => 1,
    ],
],

CREATE TABLE tx_xxx_domain_model_child (
    first_name varchar(255) DEFAULT NULL,
    last_name varchar(255) DEFAULT NULL,
    date_of_archive int(11) NOT NULL DEFAULT '0',
    state int(11) NOT NULL DEFAULT '0',
    parent_user int(11) unsigned DEFAULT '0'
);

CREATE TABLE tx_xxx_domain_model_parentuser (
    first_name varchar(255) DEFAULT NULL,
    last_name varchar(255) DEFAULT NULL,
    email varchar(255) DEFAULT NULL,
    city varchar(255) DEFAULT NULL,
    zip varchar(255) DEFAULT NULL,
    region varchar(255) DEFAULT NULL,
    country varchar(255) DEFAULT NULL,
    address varchar(255) DEFAULT NULL,
    date_of_archive int(11) NOT NULL DEFAULT '0',
    state int(11) NOT NULL DEFAULT '0'
);

使用:

  • TYPO3 v12.4.18 + Extbase
  • PHP 8.2.22
typo3
  • 2 个回答
  • 30 Views
Martin Hope
webman
Asked: 2024-06-04 21:14:44 +0800 CST

TYPO3 EXT:femanager 扩展了选择字段

  • 5

我按照如何使用自己的字段扩展 femanager 的示例...(https://docs.typo3.org/p/in2code/femanager/7.3/en-us/Features/NewFields/Index.html)

我需要添加一个列出多种用户类型的选择字段...我已经解决了这个错误:

The argument "options" was registered with type "array", but is of type "string" in view helper "In2code\Femanager\ViewHelpers\Form\SelectViewHelper".

我的新字段部分调用表单字段,如下所示:

<femanager:form.select
  id="femanager_field_usertype"
  property="userType"
  options="{1:private, 2:business, 3:real estate agent}"
  defaultOption="{f:translate(key:'pleaseChoose')}"
  class="form-control"
  additionalAttributes="{femanager:Validation.FormValidationData(settings:settings,fieldName:'userType')}" />

我与:

  • TYPO3 V11.5.37
  • 女性经理7.3.1
typo3
  • 1 个回答
  • 16 Views
Martin Hope
Moongazer
Asked: 2024-05-15 00:17:56 +0800 CST

TYPO3 中的路由定义未考虑扩展名和插件名

  • 5

假设我们有 2 个 TYPO3 扩展,每个扩展都包含一个 Extbase 插件,并且每个扩展都提供路由器 YAML 配置:

# Route config for myext_aaa which contains the Extbase plugin "Checkout" using CheckoutController
routeEnhancers:
  MyextAaaCheckout:
    type: Extbase
    extension: myext_aaa
    plugin: Checkout
    routes:
      -
        routePath: '/{localized-order-new}/{course-name}'
        _controller: 'Checkout::newOrder'
        _arguments:
          course-name: 'course'
    aspects:
      course-name:
        type: PersistedAliasMapper
        tableName: my_course_table
        routeFieldName: slug
      localized-order-new:
        type: LocaleModifier
        default: 'order'
        localeMap:
          - locale: 'de_DE.*'
            value: 'buchen'

# Route config for myext_zzz which contains the Extbase plugin "CheckoutXxx" using CheckoutXxxController
routeEnhancers:
  MyextZzzCheckoutXxx:
    type: Extbase
    extension: mzext_zzz
    plugin: CheckoutXxx
    routes:
      -
        routePath: '/{zzz-localized-order-new}/{course-name}'
        _controller: 'CheckoutXxx::newOrder'
        _arguments:
          course-name: 'course'
    aspects:
      course-name:
        type: PersistedAliasMapper
        tableName: my_course_table
        routeFieldName: slug
      zzz-localized-order-new:
        type: LocaleModifier
        default: 'order'
        localeMap:
          - locale: 'de_DE.*'
            value: 'buchen'

现在我们有 2 个页面,每个页面包含一个插件:

  • 在第 1 页,插件“Checkout”位于:my-site.net/page1/buchen/how-to-code-course
  • 在第 2 页上,插件“CheckoutXxx”位于:my-site.net/page2/buchen/how-to-code-course

问题

打开 page1 的 URL 会导致错误,因为CheckoutController::orderNewAction(Course $course)缺少$course参数!似乎/buchen/{course-name}使用了“mzext_zzz”中的路由配置(或覆盖第一个定义)。但为什么?路由器是否没有extension: mzext_zzz考虑plugin: CheckoutXxx路由定义?

或者换句话说:该路由怎么可能/buchen/{course-name}被来自两个不同扩展的两个完全不同的插件使用?

typo3
  • 1 个回答
  • 11 Views
Martin Hope
Ganybhat-Satvam Software
Asked: 2024-01-17 13:52:29 +0800 CST

TYPO3 V11 t3d 导入保留 crdate 和 tstamp 值

  • 5

我正在从 t3d 导入从另一个实例导出的typo3自定义扩展记录。比如说它的一个事件记录。导入后,事件记录 crdate 和 tstamp 值将更改为当前日期和时间。但对我来说,保留这些时间戳以查看它的创建时间非常重要。我检查了一下,页面和 tt_content 记录也发生了同样的事情。是否有任何设置或解决方法可以解决此问题?

谢谢。

typo3
  • 1 个回答
  • 37 Views
Martin Hope
GameOverflow
Asked: 2024-01-03 23:18:49 +0800 CST

清空typo3conf目录

  • 5

我用 Typo3 12 做了一个网站,一切正常,但完成后我发现 public/typo3conf/ 目录是空的。我想托管我的网站,但认为它将来会出现问题。我需要这个目录中的哪些文件?

如果您需要更多信息,请询问我。先感谢您。

typo3
  • 1 个回答
  • 27 Views
Martin Hope
Stoppeye
Asked: 2023-09-21 23:16:39 +0800 CST

TYPO3 TemplateService 弃用:如何获取插件打字稿?(不在 FE 上下文中并且没有 extbase)

  • 6

在 V12 中,TemplateService和TypoScriptParser类已被标记为已弃用(#99020 - 弃用 TypoScript/TemplateService)。那里给出的迁移建议非常稀缺(带有 PSR-7 请求的 FE 范围)并且坦率地说不能令人满意。

plugin.tx_myplugin_pi1 { ... }如果您不在FE 上下文中,例如在中间件、控制台命令或 BE 模块中,如何读取插件的 TypoScript 配置(类似)?有时你还想读取不同扩展的 TS 配置。
是的,我知道,插件是一个 FE 内容元素,并且在特定页面的上下文中执行(该页面的根线中可能有一系列继承的 TS 模板)等等。

但仍然有一些有效的场景需要您这样做。假设我们有一个控制台命令,它将插件生成的数据发送到远程 API,并且我们希望使用与最初生成数据的页面上活动的相同设置来处理数据。如果控制台命令具有该页面 uid 的命令行参数,则获取该特定 TS 配置应该不成问题。

到目前为止,我使用的辅助方法可能看起来像这样:

private function getTsConf($pageUid, $pluginName = 'tx_myplugin_pi1') {
    $rootlineUtility = GeneralUtility::makeInstance(RootlineUtility::class, $pageUid);
    $rootline = $rootlineUtility->get();

    $templateService = GeneralUtility::makeInstance(TemplateService::class);
    $templateService->tt_track = 0;
    $templateService->runThroughTemplates($rootline);
    $templateService->generateConfig();

    $tsService = GeneralUtility::makeInstance(TypoScriptService::class);
    return isset($templateService->setup['plugin.'][$pluginName.'.']) 
        ? $tsService->convertTypoScriptArrayToPlainArray($templateService->setup['plugin.'][$pluginName.'.']) 
        : [];
}

TemplateService那么,在这种情况下,如果不再可用,您应该做什么?

对我来说,这是我几乎在每个项目中都会遇到的问题。我真的认为,这是一项标准任务,应该很容易处理。但我觉得缺乏针对非 FE 场景的文档。

typo3
  • 1 个回答
  • 31 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    重新格式化数字,在固定位置插入分隔符

    • 6 个回答
  • Marko Smith

    为什么 C++20 概念会导致循环约束错误,而老式的 SFINAE 不会?

    • 2 个回答
  • Marko Smith

    VScode 自动卸载扩展的问题(Material 主题)

    • 2 个回答
  • Marko Smith

    Vue 3:创建时出错“预期标识符但发现‘导入’”[重复]

    • 1 个回答
  • Marko Smith

    具有指定基础类型但没有枚举器的“枚举类”的用途是什么?

    • 1 个回答
  • Marko Smith

    如何修复未手动导入的模块的 MODULE_NOT_FOUND 错误?

    • 6 个回答
  • Marko Smith

    `(表达式,左值) = 右值` 在 C 或 C++ 中是有效的赋值吗?为什么有些编译器会接受/拒绝它?

    • 3 个回答
  • Marko Smith

    在 C++ 中,一个不执行任何操作的空程序需要 204KB 的堆,但在 C 中则不需要

    • 1 个回答
  • Marko Smith

    PowerBI 目前与 BigQuery 不兼容:Simba 驱动程序与 Windows 更新有关

    • 2 个回答
  • Marko Smith

    AdMob:MobileAds.initialize() - 对于某些设备,“java.lang.Integer 无法转换为 java.lang.String”

    • 1 个回答
  • Martin Hope
    Fantastic Mr Fox msvc std::vector 实现中仅不接受可复制类型 2025-04-23 06:40:49 +0800 CST
  • Martin Hope
    Howard Hinnant 使用 chrono 查找下一个工作日 2025-04-21 08:30:25 +0800 CST
  • Martin Hope
    Fedor 构造函数的成员初始化程序可以包含另一个成员的初始化吗? 2025-04-15 01:01:44 +0800 CST
  • Martin Hope
    Petr Filipský 为什么 C++20 概念会导致循环约束错误,而老式的 SFINAE 不会? 2025-03-23 21:39:40 +0800 CST
  • Martin Hope
    Catskul C++20 是否进行了更改,允许从已知绑定数组“type(&)[N]”转换为未知绑定数组“type(&)[]”? 2025-03-04 06:57:53 +0800 CST
  • Martin Hope
    Stefan Pochmann 为什么 {2,3,10} 和 {x,3,10} (x=2) 的顺序不同? 2025-01-13 23:24:07 +0800 CST
  • Martin Hope
    Chad Feller 在 5.2 版中,bash 条件语句中的 [[ .. ]] 中的分号现在是可选的吗? 2024-10-21 05:50:33 +0800 CST
  • Martin Hope
    Wrench 为什么双破折号 (--) 会导致此 MariaDB 子句评估为 true? 2024-05-05 13:37:20 +0800 CST
  • Martin Hope
    Waket Zheng 为什么 `dict(id=1, **{'id': 2})` 有时会引发 `KeyError: 'id'` 而不是 TypeError? 2024-05-04 14:19:19 +0800 CST
  • Martin Hope
    user924 AdMob:MobileAds.initialize() - 对于某些设备,“java.lang.Integer 无法转换为 java.lang.String” 2024-03-20 03:12:31 +0800 CST

热门标签

python javascript c++ c# java typescript sql reactjs html

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve