Notice: Undefined property: Drupal\webprofiler\Views\TraceableViewExecutable::$execute_time
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #2898075. -->
Reported by: [drugan](https://www.drupal.org/user/1578644)
>>>
<pre>Notice: Undefined property: Drupal\webprofiler\Views\TraceableViewExecutable::$execute_time in Drupal\webprofiler\Views\TraceableViewExecutable->getExecuteTime() (line 34 of /home/d21rv/www/modules/contrib/devel/webprofiler/src/Views/TraceableViewExecutable.php). array(21)<br> '20: Drupal\webprofiler\Views\TraceableViewExecutable->getExecuteTime()' => array(1)<br> '19: Drupal\webprofiler\DataCollector\ViewsDataCollector->collect()' => array(2)<br> '18: Symfony\Component\HttpKernel\Profiler\Profiler->collect()' => array(2)<br> '17: Symfony\Component\HttpKernel\EventListener\ProfilerListener->onKernelResponse()' => array(2)<br> '16: call_user_func()' => array(1)<br> '15: Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()' => array(2)<br> '14: Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()' => array(2)<br> '13: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()' => array(2)<br> '12: Symfony\Component\HttpKernel\HttpKernel->filterResponse()' => array(2)<br> '11: Symfony\Component\HttpKernel\HttpKernel->handleRaw()' => array(2)<br> '10: Symfony\Component\HttpKernel\HttpKernel->handle()' => array(2)<br> ' 9: Drupal\Core\StackMiddleware\Session->handle()' => array(2)<br> ' 8: Drupal\Core\StackMiddleware\KernelPreHandle->handle()' => array(2)<br> ' 7: Drupal\page_cache\StackMiddleware\PageCache->pass()' => array(2)<br> ' 6: Drupal\page_cache\StackMiddleware\PageCache->handle()' => array(2)<br> ' 5: Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()' => array(2)<br> ' 4: Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware->handle()' => array(2)<br> ' 3: Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()' => array(2)<br> ' 2: Stack\StackedHttpKernel->handle()' => array(2)<br> ' 1: Drupal\Core\DrupalKernel->handle()' => array(2) </pre><hr>
<hr>
<hr>
<p>To reproduce:</p>
<p>Go to <strong>admin/config/development/logging</strong> and enable<strong> All messages, with backtrace information</strong>.</p>
<p>Create a view (page) of content (or something else what you like).</p>
<p>Add the <strong>Content: ID</strong> contextual filter.</p>
<p><a href="https://www.drupal.org/files/issues/configure_contextual_filter.png">Configure the filter</a>.</p>
<p>Go to <strong>/your_view_page</strong> and try to apply the filter with existing content ID. Like this: <strong>/your_view_page/1</strong>. Everything works as expected - you'll see only the content with this ID.</p>
<p>Try to add not existing ID like this: <strong>/your_view_page/123456789</strong> and observe the same notice as above.</p>
issue