Support » Plugin: Progressive WordPress (PWA) » Wrong permissions for root directory (to install serviceworker.js)

  • Resolved jakeparis

    (@jakeparis)


    When the plugin tries to create a service-worker file, I get the error “There was a problem generating your serviceworker file. Please check your permissions for…” .

    What do those directory permissions need to be?

    Can I just create the file myself and allow the plugin to edit it (that way I’d only be changing the permission for the service worker file)? If so, what should it be named?

    • This topic was modified 1 year, 7 months ago by  jakeparis.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Nico Martin

    (@nico_martin)

    Hi there,

    Yes, you could try that. The name should be pwp-serviceworker.js.

    Kind regards, Nico

    I’ve created a pwp-serviceworker.js file in my WP root directory, and even given it permissions 0777, but I still get the same error:

    “There was a problem generating your serviceworker file. Please check your permissions for /usr/local/webserver/…”

    and the path it lists ends in a directory. I can’t change the permissions for the directory, only the file. What kind of permissions is it expecting?

    Plugin Author Nico Martin

    (@nico_martin)

    Are you still having the issue? If so, what Webserver are you using? Apache, IIS, ..? Which Hoster and what php version?

    Kind regards,
    Nico

    Hi Nico, It looks like I have the same issue. My hoster is mirohost.net, web server is Nginx. How can I check PHP version on my server?

    Plugin Author Nico Martin

    (@nico_martin)

    Hi @mykopopov

    On the About page you should be able to download the debug log. Could you download it and send it to mail@nicomartin.ch?

    Kind regards,
    Nico

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Wrong permissions for root directory (to install serviceworker.js)’ is closed to new replies.