我迁移了我的网站并没有出现问题
警告:require_once():open_basedir限制生效。文件(/home/httpd/mytestserver.co.uk/mysite/httpdocs/wp-content/plugins/custom-content-type-manager/fields/text.php)不在允许的路径范围内:
它正在寻找的路径是在开发服务器上。我怎样才能找到并改变它?
答案 0 :(得分:0)
对于遇到此问题的任何人,请替换路径,将其放入主题functions.php并刷新浏览器:
$cctm = get_option('cctm_data');
foreach( $cctm["cache"]["helper_classes"]["fields"] as $key=>$f ) {
$cctm["cache"]["helper_classes"]["fields"][$key] = str_replace("OLD BASE PATH","NEW BASE PATH",$f);
}
foreach( $cctm["cache"]["helper_classes"]["filters"] as $key=>$f ) {
$cctm["cache"]["helper_classes"]["filters"][$key] = str_replace("OLD BASE PATH","NEW BASE PATH",$f);
}
update_option( "cctm_data", $cctm );
信用转到https://gist.github.com/shoreline-chrism/1a8de1588ed67247ab03#file-wp-cctm-path-fix-php