Notice: Undefined index: summary in _text_sanitize() (line 319 of /home/domain/public_html/modules/field/modules/text/text.module).

saving the form on without changing anything
admin/structure/types/manage/CONTENTTYPE/display/full

solves the problem

just mentioning it here so it might be helpful to others

Comments

giorgosk’s picture

Status: Fixed » Active

it turns out that solution presented did not help
it was just a coincedence that the message dissapeared

giorgosk’s picture

doing a google search reveals that this might be a commerce kickstart related problem
for example do a search "Notice: Undefined index: summary in _text_sanitize() (line 319"
or I have feeling it might be related to an omega subtheme issue

giorgosk’s picture

bclinton’s picture

I am also using commerce and had this problem.

In my case it was from the metatag module. This module defaults to putting [node:summary] in the meta tags Description field, and if your content or content type does not have a summary field, you get this error. To fix it, remove [node:summary] from the description field, or put a real description in that field.

If you aren't using the metatag module, is there some other place you are using the token [node:summary] on content that does not have a summary field?

ailgm’s picture

Great. I believe #4 solved it for me. Thank you.

marktheshark’s picture

Also experiencing this on CK 2.6, probably due to the metatag module.

Shouldn't this issue be reassigned to that module?

maxchock’s picture

Hi,

I'm suffering from the same problem, but as #4 mention, how we can remove [node:summary] from the description field ?

Thanks.

As If’s picture

This error message can be caused in numerous ways.

In my case it was being triggered within a block view. I had a text field that I deleted and replaced with an integer field of the same name. However, I also had a View that did not know I had done this :-) So the View was still trying to process it like a text field.

The problem was solved by opening that View and re-saving the field in question with proper values.

Basically, if you get this error message, look at any field or token that you (or a module) has recently changed. Then examine every place where that field or token appears (for instance, inside a View), and resave the field/token with your selected values.

darkpoision’s picture

Version: 7.21 » 7.22

I also had the same problem... but in my case I was rearrenging the content type structure/layout using panelizer. So when I had tried to use email field in my content type it had show me the error.. but but going into the structure -> content type -> mycontent -> (here instead of changing the manage display setting) panelizer tab -> full page override -> content. Here I had changed the setting for my email field. So the main problem was if we change the manage display setting which was overrided by panelizer so it throws the null value....

mayur.pimple’s picture

I had also same issue, I have disable meta tags modules. Now error is resolve.
Great. I believe #4 solved it for me. Thank you.

maxchock’s picture

you are avoiding the error, not solving. Meta Tags are important for SEO, unless SEO is not important to you..

JAScarb’s picture

Thank you #4, that sorted it for me too

jhodgdon’s picture

Category: Support request » Bug report
Issue summary: View changes
Status: Active » Closed (works as designed)

It looks like this is not a Drupal Core issue.