2

我迁移了我的网站并没有遇到问题

警告:require_once():open_basedir 限制生效。文件(/home/httpd/mytestserver.co.uk/mysite/httpdocs/wp-content/plugins/custom-content-type-manager/fields/text.php)不在允许的路径内:

它正在寻找的路径在开发服务器上。我怎样才能找到并改变它?

4

1 回答 1

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

于 2016-02-24T18:46:07.713 回答