Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    There is a redirect on the admin.ajax.php.

    This is the url the ajax request is made to, and when you open it in your browser you are taken to the homepage. https://psyhealth.co.uk/new2016/wp-admin/admin-ajax.php?action=store_search&lat=55.378051&lng=-3.43597299999999&max_results=2&radius=500&autoload=1

    If you have any security plugins running, then try and disable them for a second to see if that makes a difference. Or just look for an option that would protect the ‘wp-admin’ folder and disable it.

    Also check the .htaccess for any code that points to a redirect from the ‘wp-admin’, and as a last resort you can ask your host why access to the that folder is redirected.

    Thread Starter grahamfoster

    (@grahamfoster)

    Thanks for the quick response.

    Since my last post I have taken the site live, but the problem is still occurring. So I wanted to clarify the structure of the folders on the server, as this may be causing the redirect you mentioned.

    My WordPress site is in a separate folder from the root directory (the hosting doesn’t allow WordPress easy installs in the root directory).

    So my WordPress Address is set to the folder that my WordPress site is in (https://psyhealth.co.uk/new2016), and my Site Address is set to the home directory (https://psyhealth.co.uk).

    I then copied the htaccess and index.php files to the root directory.

    The htaccess code is:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Would this structure etc be effecting the plugin?

    I don’t have any security plugins running by the way.

    Thread Starter grahamfoster

    (@grahamfoster)

    Oh yes, and the page with the map is now here:

    https://psyhealth.co.uk/client-area/

    And to recap the issues:

    1. On a Mac with Chrome, the results display 2 locations: the same location repeated.
    2. On an iPhone 5 and Windows 8.1 running IE11, it searches for the locations but then displays no content.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    When I checked the https://psyhealth.co.uk/client-area/ an hour ago it still redirected the ajax request to the homepage, I guess you found why this happend? At least I do see 1 result now. Where should I search for if I want to see more? ( assuming you already added more )

    I notice the font color is set to white for some of the text labels. You can fix this by adding to the style.css in the theme folder.

    #wpsl-search-wrap label {
       color: #000 !important;
    }

    Where you logged in when you check it in Chrome? Maybe it had something to do with you only being allowed to access the admin-ajax.php when you where loggedin?

    Thread Starter grahamfoster

    (@grahamfoster)

    Thanks for all the prompt help / pointers Tijmen, it all seems to be working fine.

    Great plugin!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP Store Locator shows no results mobile’ is closed to new replies.