Closed (works as designed)
Project:
Internationalization
Version:
7.x-1.4
Component:
Node
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
16 Jan 2012 at 13:12 UTC
Updated:
21 Feb 2012 at 14:48 UTC
I have a 'page' node, which is published. To that I want to add a translation. After completing the node-add form (with 'published' unchecked), I get a 500 server error. There are no messages in de log.
The node is created, but when an unpublished node is added as a translation to a published node, none of the nodes are accessible (the edit-form however, is). Removing the unpublished node from the translation set solves the problem.
So creating an unpublished node, publishing it when it is finished and then adding it as a translation to the set, is a workaround.
Comments
Comment #1
webflo commentedPlease enable PHP error reporting. See http://drupal.org/node/158043 for more information.
Comment #2
rar9 commented+1 ..
Comment #3
skyredwangBrowser error:
Server error:
This is a new bug in 1.3 i18n
Comment #4
xanxano commentedComment #5
webflo commentedCan not reproduce. Please provide more information about your installed modules and php version.
Comment #6
skyredwangInternationalization 7.x-1.4 with php 5.2.17
Comment #7
webflo commentedCan you reproduce this issue in a clean Drupal 7 installation?
Comment #8
webflo commentedComment #9
willkaxu commentedI've tested the bug in the server condition as follows:
1) Internationalization 7.x-1.4 with php 5.3.3-1ubuntu9.10
2) a clean Drupal 7.12 installation
3) Apache/2.2.16 (Ubuntu)
And I can't reproduce the bug.
Comment #10
willkaxu commentedI've tested the bug in the server condition as follows:
1) Internationalization 7.x-1.4 with php 5.2.17
2) a clean Drupal 7.12 installation
3) nginx/1.0.5
Still can't reproduce the bug.
Comment #11
nor4a commentedThe same problem for me. How I can play this out:
1) Create a new content in the default language
2) Translate it to some other language - save it.
3) Switch to the default language content - edit it and uncheck the "Published" checkbox.
4) Try to acess the node "view" (for example go to node through admin/content/node section as it will be on the top of other nodes)
BTW... the line of the file looks like:
And when the error happens - the value of the $options['attributes']['class'] is not an array, but string: "locale-untranslated".
I hope it will help to find the bug...
Comment #12
webflo commented@Nor4a: Awesome bug report. Thanks!
I think the language switcher is the problem. see http://drupalcode.org/project/drupal.git/blob/refs/heads/7.x:/modules/tr...
Comment #13
webflo commentedI'm working on it.
Comment #14
webflo commentedI cannot do anything. Its a core bug. #1408636-14: Fatal error: [] operator not supported for strings in includes/common.inc on line 2320 is already RTBC. Please apply the patch #14 from c31ck.
Comment #15
webflo commentedComment #16
webflo commentedComment #17
webflo commented#1408636: Fatal error: [] operator not supported for strings in includes/common.inc on line 2320 is fixed.