问题
I am using WordPress 5.2 with the plugin YITH Woocommerce Request A Quote Premium.
Whenever I hit “Send Your Request” the page refreshes and nothing happens. No email is sent and when I enabled debug in wp-config I get this:
Notice: is_main_query was called incorrectly. In pre_get_posts, use the WP_Query->is_main_query() method,
Notice: id was called incorrectly. Product properties should not be accessed directly
Any help or advice would be greatly appreciated!
回答1:
here is what i have when i active debug:
Notice: id est appelée de la mauvaise manière. Les propriétés du produit ne doivent pas être accessible directement. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/accesspress-parallax/page.php'), get_template_part, locate_template, load_template, require('/themes/accesspress-parallax/content-page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, YITH_YWRAQ_Shortcodes->request_quote_page, wc_get_template, include('/plugins/yith-woocommerce-request-a-quote-premium/templates/request-quote.php'), wc_get_template, include('/plugins/yith-woocommerce-request-a-quote-premium/templates/request-quote-view.php'), WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Veuillez lire Débogage dans WordPress (en) pour plus d’informations. (Ce message a été ajouté à la version 3.0.) in /home/sites/equipalg/public_html/site/wp-includes/functions.php on line 4778
I don't know where is the ligne of error, please can you help me.
来源:https://stackoverflow.com/questions/59136782/yith-woocommerce-request-a-quote-premium