Skip to content

Instantly share code, notes, and snippets.

View visay's full-sized avatar

Visay Keo visay

View GitHub Profile
<?php
namespace My\Package\TypoScript\Eel\FlowQueryOperations;
/* *
* This script belongs to the TYPO3 Flow package "My.Package". *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
I have 2 packages loaded in order of Package A then Package B. Both have setting of doctrine eventListener as below:
Package A Setting
-----------------
TYPO3:
Flow:
persistence:
doctrine:
eventListeners:
@visay
visay / PdfThumbnailViewHelper.php
Last active August 29, 2015 14:10
Render thumbnail from PDF file for a node type
<?php
namespace WE\SitePackage\ViewHelpers;
/* *
* This script belongs to the TYPO3 Flow package "WE.SitePackage". *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
@visay
visay / gist:d5e39d3cdb78f82c7db4
Created November 20, 2014 14:13
node:repair stack trace
Check and fix possibly missing child nodes
Checking for missing child nodes ...
Node repair finished.
Uncaught Exception: InvalidArgumentException
Message
Passed variable is not an array or object, using empty array instead
@visay
visay / System_Development.log
Created October 3, 2014 10:44
URL renaming error
14-10-03 17:39:33 8092 CRITICAL Flow Uncaught exception #1297759968 in line 270 of /home/013-027/public_html/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Mvc_Controller_Argument.php: Exception while property mapping for target type "TYPO3\TYPO3CR\Domain\Model\Node", at property path "": An exception occurred while executing 'INSERT INTO typo3_typo3cr_domain_model_nodedata (persistence_object_identifier, pathhash, path, parentpathhash, parentpath, identifier, sortingindex, removed, dimensionshash, hiddenbeforedatetime, hiddenafterdatetime, dimensionvalues, properties, nodetype, hidden, hiddeninindex, accessroles, workspace, contentobjectproxy, movedto) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["453fa86b-ac20-e6f7-2023-d8e166ebfbc9", "20686ac7df47e03ec13398697519b15d", "\/sites\/we-sitepackage\/products-and-services\/teaser", "746b89deddd7cda34c2a448d9f2b2b3b", "\/sites\/we-sitepackage\/products-and-services", "0abfed54-2c70-
@visay
visay / gist:5f89d0a4a6ccd2416715
Created June 10, 2014 01:21
Neos Upgrade 1.1-beta
- Adjust my composer.json to the same as https://git.typo3.org/Neos/Distributions/Base.git/blob/80d3778d8594136ae2a5edd53b81e7c6f3492059:/composer.json (replacing neosdemotypo3org package with my sitepackage)
- Run composer update to get new dependencies
- Flush the cache with "./flow flow:cache:flush --force"
- Run DB migrate "./flow doctrine:migrate"
- Flush the cache again
- Check the site -> DONE :)
@visay
visay / gist:7410289
Created November 11, 2013 09:17
Install Chef 11.x on a Workstation
Ref: http://docs.opscode.com/install_workstation.html
~ chef-client -v
/opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find chef (>= 0) amongst [actionmailer-4.0.1, actionmailer-3.2.13, actionpack-4.0.1, actionpack-3.2.13, activemodel-4.0.1, activemodel-3.2.13, activerecord-4.0.1, activerecord-3.2.13, activerecord-deprecated_finders-1.0.3, activeresource-4.0.0, activeresource-3.2.13, activesupport-4.0.1, activesupport-3.2.13, arel-4.0.1, arel-3.0.2, atomic-1.1.14, builder-3.2.2, builder-3.1.4, bundler-1.3.5, bundler-unload-1.0.2, bundler-unload-1.0.1, capybara-2.1.0, capybara-1.1.4, childprocess-0.3.9, cliver-0.2.2, cucumber-1.3.8, cucumber-1.2.1, diff-lcs-1.2.4, diff-lcs-1.1.3, erubis-2.7.0, eventmachine-1.0.3, executable-hooks-1.2.6, faye-websocket-0.7.0, faye-websocket-0.4.7, ffi-1.9.3, ffi-1.9.0, gherkin-2.12.2, gherkin-2.11.6, hashr-0.0.22, hike-1.2.3, http_parser.rb-0.5.3, i18n-0.6.5, i18n-0.6.1, journey-1.0.4, json-1.8.1, json-1.8.0, mail-2.5.4, mime-ty
TYPO3:
Flow:
persistence:
backendOptions:
host: '127.0.0.1'
dbname: 'chantrea_training'
user: 'root'
password: ''
@visay
visay / gist:6521400
Created September 11, 2013 09:36
Security.log
13-09-11 16:32:11 4751 127.0.0.1 NOTICE Flow Authentication failed: "Could not authenticate any token. Might be missing or wrong credentials or no authentication provider matched." #1222204027
13-09-11 16:32:12 4751 127.0.0.1 INFO Flow Access denied (0 denied, 0 granted, 1 abstained) on resource "TYPO3_Neos_Backend_BackendController".
13-09-11 16:32:12 4751 127.0.0.1 INFO Flow Access denied (0 denied, 0 granted, 1 abstained) on resource "TYPO3_Neos_Backend_BackendController".
13-09-11 16:32:12 4751 127.0.0.1 INFO Flow Access denied (0 denied, 0 granted, 1 abstained) on resource "TYPO3_Neos_Backend_BackendController".
13-09-11 16:32:12 4751 127.0.0.1 INFO Flow Access denied (0 denied, 0 granted, 1 abstained) on resource "TYPO3_Neos_Backend_BackendController".
13-09-11 16:32:12 4751 127.0.0.1 INFO Flow Access denied (0 denie
Main menu: Home | News | Jobs
Meta menu: Contact | Services | News
Footer menu: Contact | Legal Info | Privacy Policy
Here's my current page tree in Neos Backend:
- Home
- News
- Jobs
- Contact