doushi1510 2015-08-03 13:57
浏览 31

在laravel 4中找不到“图像”类

I downloaded a website developed on laravel4 on my system and runing it on my localhost . Some of the pages are not working .

When I am trying to upload an Image . following error is occurring.

Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN)
HELP
Class 'Image' not found

So I googled and got to know that I will have to add the intervention/image in my coomposer.json file i changed the code of json array from

"require": {
        "laravel/framework": "4.2.*",
        "intervention/image": "1*"
    },

to

"require": {
        "laravel/framework": "4.2.*",
        "intervention/image": ""2.3.0""
    },

Then I did composer update and I am getting following error

Any leads ??

C:\Users\User\Desktop\ideconnect>composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for intervention/image 2.3.0 -> satisfiable by interv
ention/image[2.3.0].
    - intervention/image 2.3.0 requires ext-fileinfo * -> the requested PHP exte
nsion fileinfo is missing from your system.

Thanks

  • 写回答

1条回答 默认 最新

  • dsirr48088 2015-08-03 14:07
    关注

    The error you're getting is fairly clear:

    the requested PHP extension fileinfo is missing from your system.

    This means that the package you are trying to install relies on a PHP extension that your specific PHP installation does not have. This is fixable, but might be specific to your environment.

    The first thing to do would be to check your php.ini and see if the extension is simply commented out. If you are using Windows, it might look like this inside php.ini:

    ;extension=php_fileinfo.dll
    

    you should uncomment it like so:

    extension=php_fileinfo.dll
    

    After doing this you will need to restart your webserver.

    If that doesn't work, you will need to look for more info in the PHP manual: http://php.net/manual/en/fileinfo.installation.php

    评论

报告相同问题?

悬赏问题

  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突