首页 文章

Wocommerce - 内部服务器错误:注意:id调用不正确

提问于
浏览
-1

我的网站有问题 . 结帐时,我收到内部服务器错误 . 我已经阅读了论坛甚至在这个论坛上提供的几乎所有解决方案,但没有一个证明可以解决这个问题 . 这是下面的错误日志 .

注意:id调用不正确 . 不应直接访问订单属性 . Backtrace:require('wp-blog-header.php'),require_once('wp-includes / template-loader.php'),include('/ themes / astra / page.php'),astra_content_page_loop,do_action('astra_content_page_loop '),WP_Hook-> do_action,WP_Hook-> apply_filters,call_user_func_array,Astra_Loop-> loop_markup_page,Astra_Loop-> loop_markup,do_action('astra_page_template_parts_content'),WP_Hook-> do_action,WP_Hook-> apply_filters,call_user_func_array,Astra_Loop-> template_parts_page,get_template_part ,locate_template,load_template,require('/ themes / astra / template-parts / content-page.php'),the_content,apply_filters('the_content'),WP_Hook-> apply_filters,call_user_func_array,do_shortcode,preg_replace_callback,do_shortcode_tag,call_user_func,WC_Shortcodes :: checkout,WC_Shortcodes :: shortcode_wrapper,call_user_func,WC_Shortcode_Checkout :: output,WC_Shortcode_Checkout :: order_received,wc_get_template,include('/ plugins / woocommerce / templates / ch in / home / newsvlup / public_html / wp-includ es / functions.php在4161行

1 回答

  • 0

    这是因为Woocommerce在新版本中弃用了某些方法,但插件或主题中的现有代码使用旧方法获取购物车数据,这就是您收到此通知的原因 .

    忽略此类通知的最佳方法是在制作直播之前使用新版本的WooCommerce检查所有插件和主题 .

    我希望你的关注能很好地发现你 .

相关问题