GithubHelp home page GithubHelp logo

Comments (2)

herbdool avatar herbdool commented on May 26, 2024

I have the same issues. I can submit a pull request to fix some of this.

Issue one: the View: webform_webforms probably doesn't exist and webform_table probably set to "null" in the config. So manually set that to 1 to default to the table as a quick fix, or import the webform_webforms from some other site. (see function webform_admin_content() under includes/webform.admin.inc)

Issue two: the webform settings aren't saving properly so nothing appears for options to add fields. Under function webform_admin_settings_submit() in includes/webform.admin.inc move this snippet so it's just before the closing bracket:

  $config = config('webform.settings');
  foreach ($form_state['values'] as $key => $value) {
    $config->set($key, $value);
  }
  $config->save();
  backdrop_set_message(t('The configuration options have been saved.'));

For some reason it was at the beginning so it missed all the changes before saving.

Issue three: the webform_disabled_compenents needs to exist in the config as an empty array at first. So do this manually to get it working in webform.settings.json add this somewhere in the middle:

"webform_disabled_components": [],

There also needs to be a patch to ensure these variables exist in the .install for anyone else trying to install.

That should get it working, more or less. I'm still trying to squash one warning in the meanwhile:

Warning: array_flip() expects parameter 1 to be array, null given in /home/nubeli/a.nubeli.org/backdrop/core/includes/common.inc on line 1739

from webform.

herbdool avatar herbdool commented on May 26, 2024

The last issue I mentioned is fixed by adding the following to the webform.settings.json config:

    "webform_allowed_tags": [
        "a",
        "em",
        "strong",
        "code",
        "img"
    ],

So most of these issues are just from the module not providing defaults when upgrading instead of doing a fresh install. And one mistake in the settings submission form.

Hopefully that at least gets it working.

from webform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.