【问题标题】:I receive an error message while creating my first woocommerce theme. The error message it type in the discription我在创建我的第一个 woocommerce 主题时收到一条错误消息。它在描述中键入的错误消息
【发布时间】:2020-03-24 09:07:50
【问题描述】:

我在创建 woocommerce 主题时收到以下错误消息。 致命错误:未捕获错误:调用 C:\xampp\htdocs\premier\wp-content\themes\woocommercetheme\functions.php:7 中的未定义函数 get_tmplate_directory_url() 堆栈跟踪:#0 C:\xampp\htdocs\premier\ wp-includes\class-wp-hook.php(288): load_stylesheets('') #1 C:\xampp\htdocs\premier\wp-includes\class-wp-hook.php(312): WP_Hook->apply_filters (NULL, Array) #2 C:\xampp\htdocs\premier\wp-includes\plugin.php(478): WP_Hook->do_action(Array) #3 C:\xampp\htdocs\premier\wp-includes\script -loader.php(2667): do_action('wp_enqueue_scri...') #4 C:\xampp\htdocs\premier\wp-includes\class-wp-hook.php(288): wp_enqueue_scripts('') #5 C:\xampp\htdocs\premier\wp-includes\class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array) #6 C:\xampp\htdocs\premier\wp-includes\plugin。 php(478): WP_Hook->do_action(Array) #7 C:\xampp\htdocs\premier\wp-includes\general-template.php(2879): do_action('wp_head') #8 C:\xampp\htdocs \premier\wp-content\themes\woocommercetheme\header.php(7): wp_head() #9 C:\xampp\htdocs\pre mier\wp-includes\template.php(722): r in C:\xampp\htdocs\premier\wp-content\themes\woocommercetheme\functions.php 第 7 行 您的网站出现严重错误。

【问题讨论】:

    标签: php xampp wordpress-theming


    【解决方案1】:

    只是拼写错误的问题!正确的代码是:

    get_template_directory_uri()
    

    【讨论】:

      猜你喜欢
      • 2018-05-23
      • 2022-06-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-19
      • 2021-10-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多