Closed (fixed)
Project:
Schema.org
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Jun 2011 at 16:29 UTC
Updated:
29 Dec 2011 at 05:00 UTC
Jump to comment: Most recent file
For some reason, possibly related to #1188338: Notice & Warnings: when adding a new field to a new content-type, the schema properties I had previously set did not actually save. I had to go back and reset the schema properties within my new content-type.
The following Warning was displayed after 'Save settings':
Warning: array_filter() expects parameter 1 to be array, null given in schemaorg_terms_merge() (line 165 of /.../sites/all/modules/schemaorg/schemaorg.module).
Warning: array_unshift() expects parameter 1 to be array, null given in schemaorg_terms_merge() (line 170 of /.../sites/all/modules/schemaorg/schemaorg.module).
This issue is similar to #1188338: Notice & Warnings: when adding a new field to a new content-type. So I created a similar patch which fixed this for me. Patch forthcoming.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1189466-1-warnings_schema_terms.patch | 450 bytes | clayball |
Comments
Comment #1
clayball commentedhere's the patch.
Comment #2
scor commentedThanks Clay. fixed with http://drupalcode.org/project/schemaorg.git/commit/cf0ae99 and its author attribution.