Hi,
I now have this error again (https://www.drupal.org/node/2801245).
After adding a survey to Drupal the error occurs:
Exception: Cannot initialize entity translation path variables (invalid path scheme). in EntityTranslationDefaultHandler->initPathVariables() (line 1737 of /mnt/web/box35_2/docroot/profiles/commons/modules/contrib/entity_translation/includes/translation.handler.inc).
Latest devs of Limesurvey and Customizable entities and beta 6 of entity_translation.
And after that the error occurs on all pages and breaks complete Site until removing the survey manually from database.
Comments
Comment #2
slowflyer commentedFor more confusion ...
I can import surveys, if they do not have a participant table. Import will work and Website will continue working.
As soon as you create a participant table in LimeSurvey, this error occurs on your Drupal end. If I remove the participant table on Limesurvey this error disappears.
But without a participant table you can't run survey in Drupal.
Comment #3
thedut commentedHello slowflyer,
I'am not able to reproduce this issue.
As a workaround to make your site functionnal, you could go to admin/config/regional/entity_translation and unselect the limesurvey entities. Then, in order to help me fixing this issue, you could :
Comment #4
slowflyer commentedComment #5
slowflyer commentedComment #6
slowflyer commentedHi,
your suggested workaround works from the oposite as you have described. In general, I've had the limesurvey entities unselected for entity translation. As soon as I enable them the error is gone, at this step and occurs on the next step when I add the first user to the survey.
Seems that the error occurs if there are limesurvey elements not enabled for entity translation.
Attached the output you asked for.
Comment #7
slowflyer commentedAn Update to the latest dev's of Limesurvey Sync and Customizable entities does not change the bevhaviour.
When trying to add a user, a huge liste of notices appears:
Notice: Undefined index: ls_tid in limesurvey_sync_api_fields_render() (line 452 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_tid in limesurvey_sync_api_fields_render() (line 453 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_participant_id in limesurvey_sync_api_fields_render() (line 452 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_participant_id in limesurvey_sync_api_fields_render() (line 453 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_firstname in limesurvey_sync_api_fields_render() (line 452 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_firstname in limesurvey_sync_api_fields_render() (line 453 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_lastname in limesurvey_sync_api_fields_render() (line 452 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_lastname in limesurvey_sync_api_fields_render() (line 453 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_email in limesurvey_sync_api_fields_render() (line 452 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_email in limesurvey_sync_api_fields_render() (line 453 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_emailstatus in limesurvey_sync_api_fields_render() (line 452 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_emailstatus in limesurvey_sync_api_fields_render() (line 453 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_token in limesurvey_sync_api_fields_render() (line 452 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_token in limesurvey_sync_api_fields_render() (line 453 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_language in limesurvey_sync_api_fields_render() (line 452 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_language in limesurvey_sync_api_fields_render() (line 453 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_blacklisted in limesurvey_sync_api_fields_render() (line 452 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_blacklisted in limesurvey_sync_api_fields_render() (line 453 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_sent in limesurvey_sync_api_fields_render() (line 452 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_sent in limesurvey_sync_api_fields_render() (line 453 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_remindersent in limesurvey_sync_api_fields_render() (line 452 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_remindersent in limesurvey_sync_api_fields_render() (line 453 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_remindercount in limesurvey_sync_api_fields_render() (line 452 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_remindercount in limesurvey_sync_api_fields_render() (line 453 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_completed in limesurvey_sync_api_fields_render() (line 452 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_completed in limesurvey_sync_api_fields_render() (line 453 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_usesleft in limesurvey_sync_api_fields_render() (line 452 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_usesleft in limesurvey_sync_api_fields_render() (line 453 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_validfrom in limesurvey_sync_api_fields_render() (line 452 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_validfrom in limesurvey_sync_api_fields_render() (line 453 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_validuntil in limesurvey_sync_api_fields_render() (line 452 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_validuntil in limesurvey_sync_api_fields_render() (line 453 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_mpid in limesurvey_sync_api_fields_render() (line 452 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Notice: Undefined index: ls_mpid in limesurvey_sync_api_fields_render() (line 453 of /mnt/web/box35_2/docroot/sites/dev/modules/limesurvey_sync/api/limesurvey_sync_api.helpers.inc).
Exception: Cannot initialize entity translation path variables (invalid path scheme). in EntityTranslationDefaultHandler->initPathVariables() (line 1737 of /mnt/web/box35_2/docroot/profiles/commons/modules/contrib/entity_translation/includes/translation.handler.inc).
Comment #8
thedut commentedThanks for reporting.
I'm not able to reproduce this issue.
What do you mean by : "When trying to add a user, a huge liste of notices appears:" --> what url is it and what informations did you tip ?
According to your report in #6 : I have made a patch that *should* solve a part of this issue : the bug that appears depending on the entity type is set as translable or not. Could you test this patch ?
Comment #9
slowflyer commentedSorry to say, but the patch did not solve the issue.
The huge list of notices appears when trying to create a user token (one by one)
followed by the entity translation error.
(See screenshot)
Comment #10
thedut commentedOK, I'am going to create a wew path.
But in the meantime : Could you
The entity translation error message may disappear thanks to this patch.
Comment #11
slowflyer commentedAttached my Entity Translation settings. The limesurvey entities have already been switched off and error still occurs.
Comment #12
slowflyer commentedThis error still drives me crazy.
I can add surveys to my Drupal site, if no participant table has been created on Limesurvey:

As soon as I create a participant table on Limesurvey:

The Drupal site crashes:
Comment #13
slowflyer commentedAnd as soon as I delete the participant table:
Drupal site is working again.
Comment #14
slowflyer commentedI've been able to eliminate the error.
I added a dump before line 1737 in translation.handler.inc and the output started with:
I thought, what the hell has the blog content type to do with my LimeSurvey stuff.
I looked in the Entity Translastion settings and found that blog was the first entitytype where no checkbox ahs been selected:

After selecting an option for blogs and for all other entity types where no option has been selected so far, the Site worked well!
Therefore, my issue is solved! But still no idea, why that was related to the participant table in LimeSurvey.