-
Notifications
You must be signed in to change notification settings - Fork 13
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
Warning: mkdir(): No such file or directory #6
Comments
Workaround is to create the acf-json directory manually in /resources/assets |
Maybe change
mkdir($path, 0777, true);
|
In the latest Sage they flattened the // This is Sage 10
$path = get_stylesheet_directory() . '/resources/assets/acf-json'; to // This is Sage 10
$path = get_stylesheet_directory() . '/resources/acf-json'; |
This is a great. We should probably add a conditional to check the existence of the first directory and fall back to the second. I'll take a stab at this unless someone here wants to make a PR! |
Seems to problem with v1.5 with a fresh Roots set up. On saving my first ACF group I get this error:
Warning: mkdir(): No such file or directory in /srv/www/mysite.test/current/web/app/themes/mytheme/vendor/mwdelaney/sage-advanced-custom-fields/advanced-custom-fields.php on line 34
I have downgraded to v1.4 and I see no issues there.
The text was updated successfully, but these errors were encountered: