Deprecated function: Using ${var} in strings is deprecated, use {$var} instead in require_once()

Created on 11 October 2023, over 1 year ago
Updated 20 May 2024, 12 months ago

Deprecated function: Using ${var} in strings is deprecated, use {$var}

Hello everyone,

in drupal 10.1.5, after installing Adsense, when I go to the Adsense settings, I get the following error message:
Deprecated function: Using ${var} in strings is deprecated, use {$var} instead in require_once() (line 53 of core/includes/module.inc).
require_once('/Applications/MAMP/htdocs/traincorse_nikadev/web/core/includes/bootstrap.inc') (Line: 53)
module_load_include('inc', 'adsense', 'help/adsense.help') (Line: 36)
Drupal\adsense\Form\AdsenseMainSettings->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm('adsense_main_settings', Object) (Line: 283)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 592)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 182)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
This problem only appears with AdSense. do you know a solution?

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇷France pedrocorse

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024