• Resolved Tilo

    (@netsales)


    Hello,

    I use the DIVI Theme with WP-Optimize and PDF-Embedder PlugIn.

    The PDF viewer brings the error message
    “Setting up fake worker failed: “Cannot load script at: https://kuhstall-kleinwalsertal.at/wp-content/plugins/pdf-embedder/assets/js/pdfjs/pdf.min.js.pagespeed.ce.JWXIrGgm2e.worker.js”.

    If i deactivated the JS minify it will be all fine.
    Also if I enable and exclude JS from prosessing
    /wp-content/plugins/pdf-embedder/assets/js/pdfemb.min.js
    /wp-content/plugins/pdf-embedder/assets/js/pdfjs/pdf.js
    /wp-content/plugins/pdf-embedder/assets/js/pdfjs/pdf.min.js
    /wp-content/plugins/pdf-embedder/assets/js/pdfjs/pdf.worker.js
    /wp-content/plugins/pdf-embedder/assets/js/pdfjs/pdf.worker.min.js
    will not work.

    What can I do?

    Thanks…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support vupdraft

    (@vupdraft)

    By default, DIVI minimises. Can you ensure that you have turned off the minification in DIVI is turned off if you are using the minfication in WPO

    Thread Starter Tilo

    (@netsales)

    Hello,
    I have deactivated all Divi Performance Settings, looks like

    And enabled the WP-Optimize JS Minimize. That brings the message “Setting up fake worker failed: “Cannot load script at: https://kuhstall-kleinwalsertal.at/wp-content/plugins/pdf-embedder/assets/js/pdfjs/pdf.min.js.pagespeed.ce.JWXIrGgm2e.worker.js”.” at https://kuhstall-kleinwalsertal.at/getraenke-und-speisekarte/

    I am grateful for every solution…

    Hello Tilo,

    It seems that the issue you’re facing with the PDF Embedder plugin when minification is active in WP-Optimize could be related to the JavaScript files necessary for the PDF viewer being incorrectly processed by the minification feature.

    As you’ve already tried disabling the minification for specific JavaScript files without success, I recommend that you add an exclusion for the specific script URL that’s causing the issue in the WP-Optimize minification settings. Here’s how you can do it:

    1. Go to your WP-Optimize settings in the WordPress admin panel.
    2. Navigate to the Minify tab.
    3. In the Exclude scripts section, add the full URL of the script causing the error:
      /wp-content/plugins/pdf-embedder/assets/js/pdfjs/pdf.min.js

    This should help WP-Optimize to ignore this script during the minification process, potentially resolving the error you’re encountering. After making this change, clear your cache and test the functionality again.

    If the issue persists, please don’t hesitate to reach back out for further assistance.

    • This reply was modified 10 months, 1 week ago by wpmansour.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error worker failed’ is closed to new replies.