我正在尝试在运行Kali Linux的笔记本电脑上设置wordpress.一切正常,直到我安装wordpress和我正在使用的主题.我正试图在基岩上使用根圣人.但在完成安装过程后,我在管理员处收到通知:
Notice: Undefined index: host in /var/www/html/site/web/wp/wp-includes/theme.PHP on line 2937
Notice: Undefined index: host in /var/www/html/site/web/wp/wp-includes/theme.PHP on line 2937
Notice: Undefined index: host in /var/www/html/site/web/wp/wp-includes/theme.PHP on line 2999
Notice: Undefined index: host in /var/www/html/site/web/wp/wp-includes/theme.PHP on line 2999
在前端:
Notice: Undefined index: host in /var/www/html/site/web/wp/wp-includes/theme.PHP on line 2999
Notice: Undefined index: host in /var/www/html/site/web/wp/wp-includes/theme.PHP on line 2999
任何人都可以解释为什么我收到这些通知?我一定错过了一些东西但是我已经多次完成了指示,而且我没有想法.谢谢
解决方法:
你可以定义WP_HOME& wp-config.php中的WP_SITEURL
define('WP_HOME','http://localhost/project_folder_name');
define('WP_SITEURL','http://localhost/project_folder_name');