Comments (6)
I'm installing a windows VM with wordpress to try to get this figured out.
Information that would help solve this would be:
- PHP Version.
- WordPress version.
- Values of:
- ABSPATH
- ACF_Address_Field::singleton()->base_dir
- ACF_Address_Field::singleton()->base_uri_rel
- if possible value of
__FILE__
for address-field.php
from acf-address-field.
wp: 3.3.2
php: 5.3.9
ABSPATH: "D:\wamp\www\wordpress_test/"
base_dir: "D:\wamp\www\wordpress_test\wp-content\plugins\advanced-custom-fields-address-field-add-on"
base_uri_rel: "/D:/wamp/www/wordpress_test/wp-content/plugins/advanced-custom-fields-address-field-add-on"
FILE: "D:\wamp\www\wordpress_test\wp-content\plugins\advanced-custom-fields-address-field-add-on\address-field.php"
from acf-address-field.
Ahh, I see the issue. WordPress is adding a trailing slash to the ABSPATH that I'm not stripping off when doing string comparisons. Changing line 99 from
$root = array_pop( explode( DIRECTORY_SEPARATOR, rtrim( ABSPATH, DIRECTORY_SEPARATOR ) ) );
to
$root = array_pop( explode( DIRECTORY_SEPARATOR, rtrim( ABSPATH, '/' ) ) );
fixed it for my Windows VM.
from acf-address-field.
let me try it quickly ....
from acf-address-field.
yup much better now.
from acf-address-field.
ok, I'll get that merged into the development branch, it might be a bit before I can get a new version pushed to the WordPress plugin repo.
from acf-address-field.
Related Issues (15)
- Seems to disable the repopulating of fields HOT 3
- No information entered should = no information returned
- Options bug with fix HOT 1
- Fatal error: Internal Zend error HOT 3
- Broken Drag and Drop HOT 1
- address used to be array, now coming back as strings
- ACF v4.0 is out, plugin needs refactoring HOT 2
- Nothing happens with ACF and acf-address-field activate.. HOT 1
- css and js files doesn't seem to load HOT 13
- Retrieve individual fields from the group HOT 15
- Feature request - Microdata HOT 1
- Use with Google Maps
- CSS/JS path error on windows HOT 2
- Drag and Drop fields don't work in Repeater
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acf-address-field.