Fatal error: Uncaught Error: Call to undefined function add_rewrite_rule()
-
Hi everyone, I had to update and some time later I received the following message: Fatal error: Uncaught Error: Call to undefined function add_rewrite_rule() in /home/medapti1/medecinestock.com/wp-content/plugins/woocommerce/includes/class-wc-auth.php:60 Stack trace: #0 /home/medapti1/medecinestock.com/wp-includes/class-wp-hook.php(324): WC_Auth::add_endpoint(”) #1 /home/medapti1/medecinestock.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /home/medapti1/medecinestock.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/medapti1/medecinestock.com/wp-settings.php(643): do_action(‘init’) #4 /home/medapti1/medecinestock.com/wp-config.php(96): require_once(‘/home/medapti1/…’) #5 /home/medapti1/medecinestock.com/wp-load.php(50): require_once(‘/home/medapti1/…’) #6 /home/medapti1/medecinestock.com/wp-login.php(12): require(‘/home/medapti1/…’) #7 {main} thrown in?/home/medapti1/medecinestock.com/wp-content/plugins/woocommerce/includes/class-wc-auth.php?on line?60
I watched some tutorials and I renamed the “ plugins ” file but without success. I also tried to rename ” includes ” files and its also without succes.
I arrive at the file in question ( class-wc-auth.php?on line?60 ) but I do not know how to modify it to fix the error. I will be happy to put your advice into practice. Thanks in advance
- The topic ‘Fatal error: Uncaught Error: Call to undefined function add_rewrite_rule()’ is closed to new replies.