Store Locator Plus® for WordPress › Forums › Store Locator Plus › ERR: Could not locate this address
- This topic has 8 replies, 3 voices, and was last updated 5 years, 9 months ago by Cici.
-
AuthorPosts
-
February 8, 2019 at 7:11 PM #58677jennifer4Participant
Hello I have a new client who wants me to troubleshoot this error on your plugin: “<span style=”caret-color: #454134; color: #454134; font-family: ‘Helvetica Neue’, Helvetica, Arial, sans-serif;”>Could not locate this address. Please try a different location.”</span>
Console shows only 1 error:
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (woo-memorable.css.map, line 0)
SLP <span style=”caret-color: #000000; color: #000000; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Oxygen-Sans, Ubuntu, Cantarell, ‘Helvetica Neue’, sans-serif; font-size: 13px; background-color: #f7fcfe;”>Version 5.0.3</span>
SLP Power Version 5.0.1
WordPress 5.0.3
February 9, 2019 at 5:59 PM #58687CiciKeymasterThe console error is showing their url with the WORD wordpress. Thats wrong
http://www.pomonapectin.com/wordpress/wp-json/store-locator-plus/v2/geocode/c54591d26325c3ca3f9e82d371265dfd/us/United%20States
The developer wrote this article about the json and REST API
https://www.storelocatorplus.com/address-lookup-failures-on-wpslp/
February 9, 2019 at 6:04 PM #58688CiciKeymasterIn other words:
There is no JSON listener (WordPress REST API) there.
February 9, 2019 at 6:25 PM #58691jennifer4Participantthat’s where they have installed their wordpress – in a subdirectory. I will check though and see if wp-json exists.
February 9, 2019 at 9:33 PM #58693CiciKeymasterThose sites that have installed WordPress in a subdirectory , somehow the REST API in WP is effected. Regular WordPress installs does not create the issue.
February 11, 2019 at 10:58 PM #58711Lance ClevelandKeymasterIf you have WP installed in a subdir AND are using permalinks (any setting other than “plain”) you MUST have the correct wp-json rewrite rule in your Apache or nginx config.
Most of the Codex examples predate the REST API and do not properly account for it when permalinks are enabled.
https://www.storelocatorplus.com/wordpress-subdirectory-installs-and-the-rest-api/February 13, 2019 at 2:24 PM #58743jennifer4ParticipantDo you have the apache .htaccess version of this command?
February 13, 2019 at 2:36 PM #58744jennifer4ParticipantNever mind – figured it out. You should put this in documentation:
<span style=”caret-color: #5a5b5c; color: #5a5b5c; font-family: ‘Open Sans’, ‘Helvetica Neue’, Helvetica, Arial, sans-serif; font-size: 14px; background-color: rgba(0, 0, 0, 0.0196078);”>RewriteRule ^/wordpress/wp-json/(.*?)$ /wordpress/index.php?rest_route=/$1 [R]</span>
February 13, 2019 at 3:32 PM #58747CiciKeymasterThat solution seems to appear also in WP Stack exchange. Since it isnt SLP specific we can provide the info under our Helpful hints in docs, but since Lance has all our sites using Nginx and not Apache configuration , we cannot verify nor deny any solution when it comes to Apache and WP.
🙁
If you comment on the Lance bio or his article above link we will be sure to include your solution and kudos for finding the solution. Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.