PHP error on Host Entity Path

Created on 30 December 2014, about 10 years ago
Updated 26 November 2024, 3 months ago

When I used a field collection through a reference and try to use the Host Entity Path as a field, it gives a PHP error: "Call to a member function hostEntityId() on a non-object in .../views/field_collection_views_handler_field_host_entity_path.inc on line 32". This is because `$values->item_id` on line 29 is failing, because the relationship changes what gets included in $values.

I solved my own problem (I added the host entity as a separate reference), but this module should also make sure that it gets a valid item_id before attempting to load it as a field collection item.

πŸ› Bug report
Status

Closed: outdated

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jproctor

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.71.5 2024