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
Comment #1
Jb33 commentedAfter 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).
Comment #2
naught101 commentedThat'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?
Comment #3
levacjeep commentedHave the same problem with beta-1 and the latest dev snapshot as well.
Comment #4
Juan C commentedsubscribe
Comment #5
mrsinguyen commented+1
Comment #6
chx commentedI 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).
Comment #7
chx commentedThis must be fixed since w the spinoff of the endpoints module.
Comment #8
millaraj commentedSeem 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).
Comment #9
sansui commentedSame 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
Comment #10
naught101 commentedSansui: 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?
Comment #11
sansui commentedEdit: 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