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
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

milos.kroulik - October 29, 2009 - 13:55

Just got this error during database update of other modules. Could it be some interference?

Updated modules were:

  • Embedded Media Field [emfield-6.x-1.13]
  • File Aliases [file_aliases-6.x-1.0]
  • Search Lucene API [luceneapi-6.x-2.0-beta3]
  • Nodewords [nodewords-6.x-1.3-beta4]
  • Phone (CCK) [phone-6.x-2.10]

#2

paoloteo - November 6, 2009 - 09:58

confirming... same issue here.
Only module we have update in common is: Nodewords [nodewords-6.x-1.3-beta4]

#3

jennycita - November 17, 2009 - 06:27

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.

 
 

Drupal is a registered trademark of Dries Buytaert.