This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » eZ Publish 5 Platform » Exception thrown rendering...
expandshrink

Exception thrown rendering untranslated location

Exception thrown rendering untranslated location

Wednesday 01 October 2014 11:20:14 am - 3 replies

Hi all,

another big issue I've found, I hope anyone has find a solution.

When rendering a location using

 {{render( controller( "ez_content:viewLocation", { "locationId": locationId, "viewType": "embed" } ) )}}

I get a exception if the content is not translated, even if I have the "use main language" checkbox checked.

The actual exception get is :

 An exception has been thrown during the rendering of a template ("Could not find 'Content' with identifier 'array (
 'id' => 1073,
 'languages' => 
 array (
 0 => 'cat-ES',
 1 => 'esl-ES',
 ),
 'versionNo' => 1,
 )'")

The languages present in the exception are the siteaccess configured languages. The content 1073 is only in eng-GB.

Is there any workaround for this or I've found a bug?

Wednesday 01 October 2014 1:35:58 pm

Hi Xavier

This a known issue : https://jira.ez.no/browse/EZP-22191

Benjamin even opened a PR to fix it, but we still couldn't decide the right approach to take. I proposed another approach in a comment. Feel free to comment the PR and/or the issue as well.

Thursday 02 October 2014 10:54:20 am

New PR by André : https://github.com/ezsystems/ezpublish-kernel/pull/1016

Thursday 02 October 2014 11:01:19 am

Good job guys!

Many thanks!

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from