When the Webform Protected Downloads module is enabled on my multilingual website (which uses Entity Translation and Domain Access), I'm getting this notice after submitting a form with protected downloads (it's also visible for anonymous visitors):

Notice: Trying to get property of non-object in i18n_langcode() (line 229 of /sites/all/modules/contrib/i18n/i18n.module).

When I disable the module, the notice is gone, but then my downloads are no longer protected ofcourse.

What could be the cause of this issue please?

Comments

knalstaaf created an issue. See original summary.

knalstaaf’s picture

Version: 7.x-1.1 » 7.x-1.x-dev

Occurs in de DEV as well.