PoeticMediaLab / Lacuna

Lacuna: Digital Annotation for Teaching and Learning
http://www.lacunastories.com
GNU General Public License v2.0
36 stars 20 forks source link

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

Open blaak-18 opened 3 years ago

blaak-18 commented 3 years ago

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

mwidner commented 3 years ago

I wouldn't follow the instructions on the Inifinite Ulysses site. Those were for manual installation of those modules. The Lacuna software should install and configure all the modules automatically for you, including all of the annotation modules.

We have not tested using the Lacuna-packaged versions of those modules with a more standard version of Drupal, so it's not surprising that it might not work. There's a fair amount of customization.

I would try a clean install following these directions:

https://github.com/PoeticMediaLab/Lacuna/blob/master/README.md#how-to-install-lacuna