【问题标题】:function 'parent_theme_locations' not found or invalid function name未找到函数“parent_theme_locations”或函数名称无效
【发布时间】:2015-03-20 11:01:58
【问题描述】:

我正在创建二十三岁的儿童主题。它在 localhost 中运行良好,没有任何错误,但是当我在服务器上运行时出现以下错误

警告:call_user_func_array() 期望参数 1 是有效的 回调,函数“parent_theme_locations”未找到或无效 函数名在 /home/nonaitpub/public_html/subedi/wordpress/wp-includes/plugin.php 上 第 496 行

【问题讨论】:

  • 请发布完整的错误。

标签: php wordpress-theming wordpress


【解决方案1】:

我想你已经在你的 functions.php 文件中的某个地方调用了函数'parent_theme_locations'。就像add_action('after_setup_theme','parent_theme_locations',20);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-05-09
    • 2019-01-25
    • 2018-11-19
    • 1970-01-01
    • 2019-04-06
    • 2019-08-13
    • 2019-11-04
    • 2018-05-20
    相关资源
    最近更新 更多