CMS Load and too many pages

Hey,

I have set up CMS Load with pagination a couple of times already.

Currently, though, I have a project where the pagination pages are not being calculated correctly: there should be 3 pages, but it shows 5.

It is like two pages are being duplicated and appended. I double-checked everything and everything is configured exactly like in another project where everything is working just fine.

Has this been an issue for somebody before, maybe, and there is an easy fix, hopefully?

Thank you.

Settings in Designer
dipuentes MT 2024-09-02 at 17.28.41

Display in Designer

Display on published page

Hey @Marc! I do not remember any issue like this, can you share a link?

@Support-Luis Yeah, it’s a bit weird! Here is the link: Webflow Ratgeber | Flow Experts

I also tested with the support script.

Can you share a read-only? Take a look at how mine loaded :thinking:

@Support-Luis woooot is going on?! :slight_smile:

Here is the read-only:
https://preview.webflow.com/preview/flowexperts-io?utm_medium=preview_link&utm_source=designer&utm_content=flowexperts-io&preview=5ae96d2137d9ce00c41a2893e5437fe7&pageId=65fb10f6412b427f2dd7f338&locale=en&workflow=preview

Sorry, I played around with it and had the element removed – I added/rebuild the component now again – same odd behaviour is back.

Hey @Marc! I’ve played around with the page a bit, there is no issue with the setup.

I just noticed that the script on the published page is

<script
  type="text/javascript"
  src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-cmsload@1/cmsload.js"
  class="_iub_cs_activate _iub_cs_activate-activated"
  data-iub-purposes="1,sh"
  data-cmp-info="2"
  async="false"
  data-cmp-ab="2"
></script>

instead of the usual

<!-- [Attributes by Finsweet] CMS Load -->
<script async src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-cmsload@1/cmsload.js"></script>

I believe this is added by iubenda which may be initiating the library twice, as I can replicate by preventing the load and manually triggering it twice (see video below)

Let me know what you think!

You are the hero! You found it! :raised_hands:

In hindsight, it’s clear again which part of the puzzle was messing it up. But scripting and script-execution sequences are slightly out of my comfort-zone, so I didn’t see it.

Thank you, huge amounts! :pray:

For future reference or others that might run into this bit of weird behavior: if you also use Iubenda for cookie blocking you can add:

data-cmp-ab="2"

to the script tag. This tells Iubenda that this script is harmless and doesn’t block it (and hence doesn’t reload it again, after accepting the cookies).

1 Like

Great to hear it was a simple fix! And thank you for sharing more info!

1 Like