Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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).
Comment | File | Size | Author |
---|---|---|---|
#3 | undefined_index_doc_in_calaisjsonprocessor.2735269.patch | 958 bytes | ElusiveMind |
#2 | undefined_index_doc_in_calaisjsonprocessor.2735269.patch | 623 bytes | ElusiveMind |
Comments
Comment #2
ElusiveMind CreditAttribution: ElusiveMind commentedBad assumption on my part thinking that value would be in every document. Can you please try this patch and report back?
Comment #3
ElusiveMind CreditAttribution: ElusiveMind commentedActually - this is a better patch
Comment #4
ElusiveMind CreditAttribution: ElusiveMind commentedComment #5
azin CreditAttribution: azin commentedThe 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
Comment #6
ElusiveMind CreditAttribution: ElusiveMind commentedCan you message me privately the contents of the node you are using so I can do some testing?
Comment #7
ElusiveMind CreditAttribution: ElusiveMind commentedIt sounds like you may be getting nothing back from OPenCalais. Have you checked your key? Are you getting tagging back in other areas?
Comment #9
azin CreditAttribution: azin commentedIt 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).
Comment #10
ElusiveMind CreditAttribution: ElusiveMind commentedThat 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
Comment #11
ElusiveMind CreditAttribution: ElusiveMind commentedComment #12
ElusiveMind CreditAttribution: ElusiveMind commented