After updating to the latest release of Webform 7.x-4.x-dev, some of the pages on my site stopped functioning, instead displaying "Error" as the title, the message "The website encountered an unexpected error. Please try again later," and two messages saying "The webform component textfield is not able to be displayed."

Checking the logs, I see this error when those pages are accessed: "Recoverable fatal error: Argument 1 passed to drupal_attributes() must be of the type array, null given, called in /var/www/site.org/sites/all/modules/webform/webform.module on line 3441 and defined in drupal_attributes() (line 2371 of /var/www/site.org/includes/common.inc)."

This problem also occurs with Webform 7.x-4.0-rc5.

Comments

sylwester’s picture

exactly the same problem here

ndenhild’s picture

exactly the same problem here

ndenhild’s picture

My problem, the errors, were solved switching back to 7.x-4.0-rc5.
I had to go to the dev version to finish the updatedb script.
RC5 works fine now.

DanChadwick’s picture

Status: Active » Postponed (maintainer needs more info)

We certainly would like to have information about how to reproduce this, since we are working on the next release candidate. Can you try installing the devel module and getting a stack trace of the error?

Stijn Vanhandsaeme’s picture

Hi I had the same error with 7.x-4.0-rc5. Tried to upgrade to dev > no luck. Even tried 7.x-4.0-rc4 but still no luck.
Then restarted the php5-fpm process and bingo. No idea what caused this problem and hope to not reproduce it.
Let me know if I can do stuff to help.

jackalope’s picture

I haven't been able to get a stack trace of the errors; sorry! But I do think they might be related to some Varnish caching issues. If I figure out more useful info I'll share it here!

DanChadwick’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Unrelated or not, I received this, performed an udpate, which cleared the cache, and the problem was gone.

Absent more information, I'm going to close this. If you can reproduce it, please do re-open and provide as detailed instructions as possible.

fyberoptik’s picture

I believe I had this issue, I saw the following printed in my console, hope this helps.

admin/build/form-builder/configure/webform/12/cid_8?destination=node/12/webform&js=1 500 (Service unavailable(with message)) jquery.min.js?v=1.7.1:4send jquery.min.js?v=1.7.1:4f.extend.ajax jquery.min.js?v=1.7.1:4getForm form_builder.js?nevsg7:360Drupal.formBuilder.closeActive form_builder.js?nevsg7:929Drupal.formBuilder.editField form_builder.js?nevsg7:370f.event.dispatch jquery.min.js?v=1.7.1:3h.handle.i jquery.min.js?v=1.7.1:3

DanChadwick’s picture

#8 seems completely unrelated. If reproducible, it should be reported in the form_builder issue queue.

sylwester’s picture

4.1 fixed it for me. Although I am still a bit confused. I have upgraded to 4.1 using drush, checked the page and the error was still there. Went and cleared cache using GUI and the problem was gone. In drush log cache has been clearly cleared but is seems like that needed to be done again.

Hope that helps

DanChadwick’s picture

Sometimes the order in which caches are cleared makes a different to whether they get rebuilt right. I've encountered this when changing a view in code. drush cc once and the view is gone. Repeat and it's back, with the new changes. Frustrating to be sure.

I could also swear that I've cleared the cache with admin_menu and it worked when repeated drush cc didn't, but that seems so implausible that I doubt my memory.

I don't think there is a webform issue here.