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.
The following error occurs on certain content typesin the apache log files when annotation_image is enabled and comments option is changed from 'disabled' to 'read only' or read/write' on node:
PHP Fatal error: Cannot access empty property in [..]sites/all/modules/annotation/annotation_image/annotation_image.module on line 122.
If annotation_image module is disabled, error does not recur.
Issue only occurs on certain custom content types (attached). Error does not occur on content type 'caselaw' but does occure on content type 'numbered_act'.
Comment | File | Size | Author |
---|---|---|---|
#3 | annotation-empty_property_error-1575826-3.patch | 2.22 KB | Jaesin |
#2 | annotation-empty_property_error-1575826-2.patch | 3.34 KB | Jaesin |
numbered_act.txt | 13.61 KB | k3rr78nd | |
caselaw.txt | 14.96 KB | k3rr78nd |
Comments
Comment #1
Jaesin CreditAttribution: Jaesin commentedI've run across the same issue. Looks like some error checking should be done here.
Comment #2
Jaesin CreditAttribution: Jaesin commentedPatched it up with some error checking.
Comment #3
Jaesin CreditAttribution: Jaesin commentedI made that last patch from the wrong folder. Try this one.
Applies to 6.x-1.x commit hash: 9fc1fb4.
Comment #4
BrockBoland CreditAttribution: BrockBoland commentedFixed version and status.