首页 文章

include_once无法打开流:没有这样的文件或目录 - Wordpress

提问于
浏览
0

只是一个新手问题,但我不知道如何处理这个错误 .

http://mobitel.esy.es/

警告:include_once(/home/u320415047/public_html/wp-content/themes/thestore/lib/thestore-metaboxes.php):无法打开流:/ home / u320415047 / public_html / wp-content中没有此类文件或目录/themes/thestore/functions.php在第8行警告:include_once():无法打开'/home/u320415047/public_html/wp-content/themes/thestore/lib/thestore-metaboxes.php'以包含(include_path =' . :/opt/php-5.5/pear')在/home/u320415047/public_html/wp-content/themes/thestore/functions.php第8行警告:include_once(/ home / u320415047 / public_html / wp-content / themes / thestore / lib / custom-config.php):无法打开流:第9行/home/u320415047/public_html/wp-content/themes/thestore/functions.php中没有此类文件或目录警告:include_once():失败在/ home / u320415047 / public_html中打开'/home/u320415047/public_html/wp-content/themes/thestore/lib/custom-config.php'以包含(include_path =' . :/ opt / php-5.5 / pear')第9行/wp-content/themes/thestore/functions.php

2 回答

  • 0

    看起来您的主题部分已损坏或未正确上传 . 它告诉你,你错过了一些它试图包含的文件:

    • wp-content / themes / thestore / lib / custom-config.php

    • wp-content / themes / thestore / lib / thestore-metaboxes.php

    仔细检查那些文件是否存在,如果没有,请尝试重新安装主题

  • 0

    在wordpress中,当你在functions.php中包含文件时,你必须使用内置的get_template_directory()函数引用正确的文件路径

    include( get_template_directory() .'/file.php' );
    

相关问题