Problem/Motivation

An error occurs when this module is used in combination with Display Suite's core fields (like node Post Date). It's down to the fact that these DS fields are not fully conformant to Field API. For a detailed analysis see the related issues in Display Suite.

Proposed resolution

  1. #1875634: Remove Field Formatter Class settings in uninstall
    Cleaning up this module's settings on uninstall would at least allow recovery from the situation described in Comment #5.
  2. The rest is best fixed in Display Suite project. Track the related issues for Display Suite.
    Potentially affects all modules using Field Formatter Settings API in combination with Display Suite.
  3. If no satisfactory resolution in Display Suite, consider adding some workaround code for DS core fields.
    For a possible approach, see the workaround (hacky) in Field Formatter Conditions

#1875634: Remove Field Formatter Class settings in uninstall
#1875750: Allow DS core fields to have alterable settings, include them in field_info_instance_settings()
#1900014: Field formatter settings summary alter implementations choke on DS Pseudo fields

Original report by marcorai

I install your module and it works for my objectives, but i had these error messages:

Notice: Undefined index: title in field_formatter_class_formatter_info() (linea 68 di /sites/all/modules/field_formatter_class/field_formatter_class.module).
Notice: Undefined index: post_date in field_formatter_class_formatter_info() (linea 68 di /sites/all/modules/field_formatter_class/field_formatter_class.module).

How can I fix it?

CommentFileSizeAuthor
#13 My_field formatter class issue.png73 KBGyver06
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andrewmacpherson’s picture

Thanks for the error report Marco. Sorry I haven't looked at it in detail yet.

fraweg’s picture

Hello,

I have the same issue.. Have anyone solve this ?

Best regards
Frank

thoka’s picture

Same issue here. Has anybody got a grip on the issue?

marcorai’s picture

Just some more details.

By the module, I assigned a custom class at the title field and i have the error.
So i have removed that class, ma the error is still there.

Mark LaCroix’s picture

I have the same problem.

The problem first started when I moved a field which had a custom class on it into a Display Suite block region. The sad irony is that I only moved that particular field into that region as a quick test of DS's "Region to Block" functionality. I never meant to keep it there... :'-(

Worse even is the fact that I can't uninstall the module. I can disable it, but when I try to uninstall it, while it is removed from the uninstall list, it remains in the module list. If I reactivate it, my previous data returns (along with the error), so whatever borked it up hasn't been cleared from the database. My next step is to manually remove the module from both the server and the database, I suppose, but I'd rather not have to do that.

Interestingly, whatever the problem is, it hasn't impacted functionality, and it only shows up the second time a browser loads a page on the site. Clearing the browser's cache give you one error free page load. :-)

I'm sure there's a simple solution, but it's driving me crazy right now. This is a great module, I can't wait to get it working again. Thank you for any help you can provide.

markhalliwell’s picture

This seems to be an issue only when core Display Suite fields are involved, referencing #1875750: Allow DS core fields to have alterable settings, include them in field_info_instance_settings().

Gyver06’s picture

I am having the same behaviour. Any patch ?

fraweg’s picture

Hi,

no for me there is no solution to solve this.. :-(

Best regards
Frank

Gyver06’s picture

OK, Thanks for the info.
I have de installed Field Formatter Class. Maybe someone find a solution in a near future.

Best regards
Eric.

wooody’s picture

Any help to fix the problem... I made views as block and I use the block with display suite.. and the problem from that field..

wooody’s picture

I fixed it.. I just change the field Entities to Taxonomy Term and its work fine now..
BR,

wooody’s picture

a lot of problems... I think better to use CSS Class with Display Suite
CSS classes for regions
CSS classes for fields

Gyver06’s picture

If that can help to fix the issue, here enclosed is a screen capture with more infos.
Please, any help is welcome.

andrewmacpherson’s picture

Title: Undefined index » Better integration with Display Suite
Priority: Normal » Major
Status: Active » Postponed

I've updated the issue summary to reference the Display Suite problems. Thanks to everyone who has provided additional information about this problem.

I'll also add a note on the main project page to highlight this issue.

Marking as postponed, because the solution is being explored in Display Suite project.

andrewmacpherson’s picture

Title: Better integration with Display Suite » Compatibility with Display Suite
andrewmacpherson’s picture

#1875634: Remove Field Formatter Class settings in uninstall - Fixed in 7..x-1.x-dev

The settings for this module are now removed when uninstalling the module.

andrewmacpherson’s picture

Issue summary: View changes

Major update to issue summary, using issue template.

mansspams’s picture

Please see #1992948: Make DS leaner by outsourcing field formatting features as it could be related and could serve as higher level initiative for good changes.

fraweg’s picture

Hello,

does the #16 patch also get in the stable version?

Best regards
Frank

andrewmacpherson’s picture

@fraweg: Hi Frank. Yes, kind of. There isn't actually a patch on comment #16. It's a link to an improvement which partially helps with this problem. It was included in the 7.x-1.1 stable release.

Chris Matthews’s picture

Status: Postponed » Closed (outdated)