Apache Test Port Script - BUG?
Posted by: live4therisk (---.dyn.optonline.net)
Date: June 19, 2017 09:40PM

Hey,

I have upgraded to WAMP 3.0.8, and when right clicking -> Tools > Test Port 80 Apache, it is broken.

I am getting the following errors:

Notice: Undefined variable: port in C:\wamp\scripts\testPort.php on line 18

This seems to have broke on the new update.

Just wanted to let you know if you weren't aware of it.

Options: ReplyQuote
Re: Apache Test Port Script - BUG?
Posted by: Otomatic (Moderator)
Date: June 20, 2017 10:43AM

Hi,

Thank you. Indeed, there is a bug in the file: wamp\scripts\testPort.php
Replace lines 8 to 16:
if(!empty($_SERVER['argv'][2])) {
	if($_SERVER['argv'][2] == $c_mysqlService || $_SERVER['argv'][2] == $c_mariadbService) {
		$port = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : '3306';
		$only_process = true;
		$mysqlTest = true;
	}
}
else
	$port = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : '80';
by
if(!empty($_SERVER['argv'][2])) {
	if($_SERVER['argv'][2] == $c_mysqlService || $_SERVER['argv'][2] == $c_mariadbService) {
		$port = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : '3306';
		$only_process = true;
		$mysqlTest = true;
	}
	else
		$port = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : '80';
}

I'm going to create a new note: Wampserver 3: fixing bugs

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.