open_basedir restriction in effect(WordPress搬站)

- 作者:小小课堂网 - 阅 518   推荐

file_exists(),open_basedir restriction in effect,这个报错是小小课堂网最近一次搬站中遇到的,今天,小小课堂网( xxkt.org.cn )分享的内容为《file_exists(),open_basedir restriction in effect(WordPress搬站报错)》。希望对大家有所帮助。

一、问题描述

小小课堂网(采用WordPress建站)搬站后,打开文章页面报错如下:

Warning:file_exists(),open_basedir restriction in effect.File(路径/is not within the allowed path(s):(路径/)wp-includes\template.php on line。

二、问题解决

这个问题的前提如下:

WordPress系统

WordPress搬站

WordPress文章页面底部报错

WordPress从linux服务器搬到windows服务器

WordPress之后服务器采用的宝塔面板安装的环境

如果是符合上述情况,解决办法基本上就是去掉宝塔面板上“网站目录”中的“防跨站攻击(open_basedir)”勾选即可,如下图所示:

防跨站攻击

以上就是小小课堂网( xxkt.org.cn )分享的内容为《file_exists(),open_basedir restriction in effect(WordPress搬站报错)》。感谢您的阅读。

本文最后一次更新时间:2022年4月8日

本文《open_basedir restriction in effect(WordPress搬站)》由小小课堂网整理或原创,侵删,欢迎转载并保留版权:https://xxkt.org.cn/ 感谢您的阅读。

本站提供SEO培训、咨询、诊断,QQ:2216876660 微信:huowuyan 公众号:小小课堂网

标签:

相关文章!
error: Content is protected !!