Skip to content

Instantly share code, notes, and snippets.

View pniederlag's full-sized avatar

Peter Niederlag pniederlag

View GitHub Profile
@pniederlag
pniederlag / README.md
Last active August 29, 2015 14:24
Problems with composer on TYPO3 7.x

Composer install on Windows

Use the composer.json example on windows. In Addition to the composer manifest we provide a LocalConfiguration.php and AdditionalConfiguration with our provisioning. So the bootstrap is not in FIRST_INSTALL mode, maybe that's something that does have an influence? When we hit typo3/install to run DB compare to seed the database we do get:

Fatal error: Uncaught exception 'LogicException' with message 'No class loading information found for TYPO3 CMS. Please make sure you installed TYPO3 with composer or the typo3/contrib/vendor folder is present.' in ....

Note to self:

  • check wether dropping provisionde typo3conf/* items and adding FIRST_INSTALL does make a change
Dummy Test Repo to test fabric/paramiko ssh_config problems
http://www.fabfile.org
fab hello
# should work without password prompt when you have a key on h12.niekom.de
@pniederlag
pniederlag / Listing.md
Created January 13, 2016 14:51
TYPO3-Kommentarextensions

name; compat with typo3 ver; technology; latest commit; attach to news comments_plus; ??; extbase ; ~two years; ??? pw_comments; 7.2.99; extbase; 9 months; + comments; 6.1; pibase; 2013; + toc_toc_comments; ???; pibase; ???; +

diff --git a/typo3/sysext/extbase/Classes/Property/PropertyMapper.php b/typo3/sysext/extbase/Classes/Property/PropertyMapper.php
index 7bbc804..87a3651 100644
--- a/typo3/sysext/extbase/Classes/Property/PropertyMapper.php
+++ b/typo3/sysext/extbase/Classes/Property/PropertyMapper.php
@@ -131,6 +131,7 @@ class PropertyMapper implements \TYPO3\CMS\Core\SingletonInterface {
* @return mixed an instance of $targetType
*/
protected function doMapping($source, $targetType, \TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface $configuration, &$currentPropertyPath) {
+ var_dump('doMapping ' . $targeType . ' ' . print_r($currentPropertyPath,1));
if (is_object($source)) {
git log -n1 | head
commit 23759e3537d457b1cb2a5a3050220898b955db4a
Author: Olaf Meeuwissen <[email protected]>
Date: Tue May 10 22:05:54 2016 +0900
Document need to run bootstrap script after first clone. Fixes #6
pn@tuxi  /usr/local/src/utsushi2   master ●  LIBTOOLIZE="libtoolize --verbose" ./bootstrap
@pniederlag
pniederlag / CategoryIterator.php
Created September 21, 2016 08:57
sample of a CategoryIterator for categoryTree from news
<?php
namespace Datenbetrieb\D4b6NewsNotification\Utility;
/**
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
@pniederlag
pniederlag / reset.sh
Created November 23, 2016 07:52 — forked from StephenKing/reset.sh
Network config reset
#!/bin/sh
##########################################
# Make sure that $FILE.$BACKUP_EXT exists!
# i.e. /etc/network/interfaces.bak
##########################################
FILE=/etc/network/interfaces
BACKUP_EXT=bak
@pniederlag
pniederlag / composer.json
Created November 14, 2018 14:36
typo3 composer
{
"name": "datenbetrieb/mhh",
"description": "Website MHH. Tools, extensions, configurations and templates.",
"type": "project",
"keywords": ["typo3", "cms", "starter"],
"homepage": "http://www.mh-hannover.de",
"license": "GPL-2.0+",
"authors": [
{
"name": "datenbetrieb",
@pniederlag
pniederlag / BgSetUsage.html
Created November 14, 2018 20:51 — forked from lorenzulrich/BgSetUsage.html
ResponsiveImageViewHelper and SrcSetViewHelper for Responsive Images using lazysizes/bgset
<div class="lazyload" data-bgset="{v:srcSet(image: media.1, ratio: 1, maxWidth: 1920)}">
Foo
</div>
{namespace v=Visol\Foobar\ViewHelpers}
@pniederlag
pniederlag / trigger-scheduler.php
Created January 9, 2020 08:22
TYPO3 http-trigger for scheduler
<?php
/*
*
* http trigger script for TYPO3 Scheduler
*
*
**/
// first check proper token
if ( !is_array($_POST) || !isset($_POST['token']) || $_POST['token'] !== 'XXXMAGICSECRETXXXX' ) {
header("HTTP/1.0 403 Forbidden");