此代码有误
if (Configuration::get('PS_USE_HTMLPURIFIER')) {
require_once(_PS_ROOT_DIR_.'/tools/htmlpurifier/HTMLPurifier.standalone.php');
}
错误:
PHP Fatal error: require_once(): Failed opening required '/home/luvsecret/public_html/www.jacketsshops.com/tools/htmlpurifier/HTMLPurifier.standalone.php' (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/luvsecret/public_html/www.jacketsshops.com/config/config.inc.php on line 135
文件许可权是644,文件存在且文件夹许可权是755 在注释代码时,网站将恢复正常工作。 有帮助吗?
答案 0 :(得分:0)
我认为问题出在路径上,应将_PS_ROOT_DIR_替换为_PS_TOOL_DIR _
if (Configuration::get('PS_USE_HTMLPURIFIER')) {
require_once(_PS_TOOL_DIR_.'htmlpurifier/HTMLPurifier.standalone.php');
}