This repository has been archived by the owner on Nov 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Error when updating to Nova 2.7 - Trix was updated. #44
Comments
Having the same issue. The fix is to change line 106 in Froala.php from: |
Hi @sytheveenje, Yeap, that works as stated, but as I didn't dig in the Froala field code further, I don't know what implications may arise from that change. Still would suggest downgrading nova and wait for most people. Best, |
Yeah changing vendor packages directly is bad as they are not under version control. Once you push to live, it will break again :) Instead you could clone it, fix it and use that version instead. Or better yet, make a pull request |
I understand @chatzisnik. Didn't saw your fix in your post. I'll wait for the fix. |
Fiexed in 3.2.1 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When trying to upgrade to Nova 2.7 I got some errors on the Froala Field, related to the parameters of withFiles.
Since the froala field is extending the
\vendor\laravel\nova\src\Fields\Trix.php
field, you should be aware in the the most recent versions of Nova( tested with 2.7), the withFiles method has a $path parameter.Trix.php - withFiles function on 2.7
Trix.php - withFiles function on 2.5
Adding the parameter to the Froala.php 's withFiles method seems to work just fine locally.
For people that hit that issue, revert to a previous version of Nova until this is fixed.
The text was updated successfully, but these errors were encountered: