Hi,

I downloaded the 1.1.2.23.2.46 (9/10/2009) version of l10n_server and i use the l10n_community module.

After submiting a translation or a suggestion i receive the following error msg:

warning: rawurlencode() expects parameter 1 to be string, object given in documentroot/includes/common.inc on line 2474.

The stack trace:

#0  drupal_urlencode(stdClass Object ([pid] => 231,[uri] => cck_gallery,[title] => cck_gallery,[home_link] => http://drupal.org/project/cck_gallery,[last_parsed] => 0,[connector_module] => l10n_localpacks,[status] => 1)) called at [docroot/includes/common.inc:232]
#1  drupal_query_string_encode(Array ([project] => stdClass Object ([pid] => 231,[uri] => cck_gallery,[title] => cck_gallery,[home_link] => http://drupal.org/project/cck_gallery,[last_parsed] => 0,[connector_module] => l10n_localpacks,[status] => 1),[status] => 0,[release] => all,[search] => ,[author] => ,[context] => all,[limit] => 10,[page] => 2)) called at [docroot/includes/common.inc:1403]
#2  url(translate/languages/hu/edit, Array ([query] => Array ([project] => stdClass Object ([pid] => 231,[uri] => cck_gallery,[title] => cck_gallery,[home_link] => http://drupal.org/project/cck_gallery,[last_parsed] => 0,[connector_module] => l10n_localpacks,[status] => 1),[status] => 0,[release] => all,[search] => ,[author] => ,[context] => all,[limit] => 10,[page] => 2),[fragment] => ,[absolute] => 1)) called at [docroot/includes/common.inc:314]
#3  drupal_goto(translate/languages/hu/edit, Array ([project] => stdClass Object ([pid] => 231,[uri] => cck_gallery,[title] => cck_gallery,[home_link] => http://drupal.org/project/cck_gallery,[last_parsed] => 0,[connector_module] => l10n_localpacks,[status] => 1),[status] => 0,[release] => all,[search] => ,[author] => ,[context] => all,[limit] => 10,[page] => 2)) called at [(null):0]
#4  call_user_func_array(drupal_goto, Array ([0] => translate/languages/hu/edit,[1] => Array ([project] => stdClass Object ([pid] => 231,[uri] => cck_gallery,[title] => cck_gallery,[home_link] => http://drupal.org/project/cck_gallery,[last_parsed] => 0,[connector_module] => l10n_localpacks,[status] => 1),[status] => 0,[release] => all,[search] => ,[author] => ,[context] => all,[limit] => 10,[page] => 2))) called at [docroot/includes/form.inc:628]
#5  drupal_redirect_form(Array ([#tree] => 1,[#redirect] => Array ([0] => translate/languages/hu/edit,[1] => Array ([project] => stdClass Object ([pid] => 231,[uri] => cck_gallery,[title] => cck_gallery,[home_link] => http://drupal.org/project/cck_gallery,[last_parsed] => 0,[connector_module] => l10n_localpacks,[status] => 1),[status] => 0,[release] => all,[search] => ,[author] => ,[context] => all,[limit] => 10,[page] => 2)),[pager_top] => Array ([#weight] => -10,[#value] => <div class="item-list"><ul class="pager"><li class="pager-first first"><a href="/translate/languages/hu/edit?project=cck_gallery&amp;status=0&amp;release=all&amp;search=&amp;author=&amp;context=all&amp;limit=10&amp;29006[translation][value]=&amp;29007[translation][value]=&amp;29008[translation][value]=&amp;29009[translation][value]=&amp;29010[translation][value]=ImageCache-be%C3%A1ll%C3%ADt%C3%A1sok&amp;29011[translation][value]=&amp;29012[translation][value]=&amp;29013[translation][value]=&amp;29014[translation][value]=&amp;29015[translation][value]=&amp;form_build_id=form-664b714726965e160c31a88103b57c1f&amp;form_token=87d03c1e24f09e0915c7f4db953e73b4&amp;form_id=l10n_community_translate_form" title="Ugrás az első oldalra" class="active">« első</a></li>
CommentFileSizeAuthor
#1 project-convert.patch869 bytesgábor hojtsy

Comments

gábor hojtsy’s picture

Status: Active » Fixed
StatusFileSize
new869 bytes

@lor also submitted this at #573666: Warning message, which I've just marked as duplicate:

When I've translated "Right square bracket ]" by "Crochet fermant ]" in Pathauto module, in French language, the translation has been accepted with the warning message above :

warning: rawurlencode() expects parameter 1 to be string, object given in /var/www/localize.drupal.org/htdocs/includes/common.inc on line 2441.

The issue was that the project and author objects were not converted to strings on the translation form. The attached patch should fix that, committed. Now going to deploy to localize.drupal.org.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.