Issue possibly related to #1976664: Notice: Undefined index: status in acquia_agent_update_status_alter().

Using the latest version of the connector with Drupal 7.22, I am receiving the following error:

Warning: Illegal string offset 'view' in acquia_agent_toolbar_add_links() (line 103 of sites/all/modules/acquia_connector/acquia_agent/acquia_agent.module).

Even after refreshing the subscription, it appears that the "project" is returning an ID as opposed to an associative array. I suspect that the return value of the XMLRPC call changed.

Comments

coltrane’s picture

Status: Active » Needs review
StatusFileSize
new908 bytes
cpliakas’s picture

Status: Needs review » Reviewed & tested by the community

Works for me as long as we are no longer expecting $subscription['product'] to be an associative array of info.

coltrane’s picture

Status: Reviewed & tested by the community » Needs work

No you're right, the server won't be sending the right data anymore so the title should just go away.

coltrane’s picture

Status: Needs work » Needs review
StatusFileSize
new791 bytes
new770 bytes
todd zebert’s picture

(EDIT) Just realized this was fixed in -2.11, http://drupal.org/node/1996850

I know this is for 7.x but with 6.x-2.10 and PHP 5.4 I'm seeing the same error, and line of code:
Illegal string offset 'view' in .../acquia_connector/acquia_agent/acquia_agent.module on line 427.

Which is:
$item['localized_options']['attributes']['title'] = $subscription['product']['view'];

There's only one reference to $subscription['product']['view'] in function acquia_agent_translated_menu_link_alter().

I'm not sure I follow this thread entirely, but judging from the patch, this line can just be removed ... as it's no longer needed anyway?

Thanks.

Status: Fixed » Closed (fixed)

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