首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >include_once未能打开流:没有这样的文件或目录- Wordpress

include_once未能打开流:没有这样的文件或目录- Wordpress
EN

Stack Overflow用户
提问于 2016-10-19 14:44:51
回答 2查看 3.8K关注 0票数 0

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

http://mobitel.esy.es/

警告: include_once(/home/u320415047/public_html/wp-content/themes/thestore/lib/thestore-metaboxes.php):未能打开流:第8行的/home/u320415047/public_html/wp-content/themes/thestore/functions.php中没有这样的文件或目录 警告:'/home/u320415047/public_html/wp-content/themes/thestore/lib/thestore-metaboxes.php‘():在第8行的/home/u320415047/public_html/wp-content/themes/thestore/functions.php中打开包含/home/u320415047/public_html/wp-content/themes/thestore/functions.php的include_once(包含_path=’.:/opt/php-5.5/pear‘)失败 警告: 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中没有这样的文件或目录 警告:'/home/u320415047/public_html/wp-content/themes/thestore/lib/custom-config.php‘():在第9行的/home/u320415047/public_html/wp-content/themes/thestore/functions.php中打开包含/home/u320415047/public_html/wp-content/themes/thestore/functions.php的include_once(包含_path=’.:/opt/php-5.5/pear‘)失败

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2016-10-19 14:48:49

看起来你的主题的一部分被破坏或上传不当。它告诉你你丢失了一些它试图包括的文件:

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

重复检查这些文件是否存在,如果没有,请重新安装您的主题。

票数 0
EN

Stack Overflow用户

发布于 2016-10-19 14:56:39

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

代码语言:javascript
复制
include( get_template_directory() .'/file.php' );
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40134709

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档