Hi,

I'm trying to get this module working with Features 7.x-1.0-beta1 and Strongarm 7.x-2.0-beta2. When I try to recreate a feature, I get the following in my log:

Notice: Undefined index: features in features_plumber_ui_form() (line 184 of mypath/sites/all/modules/features_plumber/features_plumber_ui/features_plumber_ui.module).
Notice: Undefined index: dependencies in features_plumber_ui_form() (line 184 of mypath/sites/all/modules/features_plumber/features_plumber_ui/features_plumber_ui.module).

I did a bit of digging and made the errors go away by changing lines 184 onwards from:

  $components = $export['features'];
  $components['dependencies'] = $export['dependencies'];

  features_plumber_include('crud');
  $records = features_plumber_records_load_by_feature($feature);

  foreach ($components as $component => $component_vals) {
    if (features_plumber_component_is_supported($component)) {
      foreach ($component_vals as $component_val) {
        // We only want detected items, not selected ones.
        if (!in_array($component_val, $stub[$component])) {

to:

  $components = $export['build_info']['args'][0]['features'];
  $components['dependencies'] = $export['build_info']['args'][0]['dependencies'];

  features_plumber_include('crud');
  $records = features_plumber_records_load_by_feature($feature);

  foreach ($components as $component => $component_vals) {
    if (features_plumber_component_is_supported($component)) {
      foreach ($component_vals as $component_val) {
        if ($component == 'variable') {
          $test = $stub['features'][$component];
        } else {
          $test = $stub[$component];
        }
        if (!in_array($component_val, $test)) {

...but it's still not showing the variable display on the right hand side, so this module doesn't work for me :( Would like it to though!

From the changes I made I can only presume that the position of variables has changed recently in some way, but it's way over my head and 3am so going to bed ;)

Comments

lelizondo’s picture

subscribing

q0rban’s picture

I have committed a bunch of code to complete the upgrade to D7. Can you test out with a fresh clone from git?

git clone http://git.drupal.org/project/features_plumber.git
q0rban’s picture

Status: Active » Closed (cannot reproduce)

Just downloaded the latest features/features plumber/strongarm. Everything seems to be working fine for me.