Skip to content

Instantly share code, notes, and snippets.

View sorenmalling's full-sized avatar

Søren Malling sorenmalling

View GitHub Profile
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 = ?, workspace = ?, lastmodificationdatetime = ?, version = version + 1 WHERE persistence_object_identifier = ? AND version = ?' with params ["2015-04-14 14:54:59", "live", "2015-04-14 14:55:00", "72e250ac-350e-407a-c11e-8f2b248d53be", 1]:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0a18d113225e042060e54b3ab15fea20-live-d751713988987e9331980363e2' for key 'UNIQ_60A956B92DBEC7578D94001992F8FB01'
26 Doctrine\DBAL\Driver\AbstractMySQLDriver::convertException("An exception occurred while executing 'UPDATE typo3_typo3cr_domain_model_nodedata SET lastpublicationdatetime = ?, workspace = ?, lastmodificationdatetime = ?, version = version + 1 WHERE persistence_object_identifier = ? AND version = ?' with params ["2015-04-14 14:54:59", "live", "2015-0
@sorenmalling
sorenmalling / gist:5f9f783ea8c3bbf639c4
Created April 14, 2015 12:53
Workspace module, "publish all"
#1: Catchable Fatal Error: Argument 1 passed to TYPO3\TYPO3CR\Domain\Model\AbstractNodeData::setLastPublicationDateTime() must be an instance of DateTime, instance of TYPO3\Flow\Object\DependencyInjection\DependencyProxy given, called in /Users/soren/Sites/typo3books/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_TYPO3CR_Domain_Model_Workspace.php on line 267 and defined in /Users/soren/Sites/typo3books/Packages/Application/TYPO3.TYPO3CR/Classes/TYPO3/TYPO3CR/Domain/Model/AbstractNodeData.php line 380
Unexpected error while publishing changes: {"xhr":{"readyState":4,"responseText":"<!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\">\n\t\t\t<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\" dir=\"ltr\">\n\t\t\t<head>\n\t\t\t\t<title>500 Internal Server Error</title>\n\t\t\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n\t\t\t\t<style>\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
@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
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].
<?php
class LockManager {
public function injectSettings($settings) {
$this->settings = $settings;
}
public function ... {
if (file_exists(..)) {
read_file($this->settings['pathToFileForLockedSiteInWebScope'];
} else {
plugin.tx_solr.index.queue {
news.fields {
tags_textM = SOLR_MULTIVALUE
tags_textM {
cObject = CONTENT
cObject {
table = pages
select {
uidInList = this
pidInList = 0
<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>
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
teaser = FILES
teaser {
references {
table = sys_file_collection
uid.current = 1
fieldName = files
}
renderObj = TEXT
renderObj {
data = file:current:uid