I got this on a new install today...

Recoverable fatal error:
Argument 2 passed to metatag_filter_values_from_defaults() must be an array, null given,

called in
/var/www/.../metatag_views_overview/metatag_views_overview.module on line 198

and defined in metatag_filter_values_from_defaults()
(
line 1901 of /var/www/.../modules/contrib/metatag/metatag.module
).

I was just doing a test of a view's metatag description with the value of Test. Suggestions?

Comments

studiosander’s picture

I have the same issues as above descriped. Since the update of metatag module. The hook where metatag_filter_values_from_default is loaded in metatag module is an array... So rewrite the hook of metatag_views_overview.module to an array.

millionleaves’s picture

Also having this problem. Running Meta tag 1.4. The module isn't much use for me unless this issue is fixed, unfortunately, since the reason I need it is so I can set unique meta tags for each display in a view.

das.gautam’s picture

Status: Active » Needs review
StatusFileSize
new1.14 KB

Also faced the same problem, the issue was in the line 198 metatag_views_overview.module,
metatag_filter_values_from_defaults($form_state['values']['metatags'], $form['metatags']['#metatag_defaults']);
Here we need to add the language key, the following code worked for me:
// Get default language.
$default = $form['metatags']['#language'];
// Cleanup the metatags.
metatag_filter_values_from_defaults($form_state['values']['metatags'][$default], $form['metatags'][$default]['#metatag_defaults']);

Attaching a patch for it.

quwat’s picture

@das.gautam27
Thanks for the patch. It works like a charm.

pietpomp’s picture

#3 patch worked, thx [D7.41; Metatag 7.x-1.8].

I would suggest the issue title be adjusted as I had the same issue when adjusting the 'title' field. So maybe something like "error on save with View metatag 'Override View'".

moonray’s picture

Status: Needs review » Reviewed & tested by the community

Confirming that this patch fixed the issue in question.

dieppon’s picture

Hi,

#3 patch worked, thx [D7.43; Metatag 7.x-1.14].

Can this be commit it?

Kind regards

dieppon’s picture

I have been added as a maintainer. The patch has been added to the dev branch.

  • dieppon committed 7c1418a on 7.x-1.x authored by das.gautam27
    Issue #2366559 by das.gautam27: error when adding a new description in...
dieppon’s picture

Status: Reviewed & tested by the community » Fixed
dieppon’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.