- February 8, 2019 at 7:11 PM #58677
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.3February 9, 2019 at 5:59 PM #58687
The console error is showing their url with the WORD wordpress. Thats wrong
The developer wrote this article about the json and REST APIFebruary 9, 2019 at 6:04 PM #58688
In other words:
There is no JSON listener (WordPress REST API) there.February 9, 2019 at 6:25 PM #58691
that’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 #58693
Those 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 #58711
If 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 #58743
Do you have the apache .htaccess version of this command?February 13, 2019 at 2:36 PM #58744
Never 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 #58747
That 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!
You must be logged in to reply to this topic.