PHP Fatal error: Unsupported operand types in /opt/lampstack-5-3-8-2/apps/drupal/htdocs/sites/all/modules/field_injector/field_injector.module on line 28

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid’s picture

Project: Field injector » Services Views
Version: 7.x-1.0-beta2 » 7.x-1.x-dev
Priority: Major » Normal

The problem here is that because services_views_field_formatter_info_alter() is an *alter* hook, that adding new formatters in that function needs to have all of its default properties assigned, which includes 'settings' => array().

See _field_info_collate_types() and the section with '// Populate formatter types.'

ygerasimov’s picture

Status: Active » Needs review
FileSize
511 bytes

Dave do you mean patch like attached?

Sirish, can you test it please?

ygerasimov’s picture

Status: Needs review » Fixed

Patch has been committed a while ago.

gumdal’s picture

I am facing this error, but at a different location. I have just installed Services Views module today, which means that it contains the patch submitted by ygerasimov on November 18, 2012.

This is what I get:
Fatal error: Unsupported operand types in /home/..../<drupal_folder>/sites/all/modules/services/auth/services_oauth/services_oauth.inc on line 25

Thanks for any suggestions / fixes.

ygerasimov’s picture

I have created separate issue for this bug report. #1844678: Services Views and Oauth. Fatal error..

I have never tried oauth module with service views, so it needs some investigation. But definitively as separate issue.

gumdal’s picture

Thank you, and also thanQ for this great module :)

Status: Fixed » Closed (fixed)

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