Yes that’s correct. Are you able to check your PHP error log to see what the error is?
Also, the plugin crash when I modify the products in woocommerce.
This is the error when I modify the products in woocommerce:
Fatal error: Uncaught Error: parse_url() expects parameter 1 to be string, null given
in /home/customer/www/altaico.es/public_html/wp-content/plugins/query-monitor/collectors/http.php on line 374
Call stack:
parse_url()
wp-content/plugins/query-monitor/collectors/http.php:374
QM_Collector_HTTP::process()
wp-content/plugins/query-monitor/classes/Collectors.php:84
QM_Collectors::process()
wp-content/plugins/query-monitor/classes/Dispatcher.php:108
QM_Dispatcher::get_outputters()
wp-content/plugins/query-monitor/dispatchers/Redirect.php:39
QM_Dispatcher_Redirect::filter_wp_redirect()
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters()
wp-includes/plugin.php:205
apply_filters()
wp-includes/pluggable.php:1396
wp_redirect()
wp-admin/includes/post.php:2205
redirect_post()
wp-admin/post.php:234
Query Monitor
And this is the error when I add the code for timings:
Fatal error: Uncaught Error: Call to undefined function my_potentially_slow_function()
in /home/customer/www/altaico.es/public_html/wp-content/themes/generatepress-child/functions.php on line 138
Call stack:
include()
wp-settings.php:611
require_once()
wp-config.php:83
require_once()
wp-load.php:50
require_once()
wp-admin/admin.php:34
require_once()
wp-admin/index.php:10
Query Monitor
my_potentially_slow_function is just some example code, you should replace this with the code that you’re trying to profile.
Understood, I would like to check what functions slow down the website.
For example, the timer stars a when the page is loaded, Query Monitor records the page generation time and check what slow down it.
Can you help me?
Please and thank you.
-
This reply was modified 2 years ago by
Altaico.