• Resolved The-Dude

    (@the-dude-1)


    Hi,

    i’m facing a “small” problem and so far everything points to your plugin being the cause.

    My hoster informed me that there is a web server (Apache) process that runs in a loop and accesses the same files over and over again.

    Some JPGs and then this:
    …/wp-content/plugins/loco-translate/src/compat/WP_Service_Workers.php (does not exist)

    I’ve already contacted the developer of the loco translate plugin and he said, that not only something calls / pings in his plugin the WP_Service_Workers.php, but all autoloaders.

    Hi also thinks that it looks like the class might belong to PWA, although the problem more likely is from a plugin expecting PWA be installed (which i havn’t), or to be loaded by the time its needed.

    https://wpdirectory.net/search/01HS1FVRAKYZ79NPA105TADKD7

    Does that mean anything to you? Can you do something with it and help me?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @the-dude-1

    Thank you for reaching out to us, The AMP plugin uses Services worker to cache assets such as CDN scripts, images, google font etc. when PWA is available.

    If that’s conflicting with your other task in service worker you can disable, them by adding the follwoing code snippet in you child themes functions.php

    add_theme_support( 'amp', [
    	'service_worker' => false,
    ] );

    You can learn more about the feature from our release blog

    We hope this helpful!

    Thread Starter The-Dude

    (@the-dude-1)

    Hi Milind,

    thx for the help and snippet. I’ll try it.
    Question: If if add the snippet, does it have any negativ effect in the function of the AMP Plugin? Will it still render my pages in AMP-Versions?

    • This reply was modified 8 months, 1 week ago by The-Dude.
    Plugin Support Milind More

    (@milindmore22)

    Hello @the-dude-1

    Yes, it should work flawlessly, but your assets will be served over CDN instead of service worker.

    Plugin Support Milind More

    (@milindmore22)

    @the-dude-1 As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Autloader gone wild?’ is closed to new replies.