Handle saving a context with a page template suggestion and no suggestion

Created on 31 May 2024, 6 months ago
Updated 18 September 2024, 2 months ago

Problem/Motivation

After creating a Context with a "Page template suggestions" reaction, I decided to check my site to get some base template names and got a lot of errors popping up. This is due to changes to PHP 8.2 not tolerating unset values.

Steps to reproduce

Create a context with a "Page template suggestions" reaction and start navigating your site before adding anything to that field. The site should be running on PHP 8.2

Proposed resolution

Add a default empty string to the execute method return value in the PageTemplateSuggestions class.

🐛 Bug report
Status

Needs review

Version

5.0

Component

Code

Created by

🇦🇺Australia jaydee1818 Melbourne

Live updates comments and jobs are added and updated live.
  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024