- Status changed to Needs review
almost 2 years ago 7:07pm 17 January 2023 - Status changed to RTBC
almost 2 years ago 12:24am 18 January 2023 - 🇧🇪Belgium redseujac
Patch#3 solved the deprecated function warning in /admin/reports/dblog even with version 6.2.x-dev on Drupal 10.
- 🇦🇺Australia VladimirAus Brisbane, Australia
+1. Thank you. 🍻
Works on both 6.1 and 6.2.Before, the following error message
Deprecated function: Creation of dynamic property Drupal\webform\WebformTokenManager::$config is deprecated in Drupal\webform\WebformTokenManager->__construct() (line 108 of modules/contrib/webform/src/WebformTokenManager.php).
Message disapears after patch is applied.
-
jrockowitz →
authored 40b7e35f on 6.1.x
Issue #3334276 by jrockowitz: Deprecated Function Drupal\webform\...
-
jrockowitz →
authored 40b7e35f on 6.1.x
-
jrockowitz →
authored 40b7e35f on 6.x
Issue #3334276 by jrockowitz: Deprecated Function Drupal\webform\...
-
jrockowitz →
authored 40b7e35f on 6.x
- Status changed to Fixed
almost 2 years ago 5:55pm 3 February 2023 -
jrockowitz →
authored 40b7e35f on 6.2.x
Issue #3334276 by jrockowitz: Deprecated Function Drupal\webform\...
-
jrockowitz →
authored 40b7e35f on 6.2.x
- 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦
Excellent. With this change, PHP 8.2 test failures fell from 472 to 56. Many of the rest are also the same issue with different properties.
- 🇵🇰Pakistan masood ahmad
I am sorry @JROCKOWITZ, but the problem was once solved, but it has reappeared after some time. Although the patch is already there.
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
almost 2 years ago 9:34pm 13 March 2023 - 🇺🇸United States esch
I'm seeing this show up again in the 6.2.x-dev branch again.
- 🇮🇳India renganathan_t
I'm also seeing this show up again in the 6.2.x-dev branch again.
- 🇦🇺Australia mingsong 🇦🇺
Proposed solution by PHP 8.2 document.
https://www.php.net/manual/en/class.allowdynamicproperties.php
To those reporting this please post the precise error message. Thank you. 🙏
- 🇵🇱Poland bronismateusz
D10.0.3 PHP 8.2:
Deprecated function: Creation of dynamic property GuzzleHttp\Psr7\Request::$stats is deprecated in Drupal\webprofiler\Http\HttpClientMiddleware->Drupal\webprofiler\Http\{closure}() (line 57 of modules/contrib/webprofiler/src/Http/HttpClientMiddleware.php). Drupal\webprofiler\Http\HttpClientMiddleware->Drupal\webprofiler\Http\{closure}(Object) (Line: 136) GuzzleHttp\Handler\CurlFactory::invokeStats(Object) (Line: 106) GuzzleHttp\Handler\CurlFactory::finish(Object, Object, Object) (Line: 47) GuzzleHttp\Handler\CurlHandler->__invoke(Object, Array) (Line: 28) GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object, Array) (Line: 48) GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object, Array) (Line: 61) Drupal\webprofiler\Http\HttpClientMiddleware->Drupal\webprofiler\Http\{closure}(Object, Array) (Line: 20) Drupal\tracer\Http\HttpClientMiddleware->Drupal\tracer\Http\{closure}(Object, Array) (Line: 35) GuzzleHttp\PrepareBodyMiddleware->__invoke(Object, Array) (Line: 31) GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object, Array) (Line: 71) GuzzleHttp\RedirectMiddleware->__invoke(Object, Array) (Line: 61) GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object, Array) (Line: 75) GuzzleHttp\HandlerStack->__invoke(Object, Array) (Line: 331) GuzzleHttp\Client->transfer(Object, Array) (Line: 168) GuzzleHttp\Client->requestAsync('GET', Object, Array) (Line: 187) GuzzleHttp\Client->request('GET', 'http://localhost:12321', Array) (Line: 204) Drupal\vite\AssetLibrary->shouldUseDevServer() (Line: 94) Drupal\vite\Vite->rewriteLibrary(Object) (Line: 86) Drupal\vite\Vite->processLibraries(Array, 'hbh') (Line: 17) vite_library_info_alter(Array, 'hbh', NULL) (Line: 545) Drupal\Core\Extension\ModuleHandler->alter('library_info', Array, 'hbh') (Line: 366) Drupal\Core\Asset\LibraryDiscoveryParser->parseLibraryInfo('hbh', 'themes/custom/hbh') (Line: 118) Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension('hbh') (Line: 87) Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions('hbh') (Line: 66) Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss('hbh') (Line: 149) Drupal\Core\Cache\CacheCollector->get('hbh') (Line: 149) Drupal\Core\Asset\LibraryDiscoveryCollector->applyLibrariesExtend('core', 'drupal.dialog', Array) (Line: 111) Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions('core') (Line: 66) Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss('core') (Line: 149) Drupal\Core\Cache\CacheCollector->get('core') (Line: 44) Drupal\Core\Asset\LibraryDiscovery->getLibrariesByExtension('core') (Line: 58) Drupal\Core\Asset\LibraryDiscovery->getLibraryByName('core', 'jquery') (Line: 68) Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies(Array, Array) (Line: 70) Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies(Array) (Line: 41) Drupal\Core\Asset\LibraryDependencyResolver->getLibrariesWithDependencies(Array) (Line: 104) Drupal\Core\Asset\AssetResolver->getLibrariesToLoad(Object) (Line: 116) Drupal\Core\Asset\AssetResolver->getCssAssets(Object, ) (Line: 312) Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object, Array) (Line: 158) Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object) (Line: 94) Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor->processAttachments(Object) (Line: 45) Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object, 'kernel.response', Object) call_user_func(Array, Object, 'kernel.response', Object) (Line: 93) Drupal\tracer\EventDispatcher\TraceableEventDispatcher->dispatch(Object, 'kernel.response') (Line: 196) Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object, Object, 1) (Line: 184) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74) 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: 106) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 42) Drupal\tracer\StackMiddleware\TracesMiddleware->handle(Object, 1, 1) (Line: 34) Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware->handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 49) Drupal\whoops\StackMiddleware\WhoopsMiddleware->handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 681) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Thank you! But that is a different one from the undeclared property in this issue. Please open a new issue for it.
- 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦
#21 does not look like a Webform problem. It looks like
GuzzleHttp\Psr7\Request
needs to declare its$stats
property orDrupal\webprofiler\Http\HttpClientMiddleware
should not set the property. - 🇺🇦Ukraine ollie-db
Here is my version of the error
Deprecated function: Creation of dynamic property Drupal\webform\WebformTokenManager::$config is deprecated in Drupal\webform\WebformTokenManager->__construct() (line 108 of modules/contrib/webform/src/WebformTokenManager.php). Drupal\webform\WebformTokenManager->__construct(Object, Object, Object, Object, Object) (Line: 259) Drupal\Component\DependencyInjection\Container->createService(Array, 'webform.token_manager') (Line: 177) Drupal\Component\DependencyInjection\Container->get('webform.token_manager', 1) (Line: 434) Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237) Drupal\Component\DependencyInjection\Container->createService(Array, 'webform.exception_html_subscriber') (Line: 177) Drupal\Component\DependencyInjection\Container->get('webform.exception_html_subscriber') (Line: 105) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.exception') (Line: 221) Symfony\Component\HttpKernel\HttpKernel->handleThrowable(Object, Object, 1) (Line: 89) 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: 191) Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128) Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82) Drupal\page_cache\StackMiddleware\PageCache->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: 686) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- 🇷🇸Serbia krug
D: 10.0.0
PHP: 8.2.2
MariaDB 10.5.18
nginxHere is my version of the error.
Deprecated function: Creation of dynamic property Drupal\webform\WebformTokenManager::$config is deprecated in Drupal\webform\WebformTokenManager->__construct() (line 108 of /home/testtest/public_html/modules/contrib/webform/src/WebformTokenManager.php)
#0 /home/testtest/public_html/core/includes/bootstrap.inc(158): _drupal_error_handler_real()
#1 /home/testtest/public_html/modules/contrib/webform/src/WebformTokenManager.php(108): _drupal_error_handler()
#2 /home/testtest/public_html/core/lib/Drupal/Component/DependencyInjection/Container.php(263): Drupal\webform\WebformTokenManager->__construct()
#3 /home/testtest/public_html/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService()
#4 /home/testtest/public_html/modules/contrib/webform/src/Plugin/WebformHandlerBase.php(148): Drupal\Component\DependencyInjection\Container->get()
#5 /home/testtest/public_html/modules/contrib/webform/src/Plugin/WebformHandler/EmailWebformHandler.php(132): Drupal\webform\Plugin\WebformHandlerBase::create()
#6 /home/testtest/public_html/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(21): Drupal\webform\Plugin\WebformHandler\EmailWebformHandler::create()
#7 /home/testtest/public_html/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(76): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance()
#8 /home/testtest/public_html/core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php(81): Drupal\Component\Plugin\PluginManagerBase->createInstance()
#9 /home/testtest/public_html/modules/contrib/webform/src/Plugin/WebformHandlerPluginCollection.php(37): Drupal\Core\Plugin\DefaultLazyPluginCollection->initializePlugin()
#10 /home/testtest/public_html/core/lib/Drupal/Component/Plugin/LazyPluginCollection.php(80): Drupal\webform\Plugin\WebformHandlerPluginCollection->initializePlugin()
#11 /home/testtest/public_html/core/lib/Drupal/Component/Plugin/LazyPluginCollection.php(149): Drupal\Component\Plugin\LazyPluginCollection->get()
#12 /home/testtest/public_html/modules/contrib/webform/src/Entity/Webform.php(2599): Drupal\Component\Plugin\LazyPluginCollection->getIterator()
#13 /home/testtest/public_html/modules/contrib/webform/src/WebformEntityHandlersForm.php(67): Drupal\webform\Entity\Webform->getHandlers()
#14 /home/testtest/public_html/core/lib/Drupal/Core/Entity/EntityForm.php(106): Drupal\webform\WebformEntityHandlersForm->form()
#15 /home/testtest/public_html/modules/contrib/webform/src/Form/WebformEntityAjaxFormTrait.php(69): Drupal\Core\Entity\EntityForm->buildForm()
#16 [internal function]: Drupal\webform\WebformEntityHandlersForm->buildForm()
#17 /home/testtest/public_html/core/lib/Drupal/Core/Form/FormBuilder.php(534): call_user_func_array()
#18 /home/testtest/public_html/core/lib/Drupal/Core/Form/FormBuilder.php(281): Drupal\Core\Form\FormBuilder->retrieveForm()
#19 /home/testtest/public_html/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#20 [internal function]: Drupal\Core\Controller\FormController->getContentResult()
#21 /home/testtest/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#22 /home/testtest/public_html/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#23 /home/testtest/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#24 /home/testtest/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#25 /home/testtest/public_html/vendor/symfony/http-kernel/HttpKernel.php(163): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#26 /home/testtest/public_html/vendor/symfony/http-kernel/HttpKernel.php(74): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#27 /home/testtest/public_html/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#28 /home/testtest/public_html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#29 /home/testtest/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#30 /home/testtest/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#31 /home/testtest/public_html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#32 /home/testtest/public_html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#33 /home/testtest/public_html/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#34 /home/testtest/public_html/core/lib/Drupal/Core/DrupalKernel.php(675): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#35 /home/testtest/public_html/index.php(19): Drupal\Core\DrupalKernel->handle()
#36 {main}After the patch #3 more new bugs:
Deprecated function: Creation of dynamic property Drupal\webform\Form\WebformEntityBulkForm::$actions is deprecated in Drupal\webform\Form\WebformBulkFormBase->getActions() (line 178 of /home/testtest/public_html/modules/contrib/webform/src/Form/WebformBulkFormBase.php)
#0 /home/testtest/public_html/core/includes/bootstrap.inc(158): _drupal_error_handler_real()
#1 /home/testtest/public_html/modules/contrib/webform/src/Form/WebformBulkFormBase.php(178): _drupal_error_handler()
#2 /home/testtest/public_html/modules/contrib/webform/src/Form/WebformEntityBulkForm.php(19): Drupal\webform\Form\WebformBulkFormBase->getActions()
#3 /home/testtest/public_html/modules/contrib/webform/src/Form/WebformBulkFormBase.php(198): Drupal\webform\Form\WebformEntityBulkForm->getActions()
#4 /home/testtest/public_html/modules/contrib/webform/src/Form/WebformBulkFormBase.php(68): Drupal\webform\Form\WebformBulkFormBase->getBulkOptions()
#5 [internal function]: Drupal\webform\Form\WebformBulkFormBase->buildForm()
#6 /home/testtest/public_html/core/lib/Drupal/Core/Form/FormBuilder.php(534): call_user_func_array()
#7 /home/testtest/public_html/core/lib/Drupal/Core/Form/FormBuilder.php(281): Drupal\Core\Form\FormBuilder->retrieveForm()
#8 /home/testtest/public_html/core/lib/Drupal/Core/Form/FormBuilder.php(222): Drupal\Core\Form\FormBuilder->buildForm()
#9 /home/testtest/public_html/modules/contrib/webform/src/WebformEntityListBuilder.php(148): Drupal\Core\Form\FormBuilder->getForm()
#10 /home/testtest/public_html/core/lib/Drupal/Core/Entity/Controller/EntityListController.php(23): Drupal\webform\WebformEntityListBuilder->render()
#11 [internal function]: Drupal\Core\Entity\Controller\EntityListController->listing()
#12 /home/testtest/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#13 /home/testtest/public_html/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#14 /home/testtest/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#15 /home/testtest/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#16 /home/testtest/public_html/vendor/symfony/http-kernel/HttpKernel.php(163): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#17 /home/testtest/public_html/vendor/symfony/http-kernel/HttpKernel.php(74): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#18 /home/testtest/public_html/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#19 /home/testtest/public_html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#20 /home/testtest/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#21 /home/testtest/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#22 /home/testtest/public_html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#23 /home/testtest/public_html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#24 /home/testtest/public_html/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#25 /home/testtest/public_html/core/lib/Drupal/Core/DrupalKernel.php(675): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#26 /home/testtest/public_html/index.php(19): Drupal\Core\DrupalKernel->handle()
#27 {main}Deprecated function: Creation of dynamic property Drupal\webform\WebformEntityListBuilder::$userStorage is deprecated in Drupal\webform\WebformEntityListBuilder->initialize() (line 118 of /home/testtest/public_html/modules/contrib/webform/src/WebformEntityListBuilder.php)
....Deprecated function: Creation of dynamic property Drupal\webform\WebformEntityListBuilder::$submissionStorage is deprecated in Drupal\webform\WebformEntityListBuilder->initialize() (line 117 of /home/testtest/public_html/modules/contrib/webform/src/WebformEntityListBuilder.php)
.... - 🇫🇷France GPZ
The patch seems to be applied in version 6.1.5 but not in 6.2.x
Applying the patch in 6.2.2 works - 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦
The patch was reversed in 🐛 Deprecated function warning in WebformTokenManager Fixed . It should no longer be needed. If you are having a problem, please open a child ticket.
- 🇦🇷Argentina VITO
Hi @jrockowitz, thank you for all your work.
I'm still having the issue in Webform 6.2.2
I try to update to the dev version "drupal/webform": "6.2.x-dev@dev",but the issue still happening
Deprecated function: Creation of dynamic property Drupal\webform_views\Plugin\views\field\WebformSubmissionSubmittedToLabel::$entityManager is deprecated in Drupal\webform_views\Plugin\views\field\WebformSubmissionSubmittedToLabel->__construct() (line 39 of modules/contrib/webform_views/src/Plugin/views/field/WebformSubmissionSubmittedToLabel.php).
even applying the patch 3336649-2.patch
Please can you review this issue?
regards - 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦
That looks like an issue in
webform_views
module. 🐛 Deprecated function: Creation of dynamic property Drupal\webform_views\Plugin\views\field\WebformSubmissionSubmittedToLabel::$entitydeprecated in Drupal\webform_views\Plugin\views\field\WebformSubmissionSubmittedToLabel->__construct() (line 39 of Needs work