Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello, I get this PHP notice editing a view:
Notice: Undefined property: view::$execute_time in views_ui_preview() (line 231 of ...sites/all/modules/views/includes/admin.inc).
Thanks!
Comments
Comment #1
renatogHello Manuel how are you? Thank you so much for reporting this. Yes, probably it happened in some versions in the past, this function was updated a lot. I installed the last version and I was testing the preview function on the admin interface monitoring the watchdog and it worked. I was analyzing the function views_ui_preview and this function is receiving a $views in the first parameter and is used $view->execute_time on that case for example https://git.drupalcode.org/project/views/-/blob/7.x-3.x/includes/admin.i... but in that case is working fine using 7.x-3.24. So the good way, in that case, is to upgrade your views to the last version, run all updates on /update.php, clear all caches, clear logs on watchdog and try again. It worked for me and will work for you as well. Even so, if you have any other issues with that please feel free to reopen with more information ok? Thank you so much, Manuel