Store Locator Plus for WordPress Forums Store Locator Plus ERR: Could not locate this address

This topic contains 8 replies, has 3 voices, and was last updated by  Cici 3 days, 11 hours ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #58677

    jennifer4
    Participant

    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

    http://www.pomonapectin.com/store-locator/

    #58687

    Cici
    Keymaster

    The 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/

    #58688

    Cici
    Keymaster

    In other words:

    There is no JSON listener (WordPress REST API) there.

    http://www.pomonapectin.com/wordpress/wp-json/

    #58691

    jennifer4
    Participant

    that’s where they have installed their wordpress – in a subdirectory. I will check though and see if wp-json exists.

    #58693

    Cici
    Keymaster

    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.

    #58711

    Lance Cleveland
    Keymaster

    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/

    #58743

    jennifer4
    Participant

    Do you have the apache .htaccess version of this command?

    #58744

    jennifer4
    Participant

    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>

    #58747

    Cici
    Keymaster

    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!

     

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.