无法在'加载魔术数据库.Laravel 4

编程入门 行业动态 更新时间:2024-10-26 01:30:33
本文介绍了无法在'加载魔术数据库.Laravel 4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 $rules = array('title' => 'required', 'thumbnail' => 'image|size:500'); $inputs = array('title' => $this->title, 'thumbnail' => $this->thumbnail,); $validator = Validator::make($inputs, $rules); if ($validator->fails()) { }

如果我删除'thumbnail'正常,但是如果存在,则在执行 $ validator-&fa; fails()

If I remove the 'thumbnail' it's working, but if it's there, it crashes when it does the $validator->fails()

推荐答案

无法加载魔术数据库消息是PHP错误消息,与Laravel不相关.

The Failed to load magic database message is a PHP error message, not related to Laravel.

您的libmagic安装有问题,或者根本没有安装.

There's a problem with your libmagic installation, or it is not installed at all.

php/manual/en/ref.fileinfo.php

PHP Warning: finfo::finfo(): Failed to load magic database at '/etc/magic' PHP Warning: finfo::file(): The invalid fileinfo object These errors can be rectified by copying your magic database (depending on your distro, this file can be anywhere, on debian it's in /usr/share/file/magic) to /etc/magic.mime libmagic automatically appends the .mime to the end of the filename, so PHP incorrectly reports the path it was looking for. The same applies for: PHP Warning: finfo::finfo(): Failed to load magic database at '/etc/magic.mime' Unfortunately users will have to call the magic file /etc/magic.mime.mime in this case.

更多推荐

无法在'加载魔术数据库.Laravel 4

本文发布于:2023-11-12 07:14:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580856.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:魔术   加载   数据库   amp   Laravel

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!