Skip to content

Instantly share code, notes, and snippets.

View sorenmalling's full-sized avatar

Søren Malling sorenmalling

View GitHub Profile
<?php
namespace Meteko\Extrapages\Service;
use Meteko\Extrapages\Domain\Model\Page;
class AdditionalAttributesService {
/**
* entryRepository
TYPO3:
Flow:
security:
enable: TRUE
# firewall:
# filters:
# -
# patternType: 'ControllerObjectName'
# patternValue: 'Comundu\Core\Controller\ApiController'
# interceptor: 'RequireAuthentication'
teaser = FILES
teaser {
references {
table = sys_file_collection
uid.current = 1
fieldName = files
}
renderObj = TEXT
renderObj {
data = file:current:uid
renderObj = IMAGE
renderObj {
file {
import.data = file:current:uid
treatIdAsReference = 1
}
altText = TEXT
altText {
data = file:current:title
# Image render fails if altTet contains comma
<article>
<header>
<hgroup>
<a href="/"><h1>Fotodatabase</h1></a>
</hgroup>
<nav id="globalNavigation">
<h2>Navigation</h2>
<ul class="left">
<li><f:link.action action="list" extensionName="mediadatabase" pluginName="pi1" controller="Collection">Samlinger</f:link.action></li>
<li><f:link.action action="search" extensionName="mediadatabase" pluginName="pi1" controller="Media">Søg</f:link.action></li>
plugin.tx_solr.index.queue {
news.fields {
tags_textM = SOLR_MULTIVALUE
tags_textM {
cObject = CONTENT
cObject {
table = pages
select {
uidInList = this
pidInList = 0
<?php
class LockManager {
public function injectSettings($settings) {
$this->settings = $settings;
}
public function ... {
if (file_exists(..)) {
read_file($this->settings['pathToFileForLockedSiteInWebScope'];
} else {
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for typo3/flow 3.0.0-beta1 -> satisfiable by typo3/flow[3.0.0-beta1].
- typo3/flow 3.0.0-beta1 requires typo3/fluid 3.0.0-beta1 -> no matching package found.
Problem 2
- typo3/flow 3.0.0-beta1 requires typo3/fluid 3.0.0-beta1 -> no matching package found.
- pocketstore/pocketstore dev-master requires typo3/flow * -> satisfiable by typo3/flow[3.0.0-beta1].
@sorenmalling
sorenmalling / System_Development.log
Created April 14, 2015 12:47
System_Development.log
15-04-14 14:45:00 28028 CRITICAL DBAL Uncaught exception in line 116 of /Users/soren/Sites/typo3books/Packages/Libraries/doctrine/dbal/
lib/Doctrine/DBAL/DBALException.php: An exception occurred while executing 'UPDATE typo3_typo3cr_domain_model_nodedata SET lastpublicationdatetime = ?, works
pace = ?, lastmodificationdatetime = ?, version = version + 1 WHERE persistence_object_identifier = ? AND version = ?' with params ["2015-04-14 14:45:00", "l
ive", "2015-04-14 14:45:00", "72e250ac-350e-407a-c11e-8f2b248d53be", 1]:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0a18d113225e042060e54b3ab15fea20-live-d751713988987e9331980363e2' for key 'UNIQ_60A956
B92DBEC7578D94001992F8FB01' - See also: 20150414144459b503b6.txt
previousException => Uncaught exception #23000 in line 987 of /Users/soren/Sites/typo3books/Packages/Libraries/doctrine/dbal/lib/Doctrine/DBAL/Connection
.php: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0a18d113225e042060
Unexpected error while publishing changes: {"xhr":{"readyState":4,"responseText":"&lt;!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\"\n\t\t\t\t\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\"&gt;\n\t\t\t&lt;html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\" dir=\"ltr\"&gt;\n\t\t\t&lt;head&gt;\n\t\t\t\t&lt;title&gt;500 Internal Server Error&lt;/title&gt;\n\t\t\t\t&lt;meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /&gt;\n\t\t\t\t&lt;style&gt;\n\t\t\t\t\t.ExceptionSubject {\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\t\tcolor: #BE0027;\n\t\t\t\t\t}\n\t\t\t\t\t.ExceptionBody {\n\t\t\t\t\t\tpadding: 10px;\n\t\t\t\t\t\tmargin: 10px;\n\t\t\t\t\t\tcolor: black;\n\t\t\t\t\t\tbackground: #DDD;\n\t\t\t\t\t}\n\t\t\t\t\t.ExceptionProperty {\n\t\t\t\t\t\tcolor: #101010;\n\t\t\t\t\t}\n\t\t\t\t\tpre {\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\t\tcolor: #515151;\n\t\t\t\t\t\tbackground-color: #D0D0