Skip to content

Annotations only store as: {"2":{"nid":"2","vid":"2","type":"annotation"} #245

@blaak-18

Description

@blaak-18

I'm trying to use the Lacuna 1.0 Annotator and Annotation modules and I have everything configured on Drupal according to these (https://github.com/amandavisconti/infinite-ulysses-dissertation/blob/master/Technical%20Instructions/DrupalAnnotationSetUp.md) instructions. The Annotator module works just fine, but the Annotations, themselves, disappear upon reloading the page. When I check /annotations/:id, there is a new entry for the new Annotation but it is only saving the nid, vid, and type rather than the rest of the Annotation.

While not consistently reproduceable, I also sometimes get this error on the Annotator config screen when I toggle the Store plugin on and off:

otice: Trying to get property of non-object in annotation_api_entity_prepare() (line 407 of \sites\all\modules\annotation\annotation.store.inc).
Warning: Attempt to assign property of non-object in annotation_api_entity_prepare() (line 407 of \sites\all\modules\annotation\annotation.store.inc).

This error covers nearly all of the annotation_api_entity_prepare($entity, $op) function in annotation.store.inc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions