AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / coding / 问题

Perguntas[typo3](coding)

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

Como aninhar SplitProcessors em TYPO3?

  • 6

Preciso dividir uma string por linha e depois por |.

Inicialmente, usei um CommaSeparatedValueProcessorwith fieldDelimiter = |que funciona com strings simples, mas agora as strings contêm "and 'para medições, o que o impede de funcionar.

Tentei definir fieldEnclosurealgo diferente, "mas isso não parece ajudar.

Então pensei que poderia voltar para um SplitProcessor. Existe uma maneira de aninhá-lo para obter as duas divisões?

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

Posso alterar o renderType de um campo usando o TSConfig?

  • 5

Como altero o renderType de um campo no TSConfig?

Quero remover o assistente no elemento Table para que ele seja exibido como uma textarea regular. Isso é possível usando Page TSConfig?

Algo como:

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

Posso definir uma biblioteca de typoscript dependendo da presença de um valor de registro?

  • 6

Tenho a tarefa de exibir um determinado caminho de trilha de navegação se um valor de registro especial for definido. Tentei acessar esses valores de registro diretamente no fluid, mas eles parecem não ser avaliáveis ​​(condições com, por exemplo, "maior que" não funcionam de jeito nenhum). Então, provavelmente criei uma TS-lib e tentei o TS blow. Você consegue ver o que eu quero fazer? É possível definir "lib.defaultproductpath como 1 ou 0, dependendo desse valor de registro?:

# 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 respostas
  • 17 Views
Martin Hope
oheil
Asked: 2024-08-22 17:46:59 +0800 CST

Atualização Typo3 de v11 para v12, Assistente de atualização não funciona

  • 5

Atualização 3: Solução encontrada:

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.

MUITO OBRIGADO A "Boku No Maxi" QUE ME LEVOU À SOLUÇÃO!


Atualização 2: Razão para este problema encontrada, mas ainda não há solução:

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.

Problema:

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

Ambiente:

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.

Erro:

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.

O erro completo:

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 showsaída após atualização do compositor:

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.

Tentar Manutenção -> Analisar Estrutura do Banco de Dados tem o mesmo problema. Apenas um único erro pop-up rosa, mas nada mais em lugar nenhum.

As outras ferramentas, como por exemplo Scan Extension Files, parecem funcionar bem.

Quando tento abrir o front-end, recebo apenas uma página em branco. O log de acesso do Apache2 mostra um código HTTP 200. Nenhum erro no log do Typo3. Nenhum erro no log do php.

O site original está funcionando bem com o mesmo ambiente (Typo3 v11, php-8.3, compositor, ...)

Após a etapa de atualização do compositor, as typo3cms install:fixfolderstructurepartes composer.jsontiveram que ser removidas, devido a erros, que não puderam ser resolvidos.

Estou no fim das minhas possibilidades de diagnóstico, então pergunto aqui, como posso proceder? Que diagnósticos adicionais posso fazer? Já se sabe algo semelhante?


Novo detalhe específico 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.   

Atualização 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

Isto é esperado, assim como public/fileadminum link simbólico para o grande conjunto de arquivos usados ​​no site. Nunca foi um problema até agora. Não acho que esteja relacionado ao problema acima, mas tentarei de tudo, se as pessoas acharem que devo.

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

Hidratando objetos em relacionamentos n:1 TYPO3

  • 6

Dentro da minha extensão Extbase, tenho duas classes ParentUser e Child.

A tabela filho contém uma referência ao parent_user

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

A tabela parent_user não conhece o Filho. É possível hidratar o objeto ParentUser de tal forma que ele contenha um ObjectStorage (ou similar) de filhos. Quero renderizar uma lista de todos os ParentUsers com seus filhos.

Observe que não quero que o modelo conheça nenhum repositório. Seria bom usar o ProppertyMapper.


Mais um pouco de código:

ACT:

...
'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'
);

Usando:

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

