When when I attempted to assign a translation job to a translator, the form submitted and then the translation dashboard no longer displayed any content. My translator user could not see the assigned job either. After logging the admin out and then back in, the content on the translation dashboard was back. At this point I could see that the translation job had never been assigned to the translator, so I headed over to the recent log entries and found the following was occurring:
-1 The Website ID is not set
I dug into the source code a little and found the error originates in "icl_core.webservices.inc" in the "icl_core_call_service" function. Specifically, the "icl_core_website_id" variable seems to not be set after attempting to assign a translation job.
I simply removed that if statement to test and see what would happen and then the next if statement threw the error "-2 The Accesskey is not set."
So it seems like the uri variables aren't getting set properly for me somehow. Further investigation has revealed that the error is thrown every time I visit the page, regardless of whether translatable content is listed or not, so I can't say for certain that the content not being listed after an attempted translation assignment is related to this error or not.
Comments
Comment #1
icanlocalize CreditAttribution: icanlocalize commentedComment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedAfter attempting a downgrade to beta 5, I have discovered that the problem persists. This is odd, because I didn't have this issue the last time I was testing out beta 5. I am running into this issue on a localhost so I may try on my development server and see what happens.
It does appear to also be happening on my development server so a local issue is not the problem.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedI solved the issue with the content disappearing. The language neutral filter doesn't seem to work properly, or at least how I'd expect. If a piece of content hasn't had a language assigned to it yet and is listed as language nuetral, then it can't be assigned for translation. However, no warning is given so the user doesn't know why the assignment hasn't occurred. Furthermore, the content listing is now trying to list english documents, of which I did not have any yet. The language nuetral filter didn't seem to find any content when I attempted to select that.
So. Sorry for the confusion. This issue is really two separate things.
1. The "-1 The Website ID is not set" log error which is still occurring but doesn't seem to effect anything.
2. No error message when attempting to assign translation for content which does not currently have a language.
Comment #4
icanlocalize CreditAttribution: icanlocalize commentedThanks. We'll fix the PHP warning and add a notice about language neutral.
Comment #5
brucepearson CreditAttribution: brucepearson commentedThese have now been fixed and will be available in the next release.
We have added a message about language neutral language. Content that is language neutral can't be translated and the language of the content needs to be specified before it can be translated.
Comment #6
brucepearson CreditAttribution: brucepearson commentedComment #7
ikeigenwijs CreditAttribution: ikeigenwijs commentedI see the same error in watchdog:
icl_core 03/03/2011 - 13:51 -1 The Website ID is not set mdcokere
not an admin user
drupal 6.20
Comment #8
SweetchuckI confirm, this bug is still exists
Comment #9
alexbk66- CreditAttribution: alexbk66- commentedI get this error twice when I create new blog entry.
Comment #10
totocol CreditAttribution: totocol commentedI am also getting this error on Drupal 6.20
Comment #11
jvieille CreditAttribution: jvieille commentedAlso getting this error D6.20, TM 6.x-1.22
Appears when editing an untranslated node
Comment #12
fmmribeiro CreditAttribution: fmmribeiro commentedAlso getting this error D6.20, TM 6.x-1.28
Comment #13
beck24 CreditAttribution: beck24 commentedDitto.
Comment #14
troyer CreditAttribution: troyer commentedThe bug has crawled up again. I was trying to add content, language was set to English, after submitting my form I was presented with a blank form and the content wasn't saved. In the error log it says "Type: icl_core / Message: -1 The Website ID is not set".
I'm using PHP 5.3.2 and Drupal 6.25.
Comment #15
Alpinist1974 CreditAttribution: Alpinist1974 commented-1 The Website ID is not set.
I'm experiencing this issue as well, and it seems to precede my site hanging up and crashing, using ICL_core 6x-1.30
I'm running drupal 6.25 and PHP 5.3.2.
Comment #16
millenniumtreeSame here. Using local translation only, no web services.
I wonder if this should be reassigned? It doesn't appear jozik has committed anything in a while.
Comment #17
millenniumtreeIt appears there are multiple calls to unnecessary functions.
icl_content.module: theme_icl_content_fancy_status()
$targets = _icl_core_available_targets (FALSE, $node->language);
$targets = _icl_core_available_targets ();
The $targets variable is never used in theme_icl_content_fancy_status()
icl_content.module: icl_content_alter_node_add_form()
$langs = icl_core_available_languages ();
$targets = _icl_core_available_targets ();
Again, neither $langs, nor $targets is ever used.
Commenting out those 4 lines seems to prevent the error, but I still get a WSOD on node save.
Comment #18
gateway69 CreditAttribution: gateway69 commentedHas this been resolved, im also going though our db logs and I see this pop up every so often.
Looking at the variables set I do not see icl_core_website_id, so if your not using their service, aka local translation you will be set with a -1 value or not set at all.
This is all set up in icl_core.settings.inc