On a clean Drupal install I get this:

Notice: Undefined index: doc in CalaisJsonProcessor->parse_json() (line 43 of /opt/cms/prod/sites/all/modules/opencalais/includes/CalaisJsonProcessor.inc).
Notice: Trying to get property of non-object in CalaisJsonProcessor->parse_json() (line 43 of /opt/cms/prod/sites/all/modules/opencalais/includes/CalaisJsonProcessor.inc).
Notice: Trying to get property of non-object in CalaisJsonProcessor->parse_json() (line 43 of /opt/cms/prod/sites/all/modules/opencalais/includes/CalaisJsonProcessor.inc).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

azin created an issue. See original summary.

ElusiveMind’s picture

Bad assumption on my part thinking that value would be in every document. Can you please try this patch and report back?

ElusiveMind’s picture

Actually - this is a better patch

ElusiveMind’s picture

Assigned: Unassigned » ElusiveMind
Status: Active » Needs review
azin’s picture

The notices are gone, but no tag suggestions. I tried with Cateory - City, Threshold 0, and the node body has a list of some twenty major cities

ElusiveMind’s picture

Can you message me privately the contents of the node you are using so I can do some testing?

ElusiveMind’s picture

It sounds like you may be getting nothing back from OPenCalais. Have you checked your key? Are you getting tagging back in other areas?

  • ElusiveMind committed 2db8fe5 on 7.x-1.x
    Issue #2735269 by ElusiveMind: Notice: Undefined index: doc in...
azin’s picture

It works fine on standard Drupal content types (Page and Article) after I reinstalled the module. Thanks.

However, it does not work with a content type created by Drupal's Biblio module, older versions of your module used to work fine on it. I tried both biblio's forms, as well as a custom field (Longtext with summary).

ElusiveMind’s picture

That is a separate issue. Right not it only works with the "BODY" field. A change to include all text / text area fields is coming in v1.2

ElusiveMind’s picture

Status: Needs review » Reviewed & tested by the community
ElusiveMind’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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