Closed Omicron7 closed 12 years ago
I'm installing a windows VM with wordpress to try to get this figured out. Information that would help solve this would be:
__FILE__
for address-field.phpwp: 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"
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.
let me try it quickly ....
yup much better now.
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.
Original issue was described in #2:
from @michapixel