Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am seeing multiple error messages:
Warning: Invalid argument supplied for foreach() in LimesurveySyncInfosToken->schema_ls_fields_variables() (line 343 of /srv/bindings/f4fb368aebef4687999a8e4eaac56f2e/code/sites/all/modules/limesurvey_sync/api/limesurvey_sync_token.class.inc).
It looks like it has to do with tokens and I'm wondering if it might have to do with having attributes for the tokens.
Any thoughts?
Thanks
Comments
Comment #2
jsibley CreditAttribution: jsibley commentedIn case it is part of the same problem, when trying to sync tokens from Limesurvey to Drupal I get this error messsage, as well:
EntityFieldQueryException: Unknown field: field_ls_token_994774 in EntityFieldQuery->addFieldCondition() (line 817 of /srv/bindings/f4fb368aebef4687999a8e4eaac56f2e/code/includes/entity.inc).
Thanks.
Comment #3
jsibley CreditAttribution: jsibley commentedI think that part of the problem may be this:
that is defined and then called in limesurvey_sync_api.class.inc
It looks as though it will always return false, although I'm not a developer and might be missing something.
Comment #4
jsibley CreditAttribution: jsibley commentedHi,
Any chance you could take a look at this?
thi
Although not a developer, I'm trying to get up to speed enough to understand your code but it's slow going.
How are you handling / planning to handle custom attributes added to limesurvey tokens? Would it make sense to use bundles and have the attributes as fields on the bundles?
I realize that you have other priorities, but is there any chance you could take a look at this?
Thanks.
Comment #5
jsibley CreditAttribution: jsibley commentedI am no longer getting the original errors mentioned above. I think that they were caused by enabling tokens after adding the survey or because some of the survey parameters weren't set correctly. Since then, I have uninstalled and reinstalled the module.
However, I still get:
Warning: Invalid argument supplied for foreach() in LimesurveySyncInfosToken->schema_ls_fields_variables() (line 343 of /srv/bindings/f4fb368aebef4687999a8e4eaac56f2e/code/sites/all/modules/limesurvey_sync/api/limesurvey_sync_token.class.inc).
This seems to come from:
Any idea what is going wrong here?
Thanks.
Comment #6
thedut CreditAttribution: thedut commentedThank you for reporting this issue.
I was aware of this issue, it will be fixed into the next release. In the meantime, don't worry about it. This error message as no consequences on datas.
Comment #7
jsibley CreditAttribution: jsibley commentedMight the message, however, have something to do with whether token attributes in Limesurvey are available in Drupal?
Given the current state of version 2.x, might it make sense, when you have time to go back to it, to have a dependency on ECK and take advantage of the functionality it gives for exposing entities and using them in rules and views?
Comment #8
thedut CreditAttribution: thedut commentedHello,
This issue should be fixed in the new dev version. Could you confirm ?
Comment #9
thedut CreditAttribution: thedut commentedI set this issue to closed. Feel free to reopen this issue if you still meet this bug.