TYPO3 EXT:femanager estendido com um campo de seleção

  • 5

Segui o exemplo de como estender o femanager com meus próprios campos ... ( https://docs.typo3.org/p/in2code/femanager/7.3/en-us/Features/NewFields/Index.html )

Preciso adicionar um campo de seleção que liste vários tipos de usuários ... Estou trabalhando até esse erro:

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

meu novo campo parcial chama o campo do formulário assim:

<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')}" />

Eu trabalho com:

  • TIPO3 V11.5.37
  • gerente feminino 7.3.1
typo3
  • 1 respostas
  • 16 Views
Martin Hope
Moongazer
Asked: 2024-05-15 00:17:56 +0800 CST

A definição da rota não leva em consideração o nome da extensão e o nome do plugin no TYPO3

  • 5

Digamos que temos 2 extensões TYPO3, cada uma contendo um plugin Extbase e cada uma fornecendo uma configuração YAML do roteador:

# 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'

Agora temos 2 páginas, cada uma contendo um dos plugins:

  • Na página1 o plugin "Checkout" está localizado:my-site.net/page1/buchen/how-to-code-course
  • Na página2 o plugin "CheckoutXxx" está localizado:my-site.net/page2/buchen/how-to-code-course

O problema

Abrir o URL da página1 resulta em erro, pois CheckoutController::orderNewAction(Course $course)falta o $courseparâmetro! Parece que a configuração da rota /buchen/{course-name}de "mzext_zzz" é usada (ou substitui a primeira definição). Mas por que? O roteador não leva extension: mzext_zzzem plugin: CheckoutXxxconsideração a definição da rota?

Ou em outras palavras: como é possível que a rota /buchen/{course-name}possa ser utilizada por dois plugins completamente diferentes de duas extensões diferentes?

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

A importação TYPO3 V11 t3d preserva os valores crdate e tstamp

  • 5

Estou importando registros de extensão personalizada typo3 do t3d que foram exportados de outra instância. Digamos, por exemplo, que seja um registro de evento. Após importá-lo, os valores crdate e tstamp dos registros de eventos são alterados para a data e hora atuais. Mas é muito importante para mim preservar esse carimbo de data e hora para ver quando ele foi criado. E eu verifiquei isso, a mesma coisa acontecendo com páginas e registros tt_content. Existe alguma configuração ou solução alternativa para corrigir isso?

Obrigado.

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

Diretório typo3conf vazio

  • 5

Fiz um site com Typo3 12 e tudo funciona bem, mas depois de terminar descobri que o diretório public/typo3conf/ está vazio. Quero hospedar meu site e acho que isso causará problemas no futuro. Quais arquivos eu preciso neste diretório?

Se você precisar de mais informações, por favor me pergunte. Agradeço antecipadamente.

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

Descontinuação do TYPO3 TemplateService: como obter o plugin typoscript? (NÃO no contexto FE e SEM extbase)

  • 6

Na V12, as classes TemplateServicee TypoScriptParserforam marcadas como obsoletas ( #99020 - Deprecate TypoScript/TemplateService ). Os conselhos de migração aí fornecidos são muito escassos (âmbito FE com pedido PSR-7) e francamente insatisfatórios.

Como você pode ler a configuração TypoScript de um plugin (algo como plugin.tx_myplugin_pi1 { ... }), se você não estiver no contexto FE, por exemplo, em um middleware, comando de console ou módulo BE? Às vezes você também deseja ler a configuração TS de uma extensão diferente.
E sim, eu sei, um plugin é um elemento de conteúdo FE e é executado no contexto de uma página específica (para a qual pode haver uma série de modelos TS herdados na linha raiz) etc.

Mas ainda existem cenários válidos em que você precisa disso. Digamos que temos um comando de console que envia dados gerados por um plugin para uma API remota e queremos processar os dados com as mesmas configurações que estão ativas na página, onde os dados são gerados em primeiro lugar. Se o comando do console tiver um parâmetro de linha de comando para o uid dessa página, não deverá ser um problema obter essa configuração TS específica.

Até agora, usei métodos auxiliares que poderiam ser parecidos com isto:

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.'.']) 
        : [];
}

