Seit 2012 blogge ich auf www.derhansen.de über Themen aus meinem Arbeitsalltag, welche ich mit der Allgemeinheit teilen möchte, um anderen evtl. dadurch zu helfen. Zuerst habe ich in deutscher Sprache meine Artikel geschrieben, bin dann aber dazu übergegangen, meine Artikel in englischer Sprache zu verfassen, um eine größere Zielgruppe anzusprechen. 

Sunday, October 09, 2022 – TYPO3, plugin, extbase, configurePlugin

Problem with all extbase plugins during TYPO3 11.5 update

In a TYPO3 project, where I was updating the website from TYPO3 10.4 to version 11.5, I suddenly faced the situation,that all extbase plugins did not work anymore. The following error message was displayed (example for TYPO3 ext:news):The default controller for extension "News" and plugin "Pi1" can not be determined.Please check for…

Read more

Saturday, July 16, 2022 – form, spam, typo3, ext:form

Restricting automated spam submissions in web forms

TD;DR - Use JavaScript to calculate the value of a hidden field which is evaluated on formsubmission. See exampleIt can be frustrating when spambots automatically submit forms on a website you run. Many years ago, when websites usedto have guestbooks, the spambots usually added new guestbook entries containing links in order to create a huge…

Read more

Thursday, June 23, 2022 – TYPO3, FluidEmail, StandaloneView, CLI, Symfony Console

Using TYPO3 FluidEmail in CLI context

Since TYPO3 10.4 it is possible to use TYPO3\CMS\Core\Mail\FluidEmail to send emails with body content renderedby Fluid. This all works fine as long as you work in frontend or backend context, but when you use FluidEmail in CLIcontext (e.g. in a symfony console command), you will run into some problems. Since no real server request object…

Read more

Friday, January 21, 2022 – multiple, TYPO3, smtp

How to use multiple SMTP accounts in one TYPO3 installation

When TYPO3 is used to serve multiple websites in one installation, it may sometimes be required to configure multiple SMTP accounts in order to send emails from TYPO3 (e.g. mailforms or notifications) to different recipients. This may especially be important, when the recipient mailserver has a strict spam filter or when the domain uses a SPF,…

Read more

Wednesday, January 19, 2022 – userfunc, TYPO3, typolink

TYPO3 - Multiple dynamic parameters for a typolink using a custom userFunc

I often use the TYPO3 linkHandler to enable the possibility for editors to create direct links to records from withinthe CKEditor in TYPO3 backend. This isall well documentedand easy to configure using the RecordLinkHandler, as long as the resulting link only contains one dynamic parameter.But sometimes it may be required to have multiple…

Read more

Wednesday, December 29, 2021 – import, crop variant, TYPO3, sys_file_reference

How to manually create the default crop variant string for an imported image in TYPO3 CMS

When data in TYPO3 is created automatically (e.g. through a custom API or by an import script), it is very common, that also new files (especially images) are imported. TYPO3 has the well documented FAL (File Abstraction Layer), which provides an API for common tasks.One typical task is to import an image to FAL and next creating a file…

Read more

Sunday, October 17, 2021 – sf_event_mgt, TYPO3 11.5

TYPO3 extension "Event management and registration" version 6.0 for TYPO3 11.5 LTS released

I am really proud and happy to announce, that the new version 6.0. of my TYPO3 extension “Event management andregistration” (GitHub/ TYPO3 Extension Repository) is now fully compatible with TYPO3 11.5 LTS including support for PHP 7.4 and 8.0.Originally I wanted to release this version of the extension on the same day as TYPO3 11.5 LTS got…

Read more

Sunday, August 15, 2021 – TYPO3, rector

"Unterminated nested statement!" using TYPO3 rector

TYPO3 rector is a really helpful application when it comes to TYPO3major updates. It helps you to identify and refactor TYPO3 deprecations in custom extensions and can save hours ofmanual refactoring. I use TYPO3 rector quite a lot and stumbled across the following error recently.This message is not really helpful, so I digged deeper into the…

Read more

Friday, June 04, 2021 – extend controller, symfony dependency injection, xclass, Extbase, TYPO3

How to use constructor dependency injection in a XCLASSed TYPO3 class

Some time ago in needed to extend an Extbase controller in TYPO3 10.4 which used dependency injection throughconstructor injection. So I used XCLASS to extend the original controller and added an own constructor which added anadditional dependency, but this obviously did not work out properly, since the constructor was always called with…

Read more

Monday, March 22, 2021 – switchableControllerAction, #89463, TYPO3 11, migrate

How to migrate switchableControllerActions in a TYPO3 Extbase extension to single plugins

TL;DR - I created this TYPO3 update wizardwhich migrates plugins and Extbase plugin settings for each former switchable controller actions configuration entry.Since switchableControllerActions in Extbase plugins havebeen deprecatedin TYPO3 10.4 and will be removed in either TYPO3 11 but most likely 12, I decided to remove…

Read more

Tuesday, December 29, 2020 – A - Z Keyword list, content element, mw_keywordlist, TYPO3 Extension, sitemap

Replace functionality of TYPO3 extension mw_keywordlist with a custom sitemap content element

One of the big pain points when it comes to TYPO3 major updates are extensions. If the extension stack containsunmaintained / unsupported extensions, updating can really be hard, since existing functionality needs to be replacedand existing data needs to be migrated.I recently had this problem on a website, where the TYPO3extension…

Read more

Thursday, November 19, 2020 – 10.1, order by, mariadb, 10.3

Unexpected sorting behavior after update from MariaDB 10.1 to 10.3

TL;DR The sorting behavior changed from MariaDB 10.1 to 10.2 due toa bug in MariaDB 10.1After updating from Ubuntu 18.04 LTS to 20.4 LTS a previously working a PHP application which contains a data exportsuddenly did not return the expected result any more. I debugged this scenario by comparing the database query resultsin the data export and…

Read more