menu
#2907678 file_exists(): open_basedir restriction in effect. File(/proc/cpuinfo) is not within the allowed path(s): (./)

Submitted by PocketMine-MP 3.9.5

General information

Version: 3.9.5
Git commit: f0539f48
Plugin involvement: None
Report date: 2019-10-10 02:42:35 +0000 UTC

System Information

PHP version: 7.2.19
Operating system: win
System banner: Windows NT LAPTOP-L5HDADQQ 10.0 build 17763 (Windows 10) AMD64

Error information

Message: file_exists(): open_basedir restriction in effect. File(/proc/cpuinfo) is not within the allowed path(s): (./)
File: src/pocketmine/utils/Utils
Line: #180
Error level: ErrorException
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
	 *
* @return UUID
*/
public static function getMachineUniqueId(string $extra = "") : UUID{
if(self::$serverUniqueId !== null and $extra === ""){
return self::$serverUniqueId;
}

$machine = php_uname("a");
$machine .= file_exists("/proc/cpuinfo") ? implode(preg_grep("/(model name|Processor|Serial)/", file("/proc/cpuinfo"))) : "";
$machine .= sys_get_temp_dir();
$machine .= $extra;
$os = Utils::getOS();
if($os === "win"){
@exec("ipconfig /ALL", $mac);
$mac = implode("\n", $mac);
if(preg_match_all("#Physical Address[. ]{1,}: ([0-9A-F\\-]{17})#", $mac, $matches)){
foreach($matches[1] as $i => $v){
if($v == "00-00-00-00-00-00"){
unset($matches[1][$i]);
#0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[110] file_exists(): open_basedir restriction in effect. File(/proc/cpuinfo) is not wi, string[101] phar://C:/Users/coole/Documents/plugins/Test_Server/PocketMine-MP.phar/src/pocke, integer 180, array[2])
#1 src/pocketmine/utils/Utils(180): file_exists(string[13] /proc/cpuinfo)
#2 src/pocketmine/Server(1676): pocketmine\utils\Utils::getMachineUniqueId(string[12] 0.0.0.019132)
#3 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[45] C:\Users\coole\Documents\plugins\Test_Server\, string[53] C:\Users\coole\Documents\plugins\Test_Server\plugins\)
#4 src/pocketmine/PocketMine(299): pocketmine\server()
#5 (1): require(string[100] phar://C:/Users/coole/Documents/plugins/Test_Server/PocketMine-MP.phar/src/pocke)

Loaded Plugins

  • Show

Server Settings

  • Show