• Resolved daivernon

    (@daivernon)


    How can i downgrade the plugin to his previous version ?
    With last update, all PDF are not readable with error :

    Uncaught IndexSizeError: Failed to execute ‘getImageData’ on ‘CanvasRenderingContext2D’: The source width is 0. at e (pdfemb.min.js:1:12736)

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

    (@slaffik)

    Hey @daivernon,

    Could you please let me know the URL where you see this issue? Also, does your PDF embed live inside a tab/accordion/modal/slider, or is directly visible on load?

    I’m working on 5.0.1 right now that I wanted to release today, so finding your circumstances to fix them is important for me.

    Based on my initial analysis of the error you provided, it looks like this is a caching issue. Could you try any of these actions:

    1. Purge site cache and any CDN cache for /wp-content/plugins/pdf-embedder/assets/js/pdfemb*.js
    2. Temporarily disable JS minify/combine in the optimizer/caching plugin and hard-reload.

    Meanwhile, you can download the previous version on this page: https://wordpress.org/plugins/pdf-embedder/advanced/#:~:text=and%20educational%20purposes.-,Previous%20Versions,-Previous%20versions%20of (just change the dropdown value to 4.9.3).

    Thanks!

    Thread Starter daivernon

    (@daivernon)

    Sorry, I can’t provide a public URL because all affected PDFs are hosted on a private intranet website (login/password protected).

    However, your reply helped me investigate further on the SiteGround Speed Optimizer side.

    I first tried:

    • disabling all minify/combine options,
    • purging all caches,

    but the issue was still present.

    The problem only disappeared when I completely disabled the optimization plugin.

    After more testing, I found the specific conflicting option (sorry, my interface is in French):
    “Supprimer les chaînes de requête des ressources statiques
    Supprimez les chaînes de requête de version de vos ressources statiques, ce qui améliore la mise en cache de ces ressources.”

    I tjhink it could be translated as : “Remove query strings from static resources”
    (Description: removes version query strings from static assets to improve caching.)

    As soon as I disabled this option, the conflict was resolved and PDFs became readable again.

    • This reply was modified 2 weeks, 3 days ago by daivernon.
    Plugin Author Slava Abakumov

    (@slaffik)

    Great, thanks, so it is caching/optimizations.

    Clearing browse cache or opening the DevTools > Network and making sure “Disable cache” is enable and reloading the page should also fix.

    The files are in the plugin have been changed, but the server (or your CDN provider) still returned the old version from 4.9.3. This mismatch resulted in the error you saw.

    Making sure to clear the cache for the pdf.min.js and pdfemb.min.js files should do the trick.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.