Undefined variable $rcontexts in ctools_context_get_context_from_relationships()

Created on 8 March 2023, over 1 year ago
Updated 9 March 2023, over 1 year ago

Problem/Motivation

Upgrading CTools threw the following error:
Warning: Undefined variable $rcontexts in ctools_context_get_context_from_relationships() (line 1442 of ctools/includes/context.inc).

Steps to reproduce

I cannot reproduce this in a vanilla install, so it seems to rely on a number of factors in our configuration.

Proposed resolution

Define the variable outside the if condition so it is defined for the call to ctools_context_get_context_from_relationship()

Remaining tasks

Merge Request pending.

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada darkodev

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

Comments & Activities

Production build 0.71.5 2024