WordPress.org

Ready to get started?Download WordPress

Forums

Store Locator Plus
Pagination in "Manage Locations" sections referencing incorrect path (11 posts)

  1. jmazza
    Member
    Posted 1 year ago #

    Hi there, great plug-in!

    I'm having an issue since moving my wordpress instillation to a new directory. As the title says, the pagination (when trying to scroll by page number only through locations) in the admin "manage locations" section is referencing an incorrect path [http://www.site.com/site/wp-admin]. The "next" and "previous page" buttons work fine however, referencing;[http://www.site.com/wp-admin].

    I'm not exactly sure where this URL path can be fixed, so any input you can provide is much appreciated!

    Thanks
    John

    http://wordpress.org/extend/plugins/store-locator-le/

  2. Charleston Software Associates
    Member
    Plugin Author

    Posted 1 year ago #

    The plugin pulls from the WordPress given path, I am using a simple WordPress "get directory" call. Make sure that you've updated the proper URL variables in tables if you moved the site location. You will likely find other things breaking along the way outside of the SLP plugins.

  3. jmazza
    Member
    Posted 1 year ago #

    I believe I updated correctly - it's referencing the correct URL in the wp_options table, row 3. Is there somewhere else I should be looking?

  4. jmazza
    Member
    Posted 1 year ago #

    It's referencing an incorrect relative path

    "www.sitename.com/sitename/wp-admin..."

    The pagination is trying to reference a folder within my root directory named the same as my URL, which is odd, because I never had my wordpress files stored in such a place.

  5. jmazza
    Member
    Posted 1 year ago #

    Here you can clearly see the difference between the numbered pagination broken links and the prev/next, which work correctly;

    <span class="pagination-links">
    <a href="/unitedstatespilatesassociation/wp-admin/admin.php?page=slp_manage_locations&start=100">2</a>
    <a href="/unitedstatespilatesassociation/wp-admin/admin.php?page=slp_manage_locations&start=200">3</a>
    <a href="/unitedstatespilatesassociation/wp-admin/admin.php?page=slp_manage_locations&start=300">4</a>
    <a href="/unitedstatespilatesassociation/wp-admin/admin.php?page=slp_manage_locations&start=400">5</a>
    <a href="/wp-admin/admin.php?page=slp_manage_locations&start=100">›</a></span>
  6. Charleston Software Associates
    Member
    Plugin Author

    Posted 1 year ago #

    Odd... I'm not seeing that but my server variables may be different. If you are comfortable with editing a PHP file in the plugin there is a method in storelocatorplus-adminui_class.php named "manage_lcoations_pagination" around line 548.

    Around line 596 replace the $_SERVER['PHP_SELF'] wit $_SERVER['SCRIPT_NAME'] and see if that helps.

    If you are not comfortable you can contact me at http://www.charlestonsw.com/mindset/contact-us/ to discuss other options.

  7. jmazza
    Member
    Posted 1 year ago #

    Hi! I gave that a try but still no luck. In the meantime I've just set it to show 1000 locations, which means no pagination needed (for me) but isn't ideal. If you have any other ideas I'd be happy to give them a go.

  8. Charleston Software Associates
    Member
    Plugin Author

    Posted 1 year ago #

    Contact me if you can provide admin login + FTP access so I can see this "in the wild". I cannot reproduce it on any of my servers and would need to do some on-site debugging.

  9. jmazza
    Member
    Posted 1 year ago #

    Sure, I will message you later tonight. Thank you so much!

  10. Charleston Software Associates
    Member
    Plugin Author

    Posted 1 year ago #

    There is a 3.8.13 pre-release (not tested yet so don't use on a production system).
    http://www.charlestonsw.com/?attachment_id=7221

    If this does not fix the problem go to General Settings and expand the Plugin Environment tab. Check off debugging. Go to manage locations.

    You should see several gray debugging boxes appear. Click on the first one and copy the 3 URLS listed.

    If you don't have a system you can easily test this pre-release version on, wait until 3.8.13 is formally released here on the WordPress site (it will show up in your admin panel as an available update) and do the above steps.

  11. amineoujda
    Member
    Posted 1 year ago #

    You can use the pagination in the result of the search plugin Store locator

    I use version 3.11.1

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic