ada_stg
(Ada dong)
January 8, 2016, 8:58am
1
I try to set a a shared footer across all pages in my set, but it works in the “en_US”, failed in the “zh_CN” language, throw an exception:
An exception was thrown while Neos tried to render your pageNo
content collection of type TYPO3.Neos:ContentCollection could be found
in the current node and no node path was provided. You might want to
configure the nodePath property with a relative path to the content
collection.verticalPage<TYPO3.Neos:Page>/
body<TYPO3.TypoScript:Template>/
footer/
__meta/
context/
node<>/For a full stacktrace, open Data/Logs/Exceptions/20160108023207901412.txt
My step are as follow:
1、set a new Node in the NodeTypes.yaml
'TYPO3.NeosDemoTypo3Org:Homepage':
ui:
label: i18n
icon: 'icon-globe'
superTypes:
'TYPO3.Neos.NodeTypes:Page': TRUE
childNodes:
'footer':
type: 'TYPO3.Neos:ContentCollection'
constraints:
nodeTypes:
'*': FALSE
'TYPO3.Neos.NodeTypes:Headline': TRUE
'TYPO3.Neos.NodeTypes:Text': TRUE
constraints:
nodeTypes:
'TYPO3.NeosDemoTypo3Org:Homepage': FALSE
2.Render the Node in the Root.rs2:
footer = ContentCollection {
nodePath = ${q(site).children('footer').property('_path')}
collection = ${q(site).children('footer').children()}
}
Then import the footer int the Default.html
{footer -> f:format.raw()}
But when I load the website, only the “en_US” pages can work, the “zh_CN” pages failed. Is there anyone who can help me.
ada_stg
(Ada dong)
January 8, 2016, 9:32am
2
I try running ./flow node:repair, but also failed .
Generate missing URI path segments
Fatal error: Call to a member function getChildNodes() on null in /opt/lampp/htdocs/Neos/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Neos_Command_NodeCommandControllerPlugin.php on line 124
Ryuujin
(Sascha Hoerner)
January 9, 2016, 10:18am
3
Hi,
i had this problem in the past too, but it was a long time ago with an old version of Neos and i am not sure how exactly i fixed it (did drive me nuts to this time). So i did check my website to see if there is a difference, and the only difference between my working footer, and your exception is that my NodeType.yaml has the “ui:” below the “childNodes:” maybe you could try that to see if this solves your issue? (had some strange errors in the past when the .yaml file didn’t looked as neos does expect it).
'TYPO3.Neos.NodeTypes:Page':
childNodes:
'teaser':
type: 'TYPO3.Neos:ContentCollection'
constraints:
nodeTypes:
'*': TRUE
'footertop':
type: 'TYPO3.Neos:ContentCollection'
constraints:
nodeTypes:
'*': FALSE
'TYPO3.Neos.NodeTypes:Headline': TRUE
'TYPO3.Neos.NodeTypes:Text': TRUE
'footer':
type: 'TYPO3.Neos:ContentCollection'
constraints:
nodeTypes:
'*': FALSE
'TYPO3.Neos.NodeTypes:Headline': TRUE
'TYPO3.Neos.NodeTypes:Text': TRUE
ui:
inspector:
groups:
image:
label: 'Image'
position: 200
properties:
Btw. i have seen i do not use the “superTypes:” maybe it’s even related to that?
Edit: i have tested to add the “superTypes:” as in the tutorial from the shared footer explained, but then i can’t even run the ./flow node:repair as i would get an memoryaccess failure (never have seen that before) so i removed it and everything work as before.
superTypes: ['TYPO3.Neos.NodeTypes:Page']
aertmann
(Aske Ertmann)
January 10, 2016, 6:28am
4
ada_stg
(Ada dong)
January 11, 2016, 7:34am
5
I executed the sql:
SELECT * FROM typo3_typo3cr_domain_model_nodedata
where path = '/' OR path = '/sites'
And I got the result:
persistence_object_identifier workspace contentobjectproxy path identifier sortingindex properties nodetype removed hidden hiddenbeforedatetime hiddenafterdatetime hiddeninindex accessroles version parentpath pathhash dimensionshash dimensionvalues parentpathhash movedto creationdatetime lastmodificationdatetime lastpublicationdatetime
237ef675-78e5-dda0-d6bb-465114e8ec53 live / 0e0f5df7-750d-dbc5-a28a-c132b7cd1938 {} unstructured 0 0 0 [] 2 6666cd76f96956469e7be39d750cc7d9 d751713988987e9331980363e24189ce [] d41d8cd98f00b204e9800998ecf8427e 2015-08-18 09:00:09 2015-08-18 09:00:09
463e20b1-e660-51e9-9670-4455a7a0356c live /sites a4d1579c-f43e-c12e-56a5-7ed9a9f7298e 100 {} unstructured 0 0 0 [] 1 / dbd87ae51cbf5240fea77283585e69d5 4f534b1eb0c1a785da31e681fb5e91ff {"language":["en_US"]} 6666cd76f96956469e7be39d750cc7d9 2015-08-19 04:17:34 2015-08-19 04:17:34
4abc5e12-3589-c04b-5879-57a30a76712b user-user2 / adbfacaa-517d-af71-2495-bd179a24d877 {} unstructured 0 0 0 [] 2 6666cd76f96956469e7be39d750cc7d9 d751713988987e9331980363e24189ce [] d41d8cd98f00b204e9800998ecf8427e 2015-08-19 04:17:49 2015-08-19 04:17:49
56408eca-9bb3-4aa8-d349-c695d1b57a80 user-test / c86a99a6-d163-c328-cf27-aa52348e6a6c {} unstructured 0 0 0 [] 2 6666cd76f96956469e7be39d750cc7d9 d751713988987e9331980363e24189ce [] d41d8cd98f00b204e9800998ecf8427e 2015-08-27 09:48:37 2015-08-27 09:48:37
7b955711-978b-e1d2-e799-fac17087ec60 user-Ada / 6209cbeb-d432-7364-56a8-01a11ac5340b {} unstructured 0 0 0 [] 2 6666cd76f96956469e7be39d750cc7d9 d751713988987e9331980363e24189ce [] d41d8cd98f00b204e9800998ecf8427e 2015-08-21 07:59:34 2015-08-21 07:59:34
817990dc-e75f-d8df-4c0c-b2ca965397c3 user-user / 3d583e71-a6ef-1306-6c76-8ec379b6bbe4 {} unstructured 0 0 0 [] 2 6666cd76f96956469e7be39d750cc7d9 d751713988987e9331980363e24189ce [] d41d8cd98f00b204e9800998ecf8427e 2015-08-27 09:03:27 2015-08-27 09:03:27
99607398-b645-8741-401e-cf9d837a3cc6 user-admin / 03492501-a310-26ac-a722-159bee8ef04e {} unstructured 0 0 0 [] 2 6666cd76f96956469e7be39d750cc7d9 d751713988987e9331980363e24189ce [] d41d8cd98f00b204e9800998ecf8427e 2015-08-18 09:00:09 2015-08-18 09:00:09
e0b18a54-f54c-1b7f-f830-951079c9e669 user-user3 / 6a8c91e3-49a1-e792-d974-7dfc72b31614 {} unstructured 0 0 0 [] 2 6666cd76f96956469e7be39d750cc7d9 d751713988987e9331980363e24189ce [] d41d8cd98f00b204e9800998ecf8427e 2015-10-09 13:43:20 2015-10-09 13:43:20
Is the lack of fields in the database about path="/site" and the dimensionvalues="{“language”:[“zh_CN”]}" ? But how to Insert it in to the table?
I update the code I find In"https://github.com/neos/neos-development-collection/pull/122 ",
$this->output->outputLine('<error>ceshi shuchu</error>');
$baseContextSitesNode = $baseContext->getNode('/sites');
if (!$baseContextSitesNode) {
$this->output->outputLine('<error>Could not find "/sites" root node</error>');
return;
}
$baseContextSiteNodes = $baseContextSitesNode->getChildNodes();
if ($baseContextSiteNodes === []) {
$this->output->outputLine('<error>Could not find any site nodes in "/sites" root node</error>');
return;
}
but I didn’t see any output when I load the wesite.
Anxiously waiting for your reply.
ada_stg
(Ada dong)
January 12, 2016, 4:11am
6
If I create a language like German or English (UK), which the one exist in the Neos, the footer can works well. But the “Chinese” language is the new one I create, I think Maybe I missing some steps when I create a new contentDimensions.
I only do this bollow in the setting.yaml.
TYPO3CR:
contentDimensions:
'language':
label: 'TYPO3.NeosDemoTypo3Org:Main:contentDimensions.language'
icon: 'icon-language'
default: 'en_US'
defaultPreset: 'en_US'
presets:
'all': ~
'en_US':
label: 'English (US)'
values: ['en_US']
uriSegment: 'en'
'zh_CN':
label: ' 简体中文'
values: [zh_CN]
uriSegment: 'cn'
'de':
label: 'German'
values: ['de']
uriSegment: 'de'
I check The database, excute the sql:
SELECT * FROM stg.typo3_typo3cr_domain_model_nodedata where path='/sites/neosdemotypo3org/footer'
and get:
persistence_object_identifier workspace contentobjectproxy path identifier sortingindex properties nodetype removed hidden hiddenbeforedatetime hiddenafterdatetime hiddeninindex accessroles version parentpath pathhash dimensionshash dimensionvalues parentpathhash movedto creationdatetime lastmodificationdatetime lastpublicationdatetime
5bea693e-08e5-37a6-6eb4-f172cb267151 live /sites/neosdemotypo3org/footer 986b8bef-68f6-1883-3711-31929cfe5ed8 300 {} TYPO3.Neos:ContentCollection 0 0 0 {} 2 /sites/neosdemotypo3org 8f3bc205ce962a0dee50b3b1b4fd338f ed49b98bbf3367f90cd4a69e2c06658b {
"language": {
"0": "dk"
}
} e18f85383d549f7ad660893a02f43a92 2015-07-31 18:54:02 2015-07-31 18:55:50 2015-07-31 18:55:50
817059b0-c675-7bc1-398c-eb9c557ea980 live /sites/neosdemotypo3org/footer 986b8bef-68f6-1883-3711-31929cfe5ed8 300 {} TYPO3.Neos:ContentCollection 0 0 0 {} 2 /sites/neosdemotypo3org 8f3bc205ce962a0dee50b3b1b4fd338f e28daf5b04394a7b506534acc0ad491a {
"language": {
"0": "nl"
}
} e18f85383d549f7ad660893a02f43a92 2015-07-31 18:53:31 2015-07-31 18:55:50 2015-07-31 18:55:50
ac4c1ce7-d084-4afd-5178-aaf25aebb41f live /sites/neosdemotypo3org/footer d2997346-5538-995f-c4bf-51d3a315ea7e 1600 {} TYPO3.Neos:ContentCollection 0 0 0 [] 2 /sites/neosdemotypo3org 8f3bc205ce962a0dee50b3b1b4fd338f 4f534b1eb0c1a785da31e681fb5e91ff {"language":["en_US"]} e18f85383d549f7ad660893a02f43a92 2015-09-24 08:27:26 2015-09-24 08:27:34 2015-09-24 08:27:33
bfe77593-beaf-b9dc-26b3-c48ab46f415c live /sites/neosdemotypo3org/footer 986b8bef-68f6-1883-3711-31929cfe5ed8 300 {} TYPO3.Neos:ContentCollection 0 0 0 {} 2 /sites/neosdemotypo3org 8f3bc205ce962a0dee50b3b1b4fd338f 8f21da181f6ce38197fcb78d49f5384e {
"language": {
"0": "fr"
}
} e18f85383d549f7ad660893a02f43a92 2015-07-31 19:04:50 2015-07-31 19:05:06 2015-07-31 19:05:06
c9866da8-d227-2d68-4bdb-44553486d24f live /sites/neosdemotypo3org/footer 986b8bef-68f6-1883-3711-31929cfe5ed8 500 {} TYPO3.Neos:ContentCollection 0 0 0 {} 2 /sites/neosdemotypo3org 8f3bc205ce962a0dee50b3b1b4fd338f fb11fdde869d0a8fcfe00a2fd35c031d {
"language": {
"0": "de"
}
} e18f85383d549f7ad660893a02f43a92 2015-07-31 19:04:57 2015-07-31 19:05:06 2015-07-31 19:05:06
I found there is no “zh_CN” column.
aertmann
(Aske Ertmann)
January 13, 2016, 1:06pm
7
ada_stg
(Ada dong)
January 26, 2016, 6:48am
8
Sorry, I saw the document again, but I still can’t find out which step I have missed.