There is an error when editing the block "Block User Relationships: relationship name".

Warning : include_once(sites/all/modules/user_relationships/user_relationships_ui/user_relationships_ui.admin_actions.inc) [function.include-once]: failed to open stream: No such file or directory dans user_relationship_blocks_block_configure() (ligne 132 dans /sites/all/modules/user_relationships/user_relationship_blocks/user_relationship_blocks.module).
Warning : include_once() [function.include]: Failed opening 'sites/all/modules/user_relationships/user_relationships_ui/user_relationships_ui.admin_actions.inc' for inclusion (include_path='.:/usr/local/php5/lib/php') dans user_relationship_blocks_block_configure() (ligne 132 dans /sites/all/modules/user_relationships/user_relationship_blocks/user_relationship_blocks.module).
Notice : Trying to get property of non-object dans user_relationship_blocks_block_configure() (ligne 152 dans /sites/all/modules/user_relationships/user_relationship_blocks/user_relationship_blocks.module).
Notice : Trying to get property of non-object dans user_relationship_blocks_block_configure() (ligne 175 dans /sites/all/modules/user_relationships/user_relationship_blocks/user_relationship_blocks.module).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Berdir’s picture

Status: Active » Needs review
FileSize
3.26 KB

Please try the attached patch and confirm that this fixes the issue.

sw3b’s picture

Still got those error and the settings are not saved.

Notice : Trying to get property of non-object dans user_relationship_blocks_block_configure() (ligne 150 dans /sites/all/modules/user_relationships/user_relationship_blocks/user_relationship_blocks.module).
Notice : Trying to get property of non-object dans user_relationship_blocks_block_configure() (ligne 173 dans /sites/all/modules/user_relationships/user_relationship_blocks/user_relationship_blocks.module).

Berdir’s picture

I am unable to reproduce that error.

Saving blocks works fine for me.

Are you using the most recent version of UR? Try to uninstall and re-install the UR-Blocks module? Does that help?

sw3b’s picture

Yes i'm using the most recent ! I will look in more detail to see if I can find the error or more details.

sw3b’s picture

FileSize
69.8 KB

Now seetings are save with latest Dev version but still got this error when editing the block:

Warning : include_once(sites/all/modules/user_relationships/user_relationships_ui/user_relationships_ui.admin_actions.inc) [function.include-once]: failed to open stream: No such file or directory dans user_relationship_blocks_block_configure() (ligne 132 dans /home/sw3b/www/www/sites/all/modules/user_relationships/user_relationship_blocks/user_relationship_blocks.module).
Warning : include_once() [function.include]: Failed opening 'sites/all/modules/user_relationships/user_relationships_ui/user_relationships_ui.admin_actions.inc' for inclusion (include_path='.:/usr/local/php5/lib/php') dans user_relationship_blocks_block_configure() (ligne 132 dans /home/sw3b/www/www/sites/all/modules/user_relationships/user_relationship_blocks/user_relationship_blocks.module).

farhadhf’s picture

I have this problem too,
user relations 7.x-1.0-alpha2
PHP 5.3.6 with Suhosin-Patch (cli) (built: Jun 1 2011 11:57:13)

Ingmar’s picture

exactly the same over here

Berdir’s picture

FileSize
6.12 KB

Updated the patch, please test if everything works now.

BeaPower’s picture

sub

Berdir’s picture

Status: Needs review » Fixed

Commited and pushed to 7.x-1.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.