目前新版本对浏览器的识别有些兼容性问题,当浏览器名称含有中文时,会导致Wampserver无法正常启动。
问题表现
具体表现为启动时,报以下错误:
Tray Menu Manager
The configuration file contains a syntax error on line 381:
[EParseError] invalid section tag
或
Tray Menu Manager
The configuration file contains a syntax error on line 402:
[EParseError] invalid section tag
解决办法
目前,问题已反馈至开发人员,将在下个版本修复。在新版本发布前,我们提供了一个临时的解决办法。
1.下载修复脚本修复配置文件.bat
,放在Wampserver安装目录下(如:C:/wamp64
)
下载链接:https://wampserver.lanzouj.com/ilNnC23a9sng
修复配置文件.bat:
@echo off
cd /d "scripts"
if exist getInstalledBrowsers.php ren getInstalledBrowsers.php getInstalledBrowsers.php.bak
echo "Clear the browser list recorded by Wampserver"
echo "<?php $browser = array(); ?>" > ListBrowsers.txt
if exist "..\bin\php\php7.4.33\php.exe" (
"..\bin\php\php7.4.33\php" refresh.php
echo "Refresh configuration file successfully"
)
if exist "..\bin\php\php5.6.40\php.exe" (
"..\bin\php\php5.6.40\php" refresh.php
echo "Refresh configuration file successfully"
)
pause
2.双击运行 修复配置文件.bat
3.打开 Wampserver