-
Notifications
You must be signed in to change notification settings - Fork 728
Call to a member function getStorage() on null #1256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The issue arises because the LfmPath class's constructor allows a null default for the Lfm dependency. This can leave the helper property unset, leading to the Call to a member function getStorage() on null error. To fix this, update the constructor in the UniSharp\LaravelFilemanager package as follows: Original Code Updated Code This enforces dependency injection of the Lfm object, ensuring the helper property is always set. Important Note After making this change, remember to clear the application cache and regenerate the autoload files: This should resolve the issue. |
thanks you, the problem has been solved. But I will wait for the next update to avoid any unexpected errors |
after do the update on package file it looks like above, is this how it should render? @vaneetjoshi @hollaweb |
mine is the same, but when put into real application it works fine @Raza9798 |
Okay great. |
Just released a new version that contains the fix by @jonnott . Please upgrade to |
@hollaweb Can you close the issue once you've upgraded and are happy it's resolved? Thanks (I don't have permissions) |
Bug after upgrade to Laravel 12 and filemanager 2.10
Specifications
The text was updated successfully, but these errors were encountered: