Contextual Filters (inside View's fields) not working after PHP upgrade

Created on 9 June 2023, over 1 year ago
Updated 12 June 2023, over 1 year ago

Problem/Motivation

So we have recently upgraded the PHP version into PHP 8.0 (our Drupal version is Drupal 7.67). We have these 2 Views (Let's call it View 1 and View 2) and inside View 1's Fields list, we added another global View (Let's call it View 1a).

We noticed that the Contextual Filters value that we passed from View 1a into View 2 are somehow not passed (from View 1a) or not received from the other View (View 2). We know this because when we create a page to show just View 2 and pass a hard-coded Arguments parameter into it, the View data are shown properly. While if it is from the View 1a's preview, the data is empty.

The worse thing here is that there is no error message shown (even when the debugging mode is activated) and no useful info from the logs as well.

Wondering if there is anyone who experienced similar issue or knows what to do/how to solve this.

Regards,

Frans

πŸ› Bug report
Status

Postponed: needs info

Version

3.0

Component
ViewsΒ  β†’

Last updated about 10 hours ago

Created by

πŸ‡ΈπŸ‡¬Singapore snarf5

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

Comments & Activities

  • Issue created by @snarf5
  • πŸ‡ΈπŸ‡°Slovakia poker10

    Thanks for reporting this. Views are not part of the Drupal 7 core, so this seems to belong to the Views issue queue.

    Just to note, Drupal 7.67 is not compatible with PHP 8. So you would need to apply updates to both Drupal core and other contrib modules, to fix various PHP 8 issues. Then it should probably start working again.

  • πŸ‡ΈπŸ‡¬Singapore snarf5

    Hi Hi,

    Oh so sorry to create this issue in a wrong page. I will create in Views queue.

    But yes, we have this request to make Drupal 7.67 to be compatible with PHP 8.0 (at least for our own-created modules).

    Thanks again,

    Frans

  • Status changed to Postponed: needs info over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    (I closed the duplicate issue as this one had already been moved to the correct location)

    There is no worthwhile way to make Drupal core 7.67 compatible with PHP 8.0, what you need to do is update your codebase with the latest releases of Drupal core and all contrib modules, then it will probably work.

    Please do that and then let us know if there are still problems with Views.

  • πŸ‡ΈπŸ‡¬Singapore snarf5

    Hi Damien,

    Thanks for the reply.

    I will take a look at how we are going to solve this issue with my team members.

    Thanks for the advice. :-)

Production build 0.71.5 2024