Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Still trying to translate my webforms in other languages.
When browsing my webform in another language, I have a WSOD with this error in drupal logs:
Error: Unsupported operand types in Drupal\webform\Entity\Webform->getSettings() (line 629 of C:\laragon\www\dev.alarm\web\modules\contrib\webform\src\Entity\Webform.php)
I'm using PHP 7.
Comment | File | Size | Author |
---|---|---|---|
#6 | unsupported_operand_types-2880392-6.patch | 695 bytes | heyyo |
#2 | unsupported_operand_types-2880392-2.patch | 590 bytes | heyyo |
|
Issue fork webform-2880392
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
heyyo CreditAttribution: heyyo commentedTemporary fix, which removes the error.
Comment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThanks for the patch.
Comment #6
heyyo CreditAttribution: heyyo commentedI experienced the similar issue on one of my translated webform, I supposed it's caused by not having any config settings for this webform in the translated language folder.
Please find another patch for the method setSettings of the webform class, which resolves my issue.
Comment #7
JeroenT@heyyo,
I'm having the same problem. I created a follow-up issue for it: #2958792: Error: Unsupported operand types in Drupal\webform\Entity\Webform->setSettings() (line 739
Comment #8
Jaypan CreditAttribution: Jaypan commentedThe patch from #6 works for me
Comment #9
poonlap CreditAttribution: poonlap commentedAfter upgraded to latest version. I had the same problem. The patch #6 solved the problem. Thank you.
Comment #10
weseze CreditAttribution: weseze as a volunteer commentedCan this please be reopened?
Just updated to RC16 and running into this problem again...
Now on line 760 and the patch from #6 does not seem applied anymore?
Comment #11
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThis patch is suppressing a much larger issue that your webform settings are being lost/deleted during the update.
I think this issue is related to #2913548: Source element values are replaced with translated values.
Comment #12
golubovicm CreditAttribution: golubovicm commentedJust to confirm that patch is still needed but at least still working with RC18 and RC19.