Notice: Trying to get property of non-object in AcademicPuma\CiteProc\Date->render() (line 109...

CommentFileSizeAuthor
#2 3014068-2.patch532 bytestostinni

Comments

antongp created an issue. See original summary.

tostinni’s picture

Status: Active » Needs review
StatusFileSize
new532 bytes

I found a way to overcome this bug by checking if the variable is an object and made a patch for it.
So this patch isn't meant to be apply on bibcite but if your site is configured with composer (and you're using cweagans/composer-patches) then you can easily patch academicpuma/citeproc-php.

For this you can modify your composer.json and add those lines

"patches": {
    "academicpuma/citeproc-php" : {
        "[3014068-2] Fix notice in AcademicPuma/CiteProc": "https://www.drupal.org/files/issues/2020-01-17/3014068-2.patch"
    }
},

  • adci_contributor committed ec037b5 on 8.x-1.x
    Issue #3014068 by antongp, tostinni: Notice in AcademicPuma\CiteProc\...

antongp’s picture

Status: Needs review » Fixed

Hi @tostinni.

Thank you for your efforts and reminding about the issue :) It should be fixed in the module (latest dev) now, so, patch should not be needed anymore.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.