Fatal error: Unsupported operand types in content_profile.module on line 80
mrfelton - September 17, 2009 - 10:07
| Project: | Content Profile |
| Version: | 6.x-1.0-beta4 |
| Component: | Base module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Getting the error "Fatal error: Unsupported operand types in content_profile.module on line 80".
function content_profile_menu_alter(&$items) {
foreach (content_profile_get_types('names', 'edit_tab', 'sub') as $type => $type_name) {
$item = &$items['user/%user_category/edit/'. $type];
$item = array(
'page callback' => 'content_profile_page_edit',
'page arguments' => array($type, 1),
'access callback' => 'content_profile_page_access',
'access arguments' => array($type, 1),
'file' => 'node.pages.inc',
'file path' => drupal_get_path('module', 'node'),
) + $item; // <- line 80 here
}
}Are you sure that $item is an array?

#1
Just got this error during database update of other modules. Could it be some interference?
Updated modules were:
#2
confirming... same issue here.
Only module we have update in common is: Nodewords [nodewords-6.x-1.3-beta4]
#3
Same problem... my only updated module was:
XML sitemap [xmlsitemap-6.x-1.1]
I used drush to update, if that makes any difference.
Everything worked fine when I disabled content_profile and content_profile_registration, updated xmlsitemap, and then re-enabled content_profile and content_profile_registration.