hi,

I cannot install the module on a fresh Drupal 7.4 site, seeing this notice:

Notice: Trying to get property of non-object in relation_type_save() (line 297 of /home2/javakurz/public_html/sandbox1/modules/relation/relation.module).
Notice: Trying to get property of non-object in relation_type_save() (line 298 of /home2/javakurz/public_html/sandbox1/modules/relation/relation.module).
Notice: Trying to get property of non-object in relation_type_save() (line 299 of /home2/javakurz/public_html/sandbox1/modules/relation/relation.module).
Warning: Invalid argument supplied for foreach() in relation_type_save() (line 311 of /home2/javakurz/public_html/sandbox1/modules/relation/relation.module).
Notice: Trying to get property of non-object in relation_type_save() (line 315 of /home2/javakurz/public_html/sandbox1/modules/relation/relation.module).
FieldException: Attempt to create an instance of a field endpoints that doesn't exist or is currently inactive. in field_create_instance() (line 453 of /home2/javakurz/public_html/sandbox1/modules/field/field.crud.inc).

Comments

Jb33’s picture

After this issue, I tried to refresh the page, but the whole site stopped working, this is on the welcome page:

The website encountered an unexpected error. Please try again later.
Error message
FieldException: Attempt to create a field of unknown type relation_endpoint. in field_create_field() (line 106 of /home2/javakurz/public_html/sandbox1/modules/field/field.crud.inc).

naught101’s picture

That's bizarre. I don't see why relation_type_save() would be called on install. Could you please try with a fresh install and the latest -dev release? Are you sure you didn't do anything after installing?

levacjeep’s picture

Have the same problem with beta-1 and the latest dev snapshot as well.

Juan C’s picture

subscribe

mrsinguyen’s picture

+1

chx’s picture

Status: Active » Postponed (maintainer needs more info)

I can't reproduce this. I have installed with a standard profile, went to the modules page and enabled all three relation modules. They enabled just fine. (Usually I install minimal and use drush to enable the modules but now I checked as above).

chx’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

This must be fixed since w the spinoff of the endpoints module.

millaraj’s picture

Component: Code » API

Seem to still be getting this

Running 7.12 with latest dev version of relation.

Notice: Undefined variable: return in relation_get_types() (line 457 of C:\wamp\www\drupal-7.12\sites\all\modules\relation\relation.module).
Warning: Invalid argument supplied for foreach() in relation_get_types() (line 457 of C:\wamp\www\drupal-7.12\sites\all\modules\relation\relation.module).
Notice: Trying to get property of non-object in relation_type_save() (line 379 of C:\wamp\www\drupal-7.12\sites\all\modules\relation\relation.module).
Notice: Trying to get property of non-object in relation_type_save() (line 380 of C:\wamp\www\drupal-7.12\sites\all\modules\relation\relation.module).
Notice: Trying to get property of non-object in relation_type_save() (line 381 of C:\wamp\www\drupal-7.12\sites\all\modules\relation\relation.module).
Warning: Invalid argument supplied for foreach() in relation_type_save() (line 393 of C:\wamp\www\drupal-7.12\sites\all\modules\relation\relation.module).
Notice: Trying to get property of non-object in relation_type_save() (line 397 of C:\wamp\www\drupal-7.12\sites\all\modules\relation\relation.module).
Notice: Undefined variable: return in relation_get_types() (line 457 of C:\wamp\www\drupal-7.12\sites\all\modules\relation\relation.module).
Warning: Invalid argument supplied for foreach() in relation_get_types() (line 457 of C:\wamp\www\drupal-7.12\sites\all\modules\relation\relation.module).
FieldException: Attempt to create an instance of field endpoints without a bundle. in field_create_instance() (line 464 of C:\wamp\www\drupal-7.12\modules\field\field.crud.inc).

sansui’s picture

Same issue as #8, although on 7.22 with dev version

Going through module installations 1 by 1, it appears that subuser is the module causing the relation errors

naught101’s picture

Sansui: You can't be having the same problem as #8, unless you're running a really old version. Can you please post the actual error you're receiving, as well as the steps it takes to reproduce the error, as a new bug report?

sansui’s picture

Edit: Sorry, I'm mixing up my queues here - rather distracted reply, hah. In any case, the issues I was having are with the subuser module, which apparently is not functioning with newer releases of relation. Please disregard my error report