Error message when creating node
rubenk - June 4, 2006 - 03:26
| Project: | Relationship |
| Version: | HEAD |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I installed relationships ontology_navigation' and metadata_blocks.module...as wel as forms module
got this error when creating new story (my associated node type) site=>mysite
warning: array_merge() [function.array-merge]: Argument #1 is not an array in /site/modules/relationship/range_selectors.inc on line 239.
warning: array_merge() [function.array-merge]: Argument #2 is not an array in /site/modules/relationship/range_selectors.inc on line 239.
warning: array_merge() [function.array-merge]: Argument #1 is not an array in /site/modules/relationship/range_selectors.inc on line 239. etcI also got errors when clicking the demo and when trying to edit any Relationship type
I would love to sandbox this but can't at the moment.

#1
Changine line 290 to this fixes it. This just casts to an array and stops the error, but it is proably not the right way to do it. This is a cool RDF module though.
$subject_statements = array_merge((array)$custom_statements,$subject_statements);#2
Many repairs done in CVS now. This fixed among other changes.
I'm looking at diagramming some of the processes now, it's got complex.
What properties can apply to what sort of nodes and what sort of values they can have is all configured by sets of domain/range rules.
The ontology schema that describes these rules is now round-trip-able. Can export the schema file as RDF, and import it again.
Just having some confusion on the absolute URIs. RDF doesn't like local identifiers making global statements :-/
#3