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.
Last week I had to resolve a problem in a 3rd party Extension, where an Extbase Plugin returned unexpected results when used multiple times on the same page. The problem showed up in the frontend, where the plugin listed some products by a given category. When the plugin was present one time on a page, the output was as following (simplified):
Output of plugin 1
Product 1 for Category 1
Monday, April 01, 2019 datamapperExtbaserepositorywrong results
In TYPO3 9.5 LTS it has been deprecated (see notice) to extend Extbase classes using TypoScript config.tx_extbase.objects and plugin.tx_%plugin%.objects. In order to migrate existing extensions, which extends another TYPO3 extension, you should now use XLASSes.
For my TYPO3 Extension sf_event_mgt I also provide a small demo extension, which shows how to extend domain models and controllers…
Monday, March 18, 2019 #86270config.tx_extbase.objectscontrollerExtbaseextendmodel
TR;DR - I analyzed 48.146.633 websites for TYPO3 usage - the results with aggregated charts can be found here.
I'm proud to introduce my latest side project called t3versions. It is a Python (Django) web application to identify, if a website is running TYPO3 and if so, which major version is being used. As a result, TYPO3 websites are saved to the database in order to create an aggregated…
Tuesday, July 10, 2018 censusstatisticsTYPO3typo3 version analyzer
TYPO3 MySQL database import fails with "Index column size too large. The maximum column size is 767 bytes"
I recently migrated a TYPO3 7.6 Website to TYPO3 8.7 and while importing the migrated TYPO3 database on the production server, the import failed with the following MySQL error:
ERROR 1709 (HY000) at line 2060: Index column size too large. The maximum column size is 767 bytes.
Sunday, April 15, 2018 Index column size too largemysql 5.6mysql 5.7TYPO3
Today I finally released the new version 3.0 of my TYPO3 extension sf_event_mgt - Event management and registration. The new version comes with tons of new features, bugfixes and improvements and also contains 2 breaking changes, so make sure to read the release notes.
Thanks to everyone, who contributed to the extension over the last few months. Also a special thanks to Alex Kellner for…
Wednesday, April 11, 2018 event managementExtbasefluidTYPO3
Back in 2015, I wrote 2 blogposts (first and second) about rendering a localized Fluid standalone view in a scheduler task (commandController). The main problem was to render a Fluid standalone view multiple times within the same request but with different languages. Back then, my solution was to create an own ViewHelper and a modified version of the TYPO3 LocalizationUtility which were…
Monday, February 05, 2018 fluid standalone viewlocalizationTYPO3
Today I wanted to connect to a new clients SSH server and received a "Too many Authentication Failures" message just on the first connect to the host. After a short break and some Google research, I found the very simple reason for the message.
Since I have several SSH keys in my .ssh/ directory, SSH tries to use each of it to connect to the SSH server. So when the SSH server has a very…
Thursday, January 25, 2018 public keysshToo many Authentication Failures
People using TYPO3 7.6 or 8.7 for sure know the cool Image Cropping tool that was introduced with TYPO3 7. As an extension developer, you can easily switch on the Image Cropping tool for your own extension by enabling adding the imageoverlayPalette to the foreign_types config array for the FILETYPE_IMAGE in the TCA like shown in this blogpost by Marcus Schwemer. In TYPO3 8.7 the Image…
Wednesday, June 28, 2017 ExtbaseImage Croppingtypo3 8.7
When you create an Extbase extension and allow a website user to submit form data that will be saved to the TYPO3 database, you usually work with validators in your domain model to ensure, that the given data will match certain criteria (e.g. properties have the right data type or expected data format). Extbase offers an easy way to add validation rules to domain model properties, by just…
Monday, June 26, 2017 domain modelExtbaseproperty mapperTYPO3validation
When you want to query an Extbase repository for a list of UIDs or PIDs, you usually add a query constraint like query->in('pid', $pidList) to the query, where $pidList is an array of integers. But what, if you want to control the sorting of the returned records? Lets assume, you want to select the following list of UIDs [5, 3, 4, 1] from your repository and the sorting or the UIDs must rem…
Monday, May 15, 2017 Doctrine DBALExtbaseMySQL fieldtypo3 8.7