Hello,

I'm using the relationship module on drupal 4.7.2 and 4.7.3, but the relationship navigation block doesn't seem to show up. Strangely, I get two identical instances of it that I can enable on the admin->blocks page, but neither off them work.

My understanding is that when a user is viewing a node, this block would show the relationships of that node in the sidebar (ie, "see also this page"). Is there anything else I need to enable?

The metadata seems to be added properly and shows up in the "head" of the page source.

Cheers,

s.

s.

CommentFileSizeAuthor
#5 rdf_datastore.inc.txt7.35 KBdman
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dman’s picture

Assigned: Unassigned » dman

I don't think I even reviewed the metadata block since going to 4.7.
I'll see what the story is...

dman’s picture

Status: Active » Fixed

Mmm, it was all still 4.6.
I've fixed a lot of bits up now.
The side block (as expected) will list all available relationships.
There was a custom version as well you could choose which relations to display with, but that needs a little more work - forms api is spitting back arrays not values at me today. I don't really have a use in mind for that function yet anyway.

In other news, the plugin 'navigation' ontology should be much improved. It has its own custom block you can turn on instead. Some of the links went missing in the last iteration due to a switch from node ids to node paths as the unique resource identifier.

In CVS now
.dan.

Steven Mansour’s picture

That's great!

Using CVS now, though, I'm getting:

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/strictma/public_html/berkman/modules/relationship/rdf_datastore.inc on line 27.

I just copied the CVS version over the old one.

s.

Steven Mansour’s picture

Status: Fixed » Active
dman’s picture

FileSize
7.35 KB

Bah!
PHP 4-5
I test in 5 and it tells me 'var' is deprecated. I change it to 'public' and 4 stops working.
Put it back to var I guess.

Steven Mansour’s picture

Ok,

Thanks for the quick follow-up!

Now I'm getting:
Fatal error: relationship_query(): Failed opening required 'characteristics.inc' (include_path='modules/relationship:.:/usr/lib/php:/usr/local/lib/php') in /home/strictma/public_html/berkman/modules/relationship/relationship_api.inc on line 287

I should probably know what this means, but I'm no coder... :)

Is characteristics.inc part of the module?

dman’s picture

Looks like I need a better test routine, sorry.
Characteristics SHOULD have been part of the bundle. Just missed getting committed (I'm useing three different CVS clients at different times)
It's here now.

http://cvs.drupal.org/viewcvs/drupal/contributions/modules/relationship/...

Steven Mansour’s picture

I'm going to keep pestering you with these... ;)

Now I get:

"Fatal error: Call to undefined function: array_combine() in /home/strictma/public_html/berkman/modules/relationship/range_selectors.inc on line 260" when trying to edit a node.

Another php4 / 5 problem maybe?

Also, I got a DB error when enabling the modules (a bunch of "table not found errors"), but after going to settings -> relationship, the install file seems to have kicked in.

dman’s picture

OK, I'm guilty of not doing enough regression testing. I'm firing up a PHP 4.4.1 instance to see what the story is.
The dead tables will be due to the install dying half-way most likely.
Shouldn't be too bad. I recall actually doing an array_combine stub somewhere... Probably just the includes in the wrong order. The bootstrap phase is the most tempremental :)
All the config settings are actually stored using the system itself! Asking for trouble I guess.

dman’s picture

Status: Active » Closed (fixed)

Long fixed or dead. Time to clean up the queue.