admin管理员组

文章数量:1122832

I'm creating a new WordPress site but I'm hitting a WSoD when trying to access wp-admin. The only error present in all of the logs is PHP Warning: Undefined array key "VirtualHostSubMenu" in C:\wamp64\www\index.php on line 52 and is present in the PHP logs. I have checked the httpd syntax and all the present logs. I haven't modified the index.php file at all. It is exactly as I recieved it in the WordPress.zip I received when I downloaded it this morning.

What should I do?

I'm creating a new WordPress site but I'm hitting a WSoD when trying to access wp-admin. The only error present in all of the logs is PHP Warning: Undefined array key "VirtualHostSubMenu" in C:\wamp64\www\index.php on line 52 and is present in the PHP logs. I have checked the httpd syntax and all the present logs. I haven't modified the index.php file at all. It is exactly as I recieved it in the WordPress.zip I received when I downloaded it this morning.

What should I do?

Share Improve this question asked Jan 9, 2024 at 20:57 ElijahElijah 1
Add a comment  | 

1 Answer 1

Reset to default 0

I managed to resolve this by enabling the 'VirtualHostSubMenu' parameter in add_vhost.php file in the 'www' folder:

$wampConf['VirtualHostSubMenu'] : "on";

本文标签: errorsPHP Warning Undefined array key quotVirtualHostSubMenuquot in indexphp