Voyager: Cannot Crop Image on new installation

Created on 15 Nov 2017  路  9Comments  路  Source: the-control-group/voyager

  • Laravel Version: 5.5.21
  • Voyager Version: 1.0.7
  • PHP Version: 7.1.7
  • Database Driver & Version: mysql

Description:

On a new installation of Laravel and Voyager, I cannot crop images; however, my other installation 2 months before, cropping was fine.

Steps To Reproduce:

New installation
cannotcrop-voyager-media

possible bug

Most helpful comment

I am facing the same issue on v1.0.10, I did what @fletch3555 mentioned and the problem persist.

I've found a turnaround by manually copy&paste the content from https://github.com/fengyuanchen/cropperjs/blob/master/dist/cropper.min.js at the begining of the public/vendor/tcg/voyager/assets/js/app.js

imagen

Maybe app.js is getting corrupted?

All 9 comments

Same here. Also I want to add this error in console:

app.js:42 Uncaught ReferenceError: Cropper is not defined
at HTMLDivElement. (app.js:42)
at HTMLDivElement.dispatch (app.js:24)
at HTMLDivElement.m.handle (app.js:24)
at Object.trigger (app.js:24)
at HTMLDivElement. (app.js:24)
at Function.each (app.js:14)
at ye.fn.init.each (app.js:14)
at ye.fn.init.trigger (app.js:24)
at HTMLDivElement. (app.js:85)
at HTMLDivElement.r (app.js:14)

Can you guys try to force republish the voyager assets (specifically app.js)? Should be something to the effect of artisan vendor:publish --tag="voyager_assets" --force. Also, please clear your browser cache to make sure it's not cached somewhere.

I have republished and cancelled the cache without success.

I have the same issue!
Voyager v1.0.7
Laravel 5.5 (latest)
php 7.0

same problem:
ReferenceError: Cropper is not defined app.js:42:12284

new install today v1.09
using server.php

On my app ( v1.0.7 ) it doesn't work since i had install this version of voyager, it is probably some bug.

I am facing the same issue on v1.0.10, I did what @fletch3555 mentioned and the problem persist.

I've found a turnaround by manually copy&paste the content from https://github.com/fengyuanchen/cropperjs/blob/master/dist/cropper.min.js at the begining of the public/vendor/tcg/voyager/assets/js/app.js

imagen

Maybe app.js is getting corrupted?

Same problem as well on fresh install !

efs

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rayqiri picture rayqiri  路  3Comments

duongsieu picture duongsieu  路  3Comments

vaggelis2018 picture vaggelis2018  路  3Comments

iwasherefirst2 picture iwasherefirst2  路  3Comments

MikadoInfo picture MikadoInfo  路  3Comments