Title: error when loading a pdf
Last modified: January 22, 2021

---

# error when loading a pdf

 *  Resolved [liberalcastilla](https://wordpress.org/support/users/liberalcastilla/)
 * (@liberalcastilla)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/error-when-loading-a-pdf/)
 * Hello good day.
    I get this error when loading a pdf: Setting up fake worker 
   failed: “Cannot read property ‘WorkerMessageHandler’ of undefined”. Do you know
   how I can fix it? Thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-when-loading-a-pdf%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [liberalcastilla](https://wordpress.org/support/users/liberalcastilla/)
 * (@liberalcastilla)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/error-when-loading-a-pdf/#post-13942492)
 * By the way, I use litespeed cache
 *  [PDFG Support](https://wordpress.org/support/users/wppdfsupport/)
 * (@wppdfsupport)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/error-when-loading-a-pdf/#post-13970646)
 * Hi [@liberalcastilla](https://wordpress.org/support/users/liberalcastilla/),
 * The Fake Worker error is due to a conflict with caching tools and the PDF Embedder
   scripts.
    - Make sure that you are using the most up to date version of the plugin.
    - While you do not need to exclude the PDF Embedder scripts from most caching
      tools, you do still need to make one settings adjustment in the caching plugin
      to disable inline or aggregation of JS files. Please see: [https://wp-pdf.com/kb/setting-up-fake-worker-failed-error-message/](https://wp-pdf.com/kb/setting-up-fake-worker-failed-error-message/).
      Your plugin settings may differ and it may be necessary to reach out to the
      caching plugin support if you can not find this setting.
    - Once the plugin has been updated, flush the cache to remove the old cached
      scripts. It may also be necessary to manually delete the minified script.
    - Finally, clear your browser cache and reload the page.
 *  Thread Starter [liberalcastilla](https://wordpress.org/support/users/liberalcastilla/)
 * (@liberalcastilla)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/error-when-loading-a-pdf/#post-13971218)
 * Thanks. Solved.
 *  [stlecho](https://wordpress.org/support/users/stlecho/)
 * (@stlecho)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-when-loading-a-pdf/#post-14346435)
 * I’m facing the same issue on [https://vbsdebrongooik.be/menu-middagmaal/](https://vbsdebrongooik.be/menu-middagmaal/).
 * I’ve checked the settings of the W3 Total Cache (v2.1.2) plugin and the “Remove
   query strings from static resources” option is deactivated.
 * Purging all caches does not solve the problem.
    -  This reply was modified 5 years, 1 month ago by [stlecho](https://wordpress.org/support/users/stlecho/).
 *  [PDFG Support](https://wordpress.org/support/users/wppdfsupport/)
 * (@wppdfsupport)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-when-loading-a-pdf/#post-14356591)
 * Hi [@stlecho](https://wordpress.org/support/users/stlecho/),
 * You may also need to explicitly exclude the PDF Embedder scripts from the W3 
   Total Cache to prevent them from being compiled as well as remove the query strings.
   [https://wp-pdf.com/kb/setting-up-fake-worker-failed-error-message/](https://wp-pdf.com/kb/setting-up-fake-worker-failed-error-message/)
 *  [stlecho](https://wordpress.org/support/users/stlecho/)
 * (@stlecho)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/error-when-loading-a-pdf/#post-14845267)
 * It seems that in the free version of W3 Total Cache, I do not have this option:“
   W3 Total Cache > Browser Cache > Remove Query Strings From Static Resources”.
   I can only enable or disable the Browser Cache.
 *  [PDFG Support](https://wordpress.org/support/users/wppdfsupport/)
 * (@wppdfsupport)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/error-when-loading-a-pdf/#post-14859082)
 * Hi [@stlecho](https://wordpress.org/support/users/stlecho/),
 * I have the free version of W3 Total Cache installed on a text environment—version
   2.1.8. Under the Browser Cache » **General settings**, the Remove Query Strings
   from Static Resources is the 9th checkbox on that section.

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

The topic ‘error when loading a pdf’ is closed to new replies.

 * ![](https://ps.w.org/pdf-embedder/assets/icon.svg?rev=3227003)
 * [PDF Embedder](https://wordpress.org/plugins/pdf-embedder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pdf-embedder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pdf-embedder/)
 * [Active Topics](https://wordpress.org/support/plugin/pdf-embedder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pdf-embedder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pdf-embedder/reviews/)

## Tags

 * [caching](https://wordpress.org/support/topic-tag/caching/)

 * 7 replies
 * 3 participants
 * Last reply from: [PDFG Support](https://wordpress.org/support/users/wppdfsupport/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/error-when-loading-a-pdf/#post-14859082)
 * Status: resolved