具体 5.8.2 Class 'finfo' 未找到
Concrete 5.8.2 Class 'finfo' not found
我已经搜索了网络和我的服务器我无法找到我的站点的 php.ini。我的网站出现以下错误。
Class 'finfo' not found
Details
G:\inetpub\wwwroot\landoll.com\concrete\vendor\league\flysystem\src\Adapter\Local>.php(311): Whoops\Exception\ErrorException->null
public function getMimetype($path)
{
$location = $this->applyPathPrefix($path);
$finfo = new Finfo(FILEINFO_MIME_TYPE); /*This is Line 311*/
$mimetype = $finfo->file($location);
if (in_array($mimetype, ['application/octet-stream', 'inode/x-empty'])) {
$mimetype = Util\MimeType::detectByFilename($location);
}
return ['path' => $path, 'type' => 'file', 'mimetype' => $mimetype];
}
finfo
是 PHP 扩展。
http://php.net/manual/en/class.finfo.php
根据您的虚拟主机,主机控制面板中可能有一个区域可以启用它。如果没有,您可能需要联系您的托管技术支持并请他们为您启用它。
我已经搜索了网络和我的服务器我无法找到我的站点的 php.ini。我的网站出现以下错误。
Class 'finfo' not found Details G:\inetpub\wwwroot\landoll.com\concrete\vendor\league\flysystem\src\Adapter\Local>.php(311): Whoops\Exception\ErrorException->null
public function getMimetype($path)
{
$location = $this->applyPathPrefix($path);
$finfo = new Finfo(FILEINFO_MIME_TYPE); /*This is Line 311*/
$mimetype = $finfo->file($location);
if (in_array($mimetype, ['application/octet-stream', 'inode/x-empty'])) {
$mimetype = Util\MimeType::detectByFilename($location);
}
return ['path' => $path, 'type' => 'file', 'mimetype' => $mimetype];
}
finfo
是 PHP 扩展。
http://php.net/manual/en/class.finfo.php
根据您的虚拟主机,主机控制面板中可能有一个区域可以启用它。如果没有,您可能需要联系您的托管技术支持并请他们为您启用它。