Closed (fixed)
Project:
SEO UI
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2012 at 01:50 UTC
Updated:
5 Sep 2012 at 17:57 UTC
Jump to comment: Most recent file
Hi,
I'm getting a fatal error when I create any type of new nodes with metatag + seo_ui. Disabling seo_ui fixes the problem.
Recoverable fatal error: Argument 2 passed to metatag_filter_values_from_defaults() must be an array, null given, called in modules/metatag/metatag.module on line 545 and defined in metatag_filter_values_from_defaults() (line 925 of modules/metatag/metatag.module).
I'm using
In a blank Drupal install (Minimal installation profile). I have also tested with the -dev branches of each module with the same result.
Any ideas? It seems like it's probably some issue with an extra array getting added when the metatag fieldset got put in another fieldset. Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | seo_ui-fixed_fatal_error_when_enabling-1425324-8.patch | 725 bytes | PatchRanger |
| #4 | seo_ui-1425324.patch | 705 bytes | amaria |
Comments
Comment #1
builderShawn commentedAlso getting this error.
Comment #2
amaria commentedI haven't seen this error but before I do, was there anything in particular you filled out in the Meta tags that triggers the error? Or did you just save a node with title?
Comment #3
jlyon commentedI just saved a node with title.
Comment #4
amaria commentedOk, I finally was able to reproduce this. I had to disable the OpenGraph module included with this project. The bug was in the form_alter hook where the submit handler is replaced. This patch should fix the error.
Comment #5
PatchRanger commentedIndeed, I had the same issue : while creating or updating nodes with module seo_ui enabled exact the same message appears ("Recoverable fatal error: Argument 2 passed to metatag_filter_values_from_defaults() must be an array, null given...").
@amaria Thank you, patch realy did the work.
Comment #6
mparker17I was able to reproduce this on a clean install using seo_ui-7.x-1.x head.
Marking as major because this bug prevents nodes from being saved (rendering system unusable) but only when Open Graph meta tags is enabled.
Steps to reproduce:
drupal-7.12,minimalinstall profile.ctools-7.x-1.0,metatag-7.x-1.0-alpha5,redirect-7.x-1.0-beta4,pathauto-7.x-1.0.seo_ui-7.x-1.xhead (commit 81fab8fc5f0f6bb1b227814aee879de24fb6c570).Administration -> Modules, enabled:Core -> PathMeta tags -> Meta tagsMeta tags -> Open Graph meta tagsOther -> PathautoOther -> RedirectOther -> Unified SEO UIAdministration -> Structure -> Content typescreated apagecontent type.Add content -> Page, created a node. Put test text in forTitleandBody, but didn't change any other options. ClickedSave.I applied the patch in #4, repeated step 6 and was able to save the node successfully.
If the patch in #4 could be changed to conform to Drupal coding standards (see the section on operators), this issue could be marked RTBC.
Comment #7
playfulwolf commentedanyone to apply the patch?
p.s. getting the same error
Comment #8
PatchRanger commentedPatch re-rolled to make it to conform Drupal coding standarts.
Comment #9
PatchRanger commentedMarking as 'r&tbc' due to #6.
Comment #10
jessebeach commentedThank you all for the patch and the excellent steps-to-reproduce. Sorry for the delay addressing this.
Fixed in 7.x-1.x. I'll roll a new release after I fix one more issue that throwing messages.