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

webflo’s picture

Status: Active » Postponed (maintainer needs more info)

Please enable PHP error reporting. See http://drupal.org/node/158043 for more information.

rar9’s picture

+1 ..

skyredwang’s picture

Priority: Normal » Critical
Status: Postponed (maintainer needs more info) » Active

Browser error:

HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

Server error:

2012/02/02 05:30:30 [error] 2844#0: *20635 FastCGI sent in stderr: "PHP Fatal error:  [] operator not supported for strings in /srv/www/upgrade.insready.com/public_html/includes/common.inc on line 2352" while reading response header from upstream,

This is a new bug in 1.3 i18n

xanxano’s picture

Version: 7.x-1.3 » 7.x-1.4
webflo’s picture

Component: Miscellaneous » Node
Status: Active » Postponed (maintainer needs more info)

Can not reproduce. Please provide more information about your installed modules and php version.

skyredwang’s picture

Status: Postponed (maintainer needs more info) » Active

Internationalization 7.x-1.4 with php 5.2.17

webflo’s picture

Can you reproduce this issue in a clean Drupal 7 installation?

webflo’s picture

Status: Active » Postponed (maintainer needs more info)
willkaxu’s picture

I'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.

willkaxu’s picture

I'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.

nor4a’s picture

The 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)

PHP Fatal error:  [] operator not supported for strings in /includes/common.inc on line 2352

BTW... the line of the file looks like:

includes/common.inc 2352: $options['attributes']['class'][] = 'active';

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...

webflo’s picture

Status: Postponed (maintainer needs more info) » Needs work

@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...

webflo’s picture

Assigned: Unassigned » webflo

I'm working on it.

webflo’s picture

Status: Needs work » Closed (won't fix)

I 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.

webflo’s picture

Status: Closed (won't fix) » Postponed
webflo’s picture

Title: Adding an unpublished node as a translation to another node results in a 500 server error. » Fatal error: [] operator not supported for strings in includes/common.inc on line 2320
Issue tags: -500 internal server error
webflo’s picture