Então, o que você deve fazer nesse caso, se TemplateServicenão estiver mais disponível?

Para mim, esse é um problema que encontro em quase todos os projetos. Eu realmente acho que esta é uma tarefa padrão que deve ser fácil de realizar. Mas sinto que falta documentação para cenários não FE.

typo3
  • 1 respostas
  • 31 Views

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Reformatar números, inserindo separadores em posições fixas

    • 6 respostas
  • Marko Smith

    Por que os conceitos do C++20 causam erros de restrição cíclica, enquanto o SFINAE antigo não?

    • 2 respostas
  • Marko Smith

    Problema com extensão desinstalada automaticamente do VScode (tema Material)

    • 2 respostas
  • Marko Smith

    Vue 3: Erro na criação "Identificador esperado, mas encontrado 'import'" [duplicado]

    • 1 respostas
  • Marko Smith

    Qual é o propósito de `enum class` com um tipo subjacente especificado, mas sem enumeradores?

    • 1 respostas
  • Marko Smith

    Como faço para corrigir um erro MODULE_NOT_FOUND para um módulo que não importei manualmente?

    • 6 respostas
  • Marko Smith

    `(expression, lvalue) = rvalue` é uma atribuição válida em C ou C++? Por que alguns compiladores aceitam/rejeitam isso?

    • 3 respostas
  • Marko Smith

    Um programa vazio que não faz nada em C++ precisa de um heap de 204 KB, mas não em C

    • 1 respostas
  • Marko Smith

    PowerBI atualmente quebrado com BigQuery: problema de driver Simba com atualização do Windows

    • 2 respostas
  • Marko Smith

    AdMob: MobileAds.initialize() - "java.lang.Integer não pode ser convertido em java.lang.String" para alguns dispositivos

    • 1 respostas
  • Martin Hope
    Fantastic Mr Fox Somente o tipo copiável não é aceito na implementação std::vector do MSVC 2025-04-23 06:40:49 +0800 CST
  • Martin Hope
    Howard Hinnant Encontre o próximo dia da semana usando o cronógrafo 2025-04-21 08:30:25 +0800 CST
  • Martin Hope
    Fedor O inicializador de membro do construtor pode incluir a inicialização de outro membro? 2025-04-15 01:01:44 +0800 CST
  • Martin Hope
    Petr Filipský Por que os conceitos do C++20 causam erros de restrição cíclica, enquanto o SFINAE antigo não? 2025-03-23 21:39:40 +0800 CST
  • Martin Hope
    Catskul O C++20 mudou para permitir a conversão de `type(&)[N]` de matriz de limites conhecidos para `type(&)[]` de matriz de limites desconhecidos? 2025-03-04 06:57:53 +0800 CST
  • Martin Hope
    Stefan Pochmann Como/por que {2,3,10} e {x,3,10} com x=2 são ordenados de forma diferente? 2025-01-13 23:24:07 +0800 CST
  • Martin Hope
    Chad Feller O ponto e vírgula agora é opcional em condicionais bash com [[ .. ]] na versão 5.2? 2024-10-21 05:50:33 +0800 CST
  • Martin Hope
    Wrench Por que um traço duplo (--) faz com que esta cláusula MariaDB seja avaliada como verdadeira? 2024-05-05 13:37:20 +0800 CST
  • Martin Hope
    Waket Zheng Por que `dict(id=1, **{'id': 2})` às vezes gera `KeyError: 'id'` em vez de um TypeError? 2024-05-04 14:19:19 +0800 CST
  • Martin Hope
    user924 AdMob: MobileAds.initialize() - "java.lang.Integer não pode ser convertido em java.lang.String" para alguns dispositivos 2024-03-20 03:12:31 +0800 CST

Hot tag

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

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve