Deprecated function: Creation of dynamic property Patchwork\JSqueeze::$used_tree is deprecated in Patchwork\JSqueeze->renameVars()

Created on 14 August 2024, 4 months ago

Problem/Motivation

When i try to minify with JSqueeze i get this error

Deprecated function: Creation of dynamic property Patchwork\JSqueeze::$used_tree is deprecated in Patchwork\JSqueeze->renameVars() (line 899 of /var/www/html/web/modules/contrib/advagg/advagg_js_minify/jsqueeze.inc)
#0 /var/www/html/web/core/includes/bootstrap.inc(166): _drupal_error_handler_real(8192, 'Creation of dyn...', '/var/www/html/w...', 899)
#1 /var/www/html/web/modules/contrib/advagg/advagg_js_minify/jsqueeze.inc(899): _drupal_error_handler(8192, 'Creation of dyn...', '/var/www/html/w...', 899)
#2 /var/www/html/web/modules/contrib/advagg/advagg_js_minify/jsqueeze.inc(181): Patchwork\JSqueeze->renameVars(Array, 'else')
#3 /var/www/html/web/modules/contrib/advagg/advagg_js_minify/src/Asset/JsMinifier.php(306): Patchwork\JSqueeze->squeeze(';((Drupal,drupa...', true, true, false)
#4 [internal function]: Drupal\advagg_js_minify\Asset\JsMinifier->minifyJsqueeze('/**\n * @file\n *...', 'core/modules/bi...')
#5 /var/www/html/web/modules/contrib/advagg/advagg_js_minify/src/Asset/JsMinifier.php(68): call_user_func_array(Array, Array)
#6 /var/www/html/web/modules/contrib/advagg/advagg_js_minify/src/EventSubscriber/MinificationSubscriber.php(39): Drupal\advagg_js_minify\Asset\JsMinifier->optimize('/**\n * @file\n *...', Array, Array)
#7 [internal function]: Drupal\advagg_js_minify\EventSubscriber\MinificationSubscriber->minify(Object(Drupal\advagg\Asset\AssetOptimizationEvent), 'advagg.optimize...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#8 /var/www/html/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Drupal\advagg\Asset\AssetOptimizationEvent), 'advagg.optimize...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#9 /var/www/html/web/modules/contrib/advagg/src/Asset/JsOptimizer.php(126): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Drupal\advagg\Asset\AssetOptimizationEvent), 'advagg.optimize...')
#10 /var/www/html/web/modules/contrib/advagg/src/Asset/AssetOptimizer.php(255): Drupal\advagg\Asset\JsOptimizer->optimizeFile(Array, Array)
#11 /var/www/html/web/modules/contrib/advagg/src/Asset/AssetOptimizer.php(169): Drupal\advagg\Asset\AssetOptimizer->scanFile(Array)
#12 /var/www/html/web/modules/contrib/advagg/advagg.module(99): Drupal\advagg\Asset\AssetOptimizer->processAssetArray(Array)
#13 /var/www/html/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(552): advagg_js_alter(Array, Object(Drupal\Core\Asset\AttachedAssets), Object(Drupal\Core\Language\Language))
#14 /var/www/html/web/core/lib/Drupal/Core/Asset/AssetResolver.php(313): Drupal\Core\Extension\ModuleHandler->alter('js', Array, Object(Drupal\Core\Asset\AttachedAssets), Object(Drupal\Core\Language\Language))
#15 /var/www/html/web/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(330): Drupal\Core\Asset\AssetResolver->getJsAssets(Object(Drupal\Core\Asset\AttachedAssets), false, Object(Drupal\Core\Language\Language))
#16 /var/www/html/web/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(167): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object(Drupal\Core\Asset\AttachedAssets), Array)
#17 /var/www/html/web/core/modules/big_pipe/src/Render/BigPipeResponseAttachmentsProcessor.php(97): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object(Drupal\Core\Render\HtmlResponse))
#18 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php(45): Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor->processAttachments(Object(Drupal\Core\Render\HtmlResponse))
#19 [internal function]: Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#20 /var/www/html/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#21 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(214): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response')
#22 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(202): Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object(Drupal\Core\Render\HtmlResponse), Object(Symfony\Component\HttpFoundation\Request), 1)
#23 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#24 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /var/www/html/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#34 /var/www/html/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#35 /var/www/html/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#36 {main}
🐛 Bug report
Status

Active

Version

6.0

Component

Compression/Minification

Created by

🇮🇹Italy trickfun

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

Comments & Activities

Production build 0.71.5 2024