I'm having the issue generating the indexing for comments with Search API.
While configuring, I used the datasource
comments and added following fields for indexing.
comment_body, cid, comment_type, created, entity_type.
and this is the error I get.
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /batch?id=8926&op=do_nojs&op=do StatusText: parsererror ResponseText: Error: Call to a member function toArray() on null in rdf_comment_storage_load() (line 239 of /home/xxxxxxx/public_html/core/modules/rdf/rdf.module).
While further investigation, I found that the line # 239 has the following code.
$comment->rdf_data['date'] = rdf_rdfa_attributes($created_mapping, $comment->get('created')->first()->toArray());
$comment->get('created') is the object of type
FieldItemList which has the empty list that we can see with
I dont know if I'm doing something wrong with configuration (prety much this is the case) or there is the issue with code, as I'm new to this CMS. I realy appreciate your help in this regard.
Thanks in advance.