• Resolved samuelng527

    (@samuelng527)


    Hi,

    I have been using this plugin and working well for the last one year, but now the pdf is not showing, instead its display a link. Please advise, many thanks.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Slava Abakumov

    (@slaffik)

    Hello @samuelng527,

    Your site has a JS error that breaks rendering of the PDF embed.

    Take a look at what you have (you can see that in your browser DevTools > Console):

    Uncaught TypeError: $("div.gallery").quickPagination is not a function
        at HTMLDocument.<anonymous> (certification-in-fund-governance/:576:19)
        at j (jquery.js:2:27244)
        at Object.fireWith [as resolveWith] (jquery.js:2:28057)
        at Function.ready (jquery.js:2:29891)
        at HTMLDocument.J (jquery.js:2:30257)

    You will need to make sure that the library that defines the quickPagination() method is loaded on all pages where this code is used and initiated.

    Thread Starter samuelng527

    (@samuelng527)

    Hi @slaffik,

    May i know how to resolve this error?

    Plugin Author Slava Abakumov

    (@slaffik)

    There is a codesnipped added to either footer.php in your theme, or to a functions.php of your theme – that runs this code on each page load:

    $("div.gallery").quickPagination();

    And it doesn’t check whether the quickPagination() actually exists (so the library that defining this method is embedded on a page).

    Given that I see this commented out code in your page:

    <!--<script src="/js/jquery.quick.pagination.js"></script> -->

    I can assume that this jQuery plugin is no longer used on your site and you need to find where the $("div.gallery").quickPagination(); is added on a page and remove this particular line of code.

    Thread Starter samuelng527

    (@samuelng527)

    Hi @siaffik,

    Thank you so much for your help, i managed to found the code and deleted it and now it is working.

    Thank you once again.

    Plugin Author Slava Abakumov

    (@slaffik)

    That’s awesome, @samuelng527! Congratulations.

    I wonder, are you okay leaving us a review on the WP.org review page? That would help us a lot!

    cmauserdonte

    (@cmauserdonte)

    Good morning. having the same issue. Can you see what’s causing the issue?

    https://aspiraacademy.org/2023-2024-school-calendar-west-campus/

    cmauserdonte

    (@cmauserdonte)

    I haven’t received a reply yet.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PDF not showing , show link instead’ is closed to new replies.