I'm getting a Error: Call to a member function getFileUri() on null in Drupal\linkit\Plugin\Linkit\Substitution\Media->getUrl() (line 82 of /var/www/tiu/htdocs/modules/contrib/linkit/src/Plugin/Linkit/Substitution/Media.php) #0 error. I assume because the file has been removed but the reference to the file is still there.

Attached patch checks for this.

CommentFileSizeAuthor
#2 2942438-check-file-existance.patch906 bytesJohnny vd Laar

Comments

Johnny vd Laar created an issue. See original summary.

Johnny vd Laar’s picture

Status: Active » Needs review
StatusFileSize
new906 bytes

Status: Needs review » Needs work

The last submitted patch, 2: 2942438-check-file-existance.patch, failed testing. View results

anon’s picture

I assume because the file has been removed but the reference to the file is still there.

Then I see this as a "work as designed". Linkit shouldn't cover up others mistakes.

anon’s picture

Status: Needs work » Closed (works as designed)