• I have an issue with displaying the correct number of items per page. It applies to the front as well as the administration panel. The problem also occurs with the number of collections. No matter how many elements are on the page, the message is always the same – displaying 1 of 1.

    Is there anything I can do in this case?

    Screenshot of the issue:

    https://ibb.co/ByV0Rqt

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mateus Machado Luna

    (@wetah)

    Hi @jagodapajka!

    That is a strange behavior. Would you have a public link of this list for me to take a look at the requests being made?

    Thread Starter jagodapajka

    (@jagodapajka)

    The link is private. I can give you more details that will allow you to investigate further. I tested the plugin on two separate sites and both have the same error. My wordpress version is 6.2.2. There are no errors in the console. I am also attaching a screenshot of what it looks like in the admin panel:

    https://ibb.co/tbbGJBq

    Plugin Author Mateus Machado Luna

    (@wetah)

    Uhmm ok, I’m gonna need your help to debug this a bit. I need to check the network requests in the browser, at the moment where the items list is loaded. You can have general instructions for how to obtain this here:

    https://tainacan.github.io/tainacan-wiki/#/faq?id=how-do-i-see-network-or-browser-console-errors

    What I need is in the Network tab. The Request will probably be named /items and in the “Headers” inner tab, in the “Response headers”:

    https://tempfile.io/en/WkvDB5ZqJ9xSQdU/preview

    Please take a look at the result in the x-wp-total field. What does appear in there?

    Thread Starter jagodapajka

    (@jagodapajka)

    I checked what you asked for: X-Wp-Total: 1. I checked it on the front-end and from the admin panel. It is the same in both cases. I attach a screenshot:

    https://ibb.co/1ZJRt8H

    Plugin Author Mateus Machado Luna

    (@wetah)

    @jagodapajka definitely there is something wrong there… that information is the one that the UI gets to show you the total data and it comes from the WordPress JSON API. Are you using any search or database-related plugin?

    Could you show us the results of your System Report screen? You can check it in the submenu “Tainacan” -> “System Diagnostic”. And maybe also send us also the “WordPress” -> “Tools” -> “Diagnosis” so we can take a look…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Wrong number of items per page’ is closed to new replies.