Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    this seems to be related to your domain settings, which result in a JavaScript problem.
    The plugin works fine with the latest version of WordPress and also your jQuery files in other plugins or the theme are fine.

    However, what happens, is this:
    Your main domain for that site seems to be belgrefabrics.com (not .co.za), as all files are loaded from there. I assume that WordPress is also installed with that domain as the main domain (you can see that in the WordPress “General Settings”, I believe).

    Now, the link you provided is on the .co.za domain, however, all files are still loaded from .com. The DataTables library (which does the pagination) now tries to load a language file through JavaScript (with means of AJAX, i.e. a XMLHTTPRequest). This however fails, because the JavaScript (which was loaded from .co.za) does not have the rights to load a file from .com. This is a security principle in JavaScript, called same-origin policy (see this Wikipedia article for more). And as the library can not load that file, pagination is not working.

    You can confirm that for yourself by visiting https://belgrefabrics.com/suppliers/african-sketchbook/african-sketchbook-fine-arts-older-fabrics-price-list (which is the same as your URL from above, just with .com instead of .co.za). You will see, that pagination works here, although the page is the same.

    So, to actually fix this, you will need to change the way your domains are mapped. The easiest way would probably be to make the .co.za a permanent redirection to the .com domain.

    Regards,
    Tobias

    Thread Starter hollywooood

    (@hollywooood)

    Hey Tobias,

    You’re awesome dude! Really appreciate that explanation and the time it took you to write this. Thanks in a big way.

    Would you tell me how you were able to determine that the JQuery files were fine?

    Again, can’t thank you enough.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    well, basically I figured that the jQuery files are all ok, since everything works fine when accessing your site through the .com domain. No error messages come up, and neither Firebug for Firebox nor the Chrome Developer Tools show any problems.
    That does of course not mean that there are no bugs in the jQuery code, but at least everything is working.

    And when accessing the .co.za domain, I spotted the problem that I described above using the Chrome Developer Tools.

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Pagination Issue with in place.’ is closed to new replies.