PHP 8.2 Deprecation messages when installing WxT 5.0.0

Created on 13 October 2023, about 1 year ago
Updated 21 October 2023, about 1 year ago

Problem/Motivation

When installing WxT 5.0.0 on a docker container with PHP 8.2 installed, I get this message:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /core/install.php?rewrite=ok&profile=wxt&langcode=en&id=2&op=do_nojs&op=do
StatusText: OK
ResponseText: 
Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/html/modules/contrib/views_bootstrap/src/Plugin/views/style/ViewsBootstrapGrid.php on line 208
Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/html/modules/contrib/views_bootstrap/src/Plugin/views/style/ViewsBootstrapGrid.php on line 213
Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/html/modules/contrib/views_bootstrap/src/Plugin/views/style/ViewsBootstrapGrid.php on line 213
Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/html/modules/contrib/views_bootstrap/src/Plugin/views/style/ViewsBootstrapGrid.php on line 215
Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/html/modules/contrib/views_bootstrap/src/Plugin/views/style/ViewsBootstrapGrid.php on line 216
Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/html/modules/contrib/views_bootstrap/src/Plugin/views/style/ViewsBootstrapGrid.php on line 217
Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/html/modules/contrib/views_bootstrap/src/Plugin/views/style/ViewsBootstrapGrid.php on line 218
Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/html/modules/contrib/views_bootstrap/src/Plugin/views/style/ViewsBootstrapGrid.php on line 219
Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/html/modules/contrib/views_bootstrap/src/Plugin/views/style/ViewsBootstrapGrid.php on line 220

Steps to reproduce

Set up a new environment and use PHP 8.2, try to install WxT 5.0.0, and you'll get that error, you won't be able to complete the installation

Proposed resolution

This issue is triggered from a contrib module, views_bootstrap, I am not sure if they have a patch for that already, if not, we have to create a patch to fix that issue.
Since PHP 8.2, PHP emits a deprecation notice on any string pattern that has the dollar sign ($) placed at the outside of the curly braces, like this:

"Hello ${name}"

This needs to be changed to

"Hello {$name}"

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

🇨🇦Canada optasy

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

Comments & Activities

Production build 0.71.5 2024