Skip to content
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

CSS/JS path error on windows #8

Open
eddts opened this issue Aug 10, 2012 · 2 comments
Open

CSS/JS path error on windows #8

eddts opened this issue Aug 10, 2012 · 2 comments

Comments

@eddts
Copy link

eddts commented Aug 10, 2012

Hi there,

First of all thanks for making a great plugin. Just having a bit of an issue with the paths of the css and js files on the ACF editing screen. The add-on itself loads fine and I can add and edit address fields, but the generated path for the script and css files is as follows:

http://localhost:13246/C:/Project/SOC/trunk/wp-content/themes/servicedofficecompany/external/acf-address-field/address-field.js

Obviously that results in a 404 and so none of the configuration stuff works. I'm not sure if it's because I'm running it on windows via web matrix, otherwise I would assume other people would have run into this, but i guess they're all running Apache?!

I saw in version 1.01 you said you fixed a pathing issue so i was hoping it was this, but it still doesn't seem to be working.

Any guidance would be much appreciated - if you need more details let me know.

Many Thanks

@Omicron7
Copy link
Member

I'll look into it again when I get a chance. Currently this code works as a plugin or copied into other plugins or themes, hence the need for some custom path and url processing. I'd like to get it switched to work only as a WordPress plugin so I can drop all the custom stuff and rely on WordPress builtin code.

@ryanurban
Copy link

Not completely sure, as I'm not as familiar with a non-Apache setup, but wondering if maybe my pull request (#15) and latest update from base_dir to plugin_url() might work this out and take it that extra step to make it a WordPress plugin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants