我的任务是将一个网站转移到一个新的领域,我遇到了这个奇怪的问题
在主页上,我总是看到以下内容:
注意:常量AUTOSAVE\\u INTERVAL已在/home/gturnat/public\\u html/wp config中定义。php在线99
注意:已在/home/gturnat/public\\u html/WP config中定义了常量WP\\u POST\\u修订。php在线100
我所尝试的:
- Notice: Constant WP_POST_REVISIONS already defined 建议在上注释常量
default-constants.php
, 但它不起作用 设置 - 冉
grep -1R WP_POST_REVISIONS *
和grep -1R AUTOSAVE_INTERVAL *
结果如下:root@webtest:#grep-lR WP\\u POST\\u修订*
WP config。php包含/默认常量。php包括/修订。php
root@webtest:#grep-lR AUTOSAVE\\u INTERVAL*
wp config。php包含/脚本加载程序。php包含/默认常量。php
wp包括/class wp自定义管理器。php我真的没有别的想法可以尝试了。
我正在使用Wordpress 4.7.2,在PHP 5.4上运行,加载了以下模块:
服务器中没有运行的op缓存。就是这些选择。PHP配置了以下选项:
作为一个测试点,我尝试在PHP 5.6上运行它,得到了相同的结果,包括以下模块:\'./configure\' \'--prefix=/usr\' \'--exec-prefix=/usr\' \'--bindir=/usr/bin\' \'--sbindir=/usr/sbin\' \'--sysconfdir=/etc\' \'--datadir=/usr/share\' \'--includedir=/usr/include\' \'--libdir=/usr/lib64\' \'--libexecdir=/usr/libexec\' \'--sharedstatedir=/var/lib\' \'--mandir=/usr/share/man\' \'--infodir=/usr/share/info\' \'--build=x86_64-redhat-linux-gnu\' \'--host=x86_64-redhat-linux-gnu\' \'--target=x86_64-redhat-linux-gnu\' \'--program-prefix=\' \'--prefix=/opt/alt/php54\' \'--exec-prefix=/opt/alt/php54\' \'--bindir=/opt/alt/php54/usr/bin\' \'--sbindir=/opt/alt/php54/usr/sbin\' \'--sysconfdir=/opt/alt/php54/etc\' \'--datadir=/opt/alt/php54/usr/share\' \'--includedir=/opt/alt/php54/usr/include\' \'--libdir=/opt/alt/php54/usr/lib64\' \'--libexecdir=/opt/alt/php54/usr/libexec\' \'--localstatedir=/var\' \'--sharedstatedir=/usr/com\' \'--mandir=/opt/alt/php54/usr/share/man\' \'--infodir=/opt/alt/php54/usr/share/info\' \'--cache-file=../config.cache\' \'--with-libdir=lib64\' \'--with-config-file-path=/opt/alt/php54/etc\' \'--with-config-file-scan-dir=/opt/alt/php54/link/conf\' \'--with-exec-dir=/usr/bin\' \'--with-layout=GNU\' \'--disable-debug\' \'--disable-rpath\' \'--without-pear\' \'--without-gdbm\' \'--with-pic\' \'--with-zlib\' \'--with-bz2\' \'--with-gettext\' \'--with-gmp\' \'--with-iconv\' \'--with-openssl\' \'--with-kerberos\' \'--with-mhash\' \'--with-readline\' \'--with-pcre-regex=/opt/alt/pcre/usr\' \'--with-libxml-dir=/opt/alt/libxml2/usr\' \'--with-curl=/opt/alt/curlssl/usr\' \'--enable-exif\' \'--enable-ftp\' \'--enable-magic-quotes\' \'--enable-shmop\' \'--enable-calendar\' \'--enable-xml\' \'--enable-force-cgi-redirect\' \'--enable-fastcgi\' \'--enable-pcntl\' \'--enable-bcmath=shared\' \'--enable-dba=shared\' \'--with-db4=/usr\' \'--enable-dbx=shared,/usr\' \'--enable-dom=shared\' \'--enable-fileinfo=shared\' \'--enable-intl=shared\' \'--enable-json=shared\' \'--enable-mbstring=shared\' \'--enable-mbregex\' \'--enable-pdo=shared\' \'--enable-phar=shared\' \'--enable-posix=shared\' \'--enable-soap=shared\' \'--enable-sockets=shared\' \'--enable-sqlite3=shared,/opt/alt/sqlite/usr\' \'--enable-sysvsem=shared\' \'--enable-sysvshm=shared\' \'--enable-sysvmsg=shared\' \'--enable-wddx=shared\' \'--enable-xmlreader=shared\' \'--enable-xmlwriter=shared\' \'--enable-zip=shared\' \'--with-gd=shared\' \'--enable-gd-native-ttf\' \'--with-jpeg-dir=/usr\' \'--with-freetype-dir=/usr\' \'--with-png-dir=/usr\' \'--with-xpm-dir=/usr\' \'--with-t1lib=/opt/alt/t1lib/usr\' \'--with-imap=shared\' \'--with-imap-ssl\' \'--with-xmlrpc=shared\' \'--with-ldap=shared\' \'--with-ldap-sasl\' \'--with-pgsql=shared\' \'--with-snmp=shared,/usr\' \'--enable-ucd-snmp-hack\' \'--with-xsl=shared,/usr\' \'--with-pdo-odbc=shared,unixODBC,/usr\' \'--with-pdo-pgsql=shared,/usr\' \'--with-pdo-sqlite=shared,/opt/alt/sqlite/usr\' \'--with-mssql=shared,/opt/alt/freetds/usr\' \'--with-interbase=shared,/usr\' \'--with-pdo-firebird=shared,/usr\' \'--with-pdo-dblib=shared,/opt/alt/freetds/usr\' \'--with-mcrypt=shared,/usr\' \'--with-tidy=shared,/usr\' \'--with-recode=shared,/usr\' \'--with-enchant=shared,/usr\' \'--with-pspell=shared\' \'--with-unixODBC=shared,/usr\' \'--with-icu-dir=/opt/alt/libicu/usr\' \'--with-sybase-ct=shared,/opt/alt/freetds/usr\'
display_errors
到0
, \'0\'
或\'Off\'
什么都不做error_reporting(0) 仍将显示错误mu-plugin (As suggested on How can I stop PHP notices from appearing in wordpress?).什么都没有发生,插件甚至没有加载<错误仍然不断出现wp-config.php, 但没有起作用。通知还在那里entirelly 然后把他们四处移动
wp-config.php
, 但警告坚持说它在第99行和第100行导致内部语法错误
wp-config.php
不会导致记录错误,这意味着文件未缓存display_errors 到false
, 0
, \'0\'
和\'Off\'
, 但不起作用