jeudi 5 mai 2016

Intervention can't make image on Laravel 5

I have multiple projects on my local windows 10 dev PC. 3 of them use Laravel 5 and intervention. 2 of them have no problems. 1 does, meaning, on one of those projects intervention can't make images and I was wondering, if other dependencies might forbid it?

composer for the working:

"require": {
    "php": ">=5.5.9",
    "laravel/framework": "5.2.*",
    "intervention/image": "^2.3",
    "cviebrock/image-validator": "^2.0",
    "guzzlehttp/guzzle": "^6.2"
},
"require-dev": {
    "fzaninotto/faker": "~1.4",
    "mockery/mockery": "0.9.*",
    "phpunit/phpunit": "~4.0",
    "symfony/css-selector": "2.8.*|3.0.*",
    "symfony/dom-crawler": "2.8.*|3.0.*",
    "lavary/laravel-menu": "dev-master"
},

and for the non working project:

"require": {
    "laravel/framework": "5.2.*",
    "barryvdh/laravel-cors": "0.8.x@dev",
    "rocket-code/shopify": "~2.0",
    "pragmarx/firewall": "^1.0",
    "artisaninweb/laravel-soap": "0.2.*",
    "laravel/cashier": "~5.0",
    "pda/pheanstalk":"~3.0",
    "paypal/rest-api-sdk-php": "*",
    "guzzlehttp/guzzle":"6.*",
    "kozz/laravel-guzzle-provider": "~6.0",
    "hipchat/hipchat-php": ">=1.0.0",
    "sendgrid/sendgrid": "~3.2",
    "geoip/geoip":"^1.15",
    "jenssegers/mongodb": "^2.1",
    "stripe/stripe-php": "3.*",
    "laravel/socialite": "~2.0",
    "thujohn/twitter": "~2.0",
    "league/flysystem-aws-s3-v3": "~1.0",
    "sngrl/sphinxsearch": "dev-master",
    "laravelcollective/html": "~5.0",
    "pelago/emogrifier": "@dev",
    "intervention/image": "^2.3"
},
"require-dev": {
    "phpunit/phpunit": "5.3.*",
    "php-imap/php-imap": "~2.0",
    "symfony/dom-crawler": "~3.0",
    "symfony/css-selector": "~3.0"
},

I configured them on both project the same. Tried with the same path: one the first one it works, on the second I get:

NotReadableException in Decoder.php line 25:
Unable to read image from path (D:\_path_to_image\image.png).

Any ideas what's messing it up?

PS: It works on production, but fails on my dev.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/24tbyzB
via IFTTT

Aucun commentaire:

Enregistrer un commentaire