使用未定义的常量 REQUEST_URI - 在第 73 行的functions.php 中假定为“REQUEST_URI" [英] Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' in functions.php on line 73

查看:37
本文介绍了使用未定义的常量 REQUEST_URI - 在第 73 行的functions.php 中假定为“REQUEST_URI"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将我的网站移到了新服务器上,我的数据库已完美配置,但我不断收到此错误并且无法访问我的 wp-admin :

I recently moved my website into a new server , my database is perfectly configured but i keep getting this error and can't access my wp-admin :

未定义常量 REQUEST_URI 的使用 - 假定为REQUEST_URI"/www/docs/wordpress/wp-content/themes/twentyfifteen/functions.php 上第 73 行

Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' in /www/docs/wordpress/wp-content/themes/twentyfifteen/functions.php on line 73

我在每个主题甚至禁用所有插件的情况下都会遇到此错误.

I get this error with every theme and even with all my plugins disabled .

推荐答案

$path = $_SERVER[‘HTTP_HOST’] . $_SERVER[REQUEST_URI];

$path = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

这篇关于使用未定义的常量 REQUEST_URI - 在第 73 行的functions.php 中假定为“REQUEST_URI"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