• Resolved macwinson

    (@macwinson)


    Hi Roland,
    When I use the shortcode [pdb_list search=true] without the “sort=true” attribute (or similar shortcode attributes configuration that generates a list of records results without “sort=true”) the pagination acts in strange ways: clicking on Next> button or number will keep the wheel spinning forever (not going anywhere). But if I add “sort=true” to the same shortcode, the pagination works fine.
    This happens particularly when Advanced Settings -> “Enable AJAX Search Functionality” is ON. But if I disabled it, the pagination using a shortcode without “sort=true” works again.
    I tried this on several environments and with the latest plugin version: 1.9.6.5

    Thanks!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Thanks for the report, I tested this and I’m not seeing it here.

    This is most likely an issue with a javascript conflict with another plugin or your theme. Open your Browser Developer Tools to the “console” tab and look for any javascript errors that happen when using pagination (with AJAX on, of course).

    Thread Starter macwinson

    (@macwinson)

    Hi Roland, thanks for your reply!!
    I disabled all plugins, except PDb, switched theme to Twenty Twenty, with AJAX on, and the issue is the same. In the console I get:

    POST https://localhost/testsite/wp-admin/admin-ajax.php 400 (Bad Request)
    jquery.js?ver=1.12.4-wp:4

    Participants Database JS error status:error error:Bad Request
    list-filter.min.js?ver=1.7.4:7

    I tried with Twenty Fifteen theme and I get the same.
    But, if I disable “AJAX Search Functionality” all works fine.

    Note: maybe is an issue related with localhost testing environment? I’m testing right now in a website that is online… and seems to be fine without the “sort=true” and AJAX on…

    • This reply was modified 4 years, 5 months ago by macwinson.
    Plugin Author xnau webdesign

    (@xnau)

    I don’t know exactly what caused the problem there, but a 400 error on a AJAX request is typically a server configuration issue. It can be caused by a firewall configuration, for instance. It indicates that something in the request was blocked by the server.

    It’s preferable to solve the problem rather than avoid it by turning AJAX off.

    Thread Starter macwinson

    (@macwinson)

    Indeed, is something related with the server configuration, in this case with XAMPP. It’s not a plug-in issue.
    Something to take into account if someone is using PDb with XAMPP and starts to run into this kind of pagination issues. So, this post may be useful as an advice for XAMPP environment. If some user has the solution for this, please share it here.

    Thanks Roland for your excellent plug-in and the high-quality support!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[pdb_list search=true sort=true pagination issue ?’ is closed to new replies.