Skip to content

[v5] Asset method "mediaDir" does not exist #7238

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

Closed
mlthrk opened this issue May 23, 2025 · 0 comments · Fixed by #7241
Closed

[v5] Asset method "mediaDir" does not exist #7238

mlthrk opened this issue May 23, 2025 · 0 comments · Fixed by #7241
Milestone

Comments

@mlthrk
Copy link

mlthrk commented May 23, 2025

Description

File modifications on Assets result in a BadMethodCallException:
The method: "mediaDir" does not exist

To reproduce

if($asset = asset('path/to/asset')):
    echo $asset->thumb([
        'width'  => 300
    ])->html();
endif;

Your setup

Kirby Version
kirby-5.0.0-rc.1

@bastianallgeier bastianallgeier added this to the 5.0.0 milestone May 23, 2025
@bastianallgeier bastianallgeier linked a pull request May 23, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants