I am getting this error on two different installs (one existing site and one new install) both using the latest dev versions of Activity Log, Facebook Status, FBSMP, etc. The only different between the two installs is one if using User Relationships and the other is using Flag Friend.

The error occurs upon regeneration of the activity log. Facebook Status works as designed however visibility settings related to status updates seem to be ignored.

Warning: call_user_func(domain_load) [function.call-user-func]: First argument is expected to be a valid callback in facebook_status_context->load_recipient() (line 43 of /var/www/*domain*/www/public/sites/all/modules/facebook_status/includes/utility/facebook_status.contexts.inc).

The intended usage is for only friends can see posts from friends. For testing the /activities native view from Activity Log is being used for wall display with Facebook_Status block.
Rule: Log activity when a user sends a status message
Visibility Settings:

ENTITIES IN WHOSE STREAM ACTIVITY RECORDS GENERATED FROM THIS TEMPLATE SHOULD APPEAR: *
Acting user
The acting user's friend relationships (On UR install and related flag setting on 2nd install using BogdanN's FlagFriend patch)

THE USERS WHO WILL BE ABLE TO SEE THIS MESSAGE: *
Acting user
The acting user's friend relationships (On UR install and related flag setting on 2nd install using BogdanN's FlagFriend patch)

- System cache cleared
- Activity Log "Clear all message caches" executed (have also tested skipping this step)
- Activity Log Regenerate

Error occurs along with completed successful message. Existing posts nor new ones appear not to adhere to rules visibility settings. I suspect that an argument is not being passed.

(The error is related to Facebook Status but with the error occurring upon the regeneration of Activity Log this seems like the right place for it.)

Thanks!
Kevin

Comments

icecreamyou’s picture

Status: Active » Fixed

So there actually is a bug -- which I've fixed locally, and I'll commit the fix later tonight along with some other things -- with regards to loading the Domain context. However, you probably shouldn't be using the Domain context. Check to make sure that the User profiles context has a higher weight than the Domain context at admin/settings/facebook_status/contexts.

icecreamyou’s picture

(Committed fix to dev)

InTheLyonsDen’s picture

Thanks Ice. At least I know this is not the source of my insanity.

I pulled the latest dev release.

I'm not sure why the order of contexts were moved around. They are now set to: User/Nodes/OG/Taxonomy/General. Does that sound logical?

On admin/settings/activity_log/config I'm now getting only this error message and not menu items.:

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'activity_log_admin' was given in drupal_retrieve_form() (line 377 of /var/www/thenursecompany.com/www/public/includes/form.inc).

Thanks,
Kevin

InTheLyonsDen’s picture

Status: Fixed » Needs review
icecreamyou’s picture

Status: Needs review » Postponed (maintainer needs more info)

I'm not sure why the order of contexts were moved around. They are now set to: User/Nodes/OG/Taxonomy/General. Does that sound logical?

The "User" and "General" contexts always apply by default. So if you're not using the Taxonomy context then the usual order would be OG/Nodes/User/Taxonomy/General.

On admin/settings/activity_log/config I'm now getting only this error message and not menu items.:

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'activity_log_admin' was given in drupal_retrieve_form() (line 377 of /var/www/thenursecompany.com/www/public/includes/form.inc).

I can't reproduce that... maybe refresh your menu cache?

icecreamyou’s picture

Still having this problem?

icecreamyou’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)