I get the following fatal error when trying to access features/create, features/x/diff or features/x/recreate page for a feature.

Fatal error: Cannot use object of type stdClass as array in /Users/tom/workspace/concern7/profiles/concern/modules/contrib/features_override/features_override.export.inc on line 264

http://cl.ly/2n0y153F1o2J0A091p2t

Comments

mpotter’s picture

Status: Active » Postponed (maintainer needs more info)

We would need to see more details about the specific feature(s) you are exporting, especially what your existing Override feature looks like.

dave reid’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Active

I just experienced this on a project. We had a feature override which was overridding some settings of a field base. We then *removed* all the feature overrides from the feature and are now getting this error.

flux423’s picture

Any progress on resolving this issue? I'm also still receiving this error when recreating an existing feature.

Fatal error: Cannot use object of type stdClass as array in path-to-drupal-modules/features_override/features_override.export.inc on line 263

Below is the exert from the file - line 263 starts with 'original' :

 $additions[features_override_make_key($_keys)] = array(
             'keys' => $_keys,
             'value' => $value,
             'original' => (is_scalar($value) && isset($default[$key])) ? $default[$key] : '',
          );

Not sure how to go about troubleshooting this issue.

daceej’s picture

Uploading a patch that worked for me.

daceej’s picture

Status: Active » Needs review