Hey there.

I installed the module by untaring into sites/modules as normal, and ran update.php. No errors. Then I hopped into admin modules and enabled the checkbox, and submitted. Then I got this fatal: Call to undefined function webform_component_include() in /var/www/sites/all/modules/webform_table_element/webform_table_element.module on line 8. I've tried a second time, same results. I've put this under a support request which is I hope alright - happy to assist in a resolution / testing to see if can resolve. Cheers Jon

Comments

attiks’s picture

two things to check:
do you have webforms installed and enabled
can you try the latest version of webform table element, the dev version

jelle_s’s picture

What version of webform do you have?
webform-6.x-3.14
Line 3177 and following:

/**
 * Load a component file into memory.
 *
 * @param $component_type
 *   The string machine name of a component.
 */
function webform_component_include($component_type) {
  static $included = array();

  // No need to load components that have already been added once.
  if (!isset($included[$component_type])) {
    $components = webform_components(TRUE);
    $included[$component_type] = TRUE;

    if (($info = $components[$component_type]) && isset($info['file'])) {
      $pathinfo = pathinfo($info['file']);
      $basename = basename($pathinfo['basename'], '.' . $pathinfo['extension']);
      $path = (!empty($pathinfo['dirname']) ? $pathinfo['dirname'] . '/' : '') . $basename;
      module_load_include($pathinfo['extension'], $info['module'], $path);
    }
  }
}
musojon74’s picture

Thanks for helping guys. The webform module is kind of old and the recommended lines aren't there, sorry. I'd been putting off patching whilst I tried to make sure all was ok in dev. Will patch webform on dev and report back. :)

musojon74’s picture

Status: Active » Closed (works as designed)

Sorry guys as expected the module updates have resolved the issue. I might try out the dev version too. Thanks for your very prompt responses :)