Accueil › Toolset Professional Support › [Résolu] Toolset Views Performance Issues / Timeouts After Update to v3.3.5
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Kolkata (GMT+05:30)
Marqué : Content Templates, Views, Views plugin
Documentation connexe :
Ce sujet contient 16 réponses, a 2 voix.
Dernière mise à jour par Minesh Il y a 3 années et 7 mois.
Assisté par: Minesh.
I am trying to:
On lien caché, we upgraded from Toolset Views v3.2.2.1 to the latest 3.3.5 version, and the Testimonails page (lien caché) began responding with a HTTP 502 Gateway Timeout error.
Link to a page where the issue can be seen:
lien caché
All pages on the site are also now very slow.
I expected to see:
When loading the home page with Views v3.2.2.1, the Query Monitor Plugin shows:
0.92s load time
42,306kb peak memory usage
24 database queries
Instead, I got:
But after upgrading to version 3.3.5, the Query Monitor plugin shows this when loading the home page:
28.65s load time
191.992kb peak memory usage
571 database queries
ie a 28 second load time occurs after upgrading, and there are almost 24 times the number of database queries.
You can replicate this by logging into the site, and going to lien caché and installing your views v3.5.5 zip file. For now, the site has been rolled back to views v3.2.2.1 so that you can upgrade it and see the timeout issue start for yourself.
Can you please cc travis@om4.com.au and hari@om4.com.au in your reply to us?
Thank you,
James
Hello. Thank you for contacting the Toolset support.
Thank you for sharing all those details.
Based on debug information you shared, I see you are using outdated WordPress version. We always recommend running your site with the latest stable release plugin version. Can you please update WordPress to latest official released version: 5.6
=> https://wordpress.org/download/
After updating WordPress to latest version, Do you see any difference? If no:
- Can you please send me admin access details and I would be happy to review whats going wrong with your setup.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I just added and activated the Toolset Views version 3.3.5 and when I visit the "testimonials" page:
=> lien caché
I see HTTP ERROR 500. Can you please check the server logs and share with me.
Also, can you please try to host the test site on another server (non-wpEngine) and see if you see the same things happening. I wonder why its not working, something must be blocked from server as the Toolset Views version 3.3.5 is the current version and if its not working then our forum will be full of tickets and that is not the case and Toolset Views version 3.3.5 is the stable version with not many bugs reported especially 500 HTTP error.
Hi Minesh,
The erorr logs say:
[Mon Jan 18 13:29:26.620544 2021] [php7:error] [pid 3993] [client 103.156.207.32:24824] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32768 bytes) in Unknown on line 0, referer: https://toolset.com/
[Mon Jan 18 13:29:49.929151 2021] [php7:error] [pid 3993] [client 103.156.207.32:24988] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /nas/content/live/pumpengstage/wp-includes/functions.php on line 6455, referer: https://toolset.com/
[Mon Jan 18 13:29:49.931113 2021] [php7:error] [pid 3993] [client 103.156.207.32:24988] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 49152 bytes) in /nas/content/live/pumpengstage/wp-includes/functions.php on line 4755, referer: https://toolset.com/
So the error you're seeing is a memory exhausted error, which causes a HTTP 500 error.
It's a symptom of some kind of performance issue and/or infinite loop.
Unfortunately, your suggestion to try another web host doesn't seem like a response that shows you've look at this in any great detail. It seems like a simple/quick way to "pass" the responsibility back to us to investigate.
Having said that, I have followed your suggestion and downloaded the site to another hosting environment. I'm now hosting a copy of the site locally on my own PHP 7.4 environment and the performance problem exists.
You can download the site here too if it helps: lien caché
It's easy to replicate by upgrading views to the latest version.
here's a stack trace I got from my local environment in case it helps:
```
[19-Jan-2021 04:27:58 UTC] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/vagrant/sites/pumpengstage/wp-content/plugins/bb-plugin/classes/class-fl-builder-model.php on line 1457
[19-Jan-2021 04:27:58 UTC] PHP Stack trace:
[19-Jan-2021 04:27:58 UTC] PHP 1. {main}() /home/vagrant/sites/pumpengstage/index.php:0
[19-Jan-2021 04:27:58 UTC] PHP 2. require() /home/vagrant/sites/pumpengstage/index.php:17
[19-Jan-2021 04:27:58 UTC] PHP 3. require_once() /home/vagrant/sites/pumpengstage/wp-blog-header.php:19
[19-Jan-2021 04:27:58 UTC] PHP 4. include() /home/vagrant/sites/pumpengstage/wp-includes/template-loader.php:106
[19-Jan-2021 04:27:58 UTC] PHP 5. get_template_part() /home/vagrant/sites/pumpengstage/wp-content/themes/bb-theme/page.php:10
[19-Jan-2021 04:27:58 UTC] PHP 6. locate_template() /home/vagrant/sites/pumpengstage/wp-includes/general-template.php:204
[19-Jan-2021 04:27:59 UTC] PHP 7. load_template() /home/vagrant/sites/pumpengstage/wp-includes/template.php:676
[19-Jan-2021 04:27:59 UTC] PHP 8. require() /home/vagrant/sites/pumpengstage/wp-includes/template.php:732
[19-Jan-2021 04:27:59 UTC] PHP 9. the_content() /home/vagrant/sites/pumpengstage/wp-content/themes/bb-theme/content-page.php:13
[19-Jan-2021 04:27:59 UTC] PHP 10. apply_filters() /home/vagrant/sites/pumpengstage/wp-includes/post-template.php:253
[19-Jan-2021 04:27:59 UTC] PHP 11. WP_Hook->apply_filters() /home/vagrant/sites/pumpengstage/wp-includes/plugin.php:212
[19-Jan-2021 04:27:59 UTC] PHP 12. FLBuilder::render_content() /home/vagrant/sites/pumpengstage/wp-includes/class-wp-hook.php:287
[19-Jan-2021 04:27:59 UTC] PHP 13. FLBuilder::render_content_by_id() /home/vagrant/sites/pumpengstage/wp-content/plugins/bb-plugin/classes/class-fl-builder.php:1836
[19-Jan-2021 04:27:59 UTC] PHP 14. do_shortcode() /home/vagrant/sites/pumpengstage/wp-content/plugins/bb-plugin/classes/class-fl-builder.php:1779
[19-Jan-2021 04:27:59 UTC] PHP 15. preg_replace_callback() /home/vagrant/sites/pumpengstage/wp-includes/shortcodes.php:218
[19-Jan-2021 04:27:59 UTC] PHP 16. do_shortcode_tag() /home/vagrant/sites/pumpengstage/wp-includes/shortcodes.php:218
[19-Jan-2021 04:27:59 UTC] PHP 17. WP_Views_plugin->short_tag_wpv_view() /home/vagrant/sites/pumpengstage/wp-includes/shortcodes.php:343
[19-Jan-2021 04:27:59 UTC] PHP 18. WP_Views_plugin->render_view_ex() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/embedded/inc/wpv.class.php:629
[19-Jan-2021 04:27:59 UTC] PHP 19. WP_Views_plugin->render_view() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/embedded/inc/wpv.class.php:2013
[19-Jan-2021 04:27:59 UTC] PHP 20. wpv_do_shortcode() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/embedded/inc/wpv.class.php:2517
[19-Jan-2021 04:27:59 UTC] PHP 21. do_shortcode() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/embedded/inc/wpv-shortcodes.php:2657
[19-Jan-2021 04:27:59 UTC] PHP 22. preg_replace_callback() /home/vagrant/sites/pumpengstage/wp-includes/shortcodes.php:218
[19-Jan-2021 04:27:59 UTC] PHP 23. do_shortcode_tag() /home/vagrant/sites/pumpengstage/wp-includes/shortcodes.php:218
[19-Jan-2021 04:27:59 UTC] PHP 24. WPV_Shortcode_Base_View->render() /home/vagrant/sites/pumpengstage/wp-includes/shortcodes.php:343
[19-Jan-2021 04:27:59 UTC] PHP 25. WPV_Shortcode_Post_Body->get_value() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/application/models/shortcode/base_view.php:32
[19-Jan-2021 04:27:59 UTC] PHP 26. WPV_Shortcode_Post_Body->get_content_template_value() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/application/models/shortcode/post/body.php:147
[19-Jan-2021 04:27:59 UTC] PHP 27. apply_filters() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/application/models/shortcode/post/body.php:244
[19-Jan-2021 04:27:59 UTC] PHP 28. WP_Hook->apply_filters() /home/vagrant/sites/pumpengstage/wp-includes/plugin.php:212
[19-Jan-2021 04:27:59 UTC] PHP 29. do_shortcode() /home/vagrant/sites/pumpengstage/wp-includes/class-wp-hook.php:287
[19-Jan-2021 04:27:59 UTC] PHP 30. preg_replace_callback() /home/vagrant/sites/pumpengstage/wp-includes/shortcodes.php:218
[19-Jan-2021 04:27:59 UTC] PHP 31. do_shortcode_tag() /home/vagrant/sites/pumpengstage/wp-includes/shortcodes.php:218
[19-Jan-2021 04:27:59 UTC] PHP 32. WPV_Shortcode_Base_View->render() /home/vagrant/sites/pumpengstage/wp-includes/shortcodes.php:343
[19-Jan-2021 04:27:59 UTC] PHP 33. WPV_Shortcode_Post_Body->get_value() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/application/models/shortcode/base_view.php:32
[19-Jan-2021 04:27:59 UTC] PHP 34. WPV_Shortcode_Post_Body->get_post_content_value() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/application/models/shortcode/post/body.php:138
[19-Jan-2021 04:27:59 UTC] PHP 35. apply_filters() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/application/models/shortcode/post/body.php:321
[19-Jan-2021 04:27:59 UTC] PHP 36. WP_Hook->apply_filters() /home/vagrant/sites/pumpengstage/wp-includes/plugin.php:212
[19-Jan-2021 04:27:59 UTC] PHP 37. WPV_template_plugin->the_content() /home/vagrant/sites/pumpengstage/wp-includes/class-wp-hook.php:287
[19-Jan-2021 04:27:59 UTC] PHP 38. apply_filters() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/embedded/inc/views-templates/wpv-template.class.php:879
[19-Jan-2021 04:27:59 UTC] PHP 39. WP_Hook->apply_filters() /home/vagrant/sites/pumpengstage/wp-includes/plugin.php:212
[19-Jan-2021 04:27:59 UTC] PHP 40. Toolset_User_Editors_Editor_Screen_Beaver_Frontend->filter_content_template_output() /home/vagrant/sites/pumpengstage/wp-includes/class-wp-hook.php:289
[19-Jan-2021 04:27:59 UTC] PHP 41. FLBuilder::render_content() /home/vagrant/sites/pumpengstage/wp-content/plugins/types/vendor/toolset/toolset-common/user-editors/editor/screen/beaver/frontend.php:205
[19-Jan-2021 04:27:59 UTC] PHP 42. FLBuilder::render_content_by_id() /home/vagrant/sites/pumpengstage/wp-content/plugins/bb-plugin/classes/class-fl-builder.php:1836
[19-Jan-2021 04:27:59 UTC] PHP 43. do_shortcode() /home/vagrant/sites/pumpengstage/wp-content/plugins/bb-plugin/classes/class-fl-builder.php:1779
[19-Jan-2021 04:27:59 UTC] PHP 44. preg_replace_callback() /home/vagrant/sites/pumpengstage/wp-includes/shortcodes.php:218
[19-Jan-2021 04:27:59 UTC] PHP 45. do_shortcode_tag() /home/vagrant/sites/pumpengstage/wp-includes/shortcodes.php:218
[19-Jan-2021 04:27:59 UTC] PHP 46. WP_Views_plugin->short_tag_wpv_view() /home/vagrant/sites/pumpengstage/wp-includes/shortcodes.php:343
[19-Jan-2021 04:27:59 UTC] PHP 47. WP_Views_plugin->render_view_ex() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/embedded/inc/wpv.class.php:629
[19-Jan-2021 04:27:59 UTC] PHP 48. WP_Views_plugin->render_view() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/embedded/inc/wpv.class.php:2013
[19-Jan-2021 04:27:59 UTC] PHP 49. wpv_do_shortcode() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/embedded/inc/wpv.class.php:2517
[19-Jan-2021 04:27:59 UTC] PHP 50. do_shortcode() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/embedded/inc/wpv-shortcodes.php:2657
[19-Jan-2021 04:27:59 UTC] PHP 51. preg_replace_callback() /home/vagrant/sites/pumpengstage/wp-includes/shortcodes.php:218
[19-Jan-2021 04:27:59 UTC] PHP 52. do_shortcode_tag() /home/vagrant/sites/pumpengstage/wp-includes/shortcodes.php:218
[19-Jan-2021 04:27:59 UTC] PHP 53. WPV_Shortcode_Base_View->render() /home/vagrant/sites/pumpengstage/wp-includes/shortcodes.php:343
[19-Jan-2021 04:27:59 UTC] PHP 54. WPV_Shortcode_Post_Body->get_value() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/application/models/shortcode/base_view.php:32
[19-Jan-2021 04:27:59 UTC] PHP 55. WPV_Shortcode_Post_Body->get_content_template_value() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/application/models/shortcode/post/body.php:147
[19-Jan-2021 04:27:59 UTC] PHP 56. apply_filters() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/application/models/shortcode/post/body.php:244
[19-Jan-2021 04:27:59 UTC] PHP 57. WP_Hook->apply_filters() /home/vagrant/sites/pumpengstage/wp-includes/plugin.php:212
[19-Jan-2021 04:27:59 UTC] PHP 58. do_shortcode() /home/vagrant/sites/pumpengstage/wp-includes/class-wp-hook.php:287
[19-Jan-2021 04:27:59 UTC] PHP 59. preg_replace_callback() /home/vagrant/sites/pumpengstage/wp-includes/shortcodes.php:218
[19-Jan-2021 04:27:59 UTC] PHP 60. do_shortcode_tag() /home/vagrant/sites/pumpengstage/wp-includes/shortcodes.php:218
[19-Jan-2021 04:27:59 UTC] PHP 61. WPV_Shortcode_Base_View->render() /home/vagrant/sites/pumpengstage/wp-includes/shortcodes.php:343
[19-Jan-2021 04:27:59 UTC] PHP 62. WPV_Shortcode_Post_Body->get_value() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/application/models/shortcode/base_view.php:32
[19-Jan-2021 04:27:59 UTC] PHP 63. WPV_Shortcode_Post_Body->get_post_content_value() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/application/models/shortcode/post/body.php:138
[19-Jan-2021 04:27:59 UTC] PHP 64. apply_filters() /home/vagrant/sites/pumpengstage/wp-content/plugins/wp-views/application/models/shortcode/post/body.php:331
[19-Jan-2021 04:27:59 UTC] PHP 65. WP_Hook->apply_filters() /home/vagrant/sites/pumpengstage/wp-includes/plugin.php:212
[19-Jan-2021 04:27:59 UTC] PHP 66. Toolset_User_Editors_Editor_Screen_Beaver_Frontend->filter_content_template_output() /home/vagrant/sites/pumpengstage/wp-includes/class-wp-hook.php:287
[19-Jan-2021 04:27:59 UTC] PHP 67. FLBuilder::render_content() /home/vagrant/sites/pumpengstage/wp-content/plugins/types/vendor/toolset/toolset-common/user-editors/editor/screen/beaver/frontend.php:205
[19-Jan-2021 04:27:59 UTC] PHP 68. FLBuilder::render_content_by_id() /home/vagrant/sites/pumpengstage/wp-content/plugins/bb-plugin/classes/class-fl-builder.php:1836
[19-Jan-2021 04:27:59 UTC] PHP 69. FLBuilder::render_nodes() /home/vagrant/sites/pumpengstage/wp-content/plugins/bb-plugin/classes/class-fl-builder.php:1760
[19-Jan-2021 04:27:59 UTC] PHP 70. FLBuilder::render_rows() /home/vagrant/sites/pumpengstage/wp-content/plugins/bb-plugin/classes/class-fl-builder.php:1905
[19-Jan-2021 04:27:59 UTC] PHP 71. FLBuilderModel::get_nodes() /home/vagrant/sites/pumpengstage/wp-content/plugins/bb-plugin/classes/class-fl-builder.php:2097
[19-Jan-2021 04:27:59 UTC] PHP 72. FLBuilderModel::get_node_settings() /home/vagrant/sites/pumpengstage/wp-content/plugins/bb-plugin/classes/class-fl-builder-model.php:1079
[19-Jan-2021 04:27:59 UTC] PHP 73. FLBuilderModel::get_node_settings_with_defaults_merged() /home/vagrant/sites/pumpengstage/wp-content/plugins/bb-plugin/classes/class-fl-builder-model.php:1430
```
Perhaps there is an obscure bug/issue in views that causes these issues. It's possible that the problem only affects some users and not all.
I'd appreciate it if you or another developer could take a more detailed look, and get back to us with your findings.
Thank you,
James
Thank you for sharing your site copy. I've installed and configured your site on my local server and yes, I can confirm that the "testimonial" page works as expected with views version 3.2.2.1 but as soon as I update the views to latest version 3.3.5, I can see "testimonial" page is not working and see the memory error.
Please allow me to escalate this issue to our next level support and I will get in touch with you as soon as I have any news or findings.
However - I see you added the view using view's shortcode to "Text" module of beaver builder and there is nothing fancy you added using BeaverBuilder to the "testimonial" page, if you want, the workaround is to use the Blocks instead of BeaverBuilder and I can see with Blocks the testimonial page works even with views version 3.3.5.
I got the news from our next level support that - the problem happens because the output of the View uses a content template which is designed using BeaverBuilder and that template includes the post body shortcode:
This is the view that uses the content template for view's loop that is desiged using BeaverBuidler:
=> lien caché
And if you edit the loop item content template, you will notice that you have added the following shortcode to display the post content:
[wpv-post-body view_template="None"]
If you remove the above shortcode from the loop item content template you desired using BB, the page loads fine as expected.
As a temporary solution, we do not suggest you to use post body shortcode within view's loop content template or discard use of BB with loop item content template.
However, we will escalate the issue to our devs to know why its working with Views v3.2.2.1 and not with Views v3.3.5.
Thanks for the update Minesh!
That shortcode has worked fine for years, and now it’s a problem in the latest views version so I’d really like to find out if this can be solved in a new views release.
In the meantime, is there a recommended way to output the post body/content when using a beaver builder based content template in a view?
James
Our Devs shared the hotfix that will help you to fix this issue.
Can you please follow the instructions given with the following errata page and try to resolve your issue:
=> https://toolset.com/errata/fatal-memory-error-using-beaver-builder-in-views-output/
Thank you, applying that errata fix to views 3.5.5 has resolved the problem for us.
It sounds like the fix will also be part of views v3.4 when it is released?
James
Hi Minesh,
We are having the same issues as views version 3.3.5 now that we have updated to views 3.4.2 it's responding with a HTTP 502 Gateway Timeout.
The fix is not added to the current version that is why you will require to add it to the updated version as well.
Would you mind to apply the said fix available with the following errata page and check if that helps you to resolve your issue.
=> https://toolset.com/errata/fatal-memory-error-using-beaver-builder-in-views-output/
Hi Minesh,
Could we please know when this fix will be added to a public release? also is this hotfix only for views version 3.3.5 or can we apply it to views version 3.4.2
At the moment we have 41 sites that are running toolset views which we can't update automatically.
Thank you,
Travis
@glennN:
- I see the fix for this issue is set to published with Views version 3.5.
If everything goes well, you can expect the next release is 3.5 published by end of this month.
Great, fingers crossed this fix is applied.
Also is this hotfix only for views version 3.3.5 or can we apply it to views version 3.4.2?
Thank you.
Travis
Yes - you should apply the hotfix to 3.4.2.