- Issue created by @Prodigy
- πΊπΈUnited States drupal-baby
I am also having the same issue, were you able to find any information on this?
- πΊπΈUnited States vetchneons
Same issue here. I am looking into information on it.
- πͺπΈSpain marcoscano Barcelona, Spain
and we moved all files and placed in site/oursite/files/{file_name]
Are the files managed in Drupal or these are just links pointing to files in disk that happen to be at these locations? If the files are not file entities in Drupal (ie in the
file_managed
table), then this module won't track them, by design. - πΊπΈUnited States vetchneons
I actually dug into this today and it turns out, in our environment, that the relative paths were tracking, but the absolute links were not.
return $this->pathValidator()->getUrlIfValidWithoutAccessCheck($url);
in the processUrl inside EntityUsageTrackBase.php was always returning false for file that were using absolute links in ckeditor. The same files using relative paths are getting counted correctly.
- πΊπΈUnited States vetchneons
Are the files managed in Drupal or these are just links pointing to files in disk that happen to be at these locations? If the files are not file entities in Drupal (ie in the file_managed table), then this module won't track them, by design.
That makes sense. I can confirm that this was the case for us.
sites/default/files/<filepath>
was tracking correctly, whilesites/files/<filepath>
was not. - πΊπΈUnited States Prodigy Atlanta, Georgia
Appreciate the follow up @vetchneons
- πΊπΈUnited States pbabin
Asking here but think it is unrelated. We are having this same issue where both hardcoded relative and absolute paths to files are not registered in entity_usage. I can confirm that our file structure is /sites/default/files/media, at least locally where I am doing all of my testing at the moment. I've tried multiple variations of source/target to rule out these; however, anything that is hardcode is missed.
The one factor, which I believe makes this semi-unrelated, is that I am trying to track entity usage in paragraphs with text editors as we are using the layout_paragraphs module.
Does this then point us to Track composite (e.g. paragraph) entities directly and only as their host β ? Which suggests we wait till the next major release?
Thank you in advance!