warning: First parameter must either be an object or the name of an existing class in /sites/all/modules/contrib/spaces/spaces_og/spaces_og.module on line 1120.

Comments

socialnicheguru’s picture

I placed a cck link field in my content type which is not a group only message. In fact it is not to be part of a group.

I put a default value into the link: View my profile with a value of url/[author-name]

[author-name] seems to be returned by token as a global type

Well, spaces does not recognize "global" as a type and thus the error

It is doing the same for tokens returned by a viewfield too.

Here is the backtrace I did:
spaces_og_token_values(global) called at [(null):0] #1 call_user_func_array(spaces_og_token_values, Array ([1] => global)) called at [drupal/includes/module.inc:471] #2 module_invoke_all(token_values, global) called at [/drupal/sites/all/modules/contrib/token/token.module:303] #3 token_get_values(node, , , Array ()) called at [/drupal/sites/all/modules/contrib/token/token.module:196] #4 token_replace(myAccount/[author-uid], node, ) called at [/Users/aekanem/Documents/aoweb/socialnicheguru/sites/all/modules/contrib/link/link.module:308] #5 _link_sanitize(Array ([url] => myAccount/[author-uid],[title] => View my profile,[attributes] =

this is interesting and without help from the Drupal commuity I would have never figured any of it out.

socialnicheguru’s picture

any one else experience this?

jmiccolis’s picture

Status: Active » Closed (won't fix)

Setting this to won't fix - as we're not maintaining the 2.x series anymore. I'd encourage you to take a look at spaces 3.x