-
Notifications
You must be signed in to change notification settings - Fork 329
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
403 errors for kirki css and js files on localhost #1309
Comments
Did you use the function to update the path of the files? I saw that you placed KIRKI manually in the
|
Hey @AdsonCicilioti, thanks for your fast response! Of course that did the trick, totally overlooked it. Thanks! |
Reopening this one. |
I hate Windows... Can you please remove the filter you previously added and test if that last commit fixes your issue? If it does not, then please add the following in your functions.php file and paste here what the results in your screen are: add_action( 'wp', function() {
var_dump( 'Kirki Path: ' . Kirki::$path );
var_dump( 'Kirki URL: ' . Kirki::$url );
var_dump( 'Template Path: ' . get_template_directory() );
var_dump( 'Template URL: ' . get_template_directory_uri() );
var_dump( 'Stylesheet Path: ' . get_stylesheet_directory() );
var_dump( 'Stylesheet URL: ' . get_stylesheet_directory_uri() );
var_dump( 'ABSPATH: ' . ABSPATH );
var_dump( 'KIRKI_PLUGIN_FILE: ' . KIRKI_PLUGIN_FILE );
var_dump( 'plugin-dir-url: ' . plugin_dir_url( KIRKI_PLUGIN_FILE ) );
}); This should help me figure out what to do 👍 |
Hey @aristath, thanks! That error ocurred on one of my customers machines. I'm also on a mac and unable to recreate it. Let me send him the latest version of the theme and try to get his feedback. Best, |
OK, I was finally able to setup my dev VM, tested it, replicated the issue, found another bug, pushed a fix and now everything works fine on Windows localhosts when the plugin is embedded in a theme. 👍 Closing this one again, hopefully for the last time! |
You're the man! Thanks! |
Nice work @aristath!... Remember to update documentation on site! |
Issue description:
I'm getting 403 errors on a local machine (windows) using UwAMP with PHP7. I embedded kirki in the theme as mentioned here: https://aristath.github.io/kirki/docs/advanced/integration.html
Version used:
3.0.0-beta.1
Attachments:
The text was updated successfully, but these errors were encountered: