• Resolved kentsteve

    (@kentsteve)


    Hi

    After installing and configuring the plugin I get a couple of different errors.

    1. [Progressive WordPress] Registration failed: SecurityError: Failed to register a ServiceWorker: The origin of the provided scriptURL (‘https://cdn.accountant-arusha.co.tz’) does not match the current origin (‘https://accountant-arusha.co.tz’).

    2. No Manifest Detected.

    Setup – Nginx, cdn, cloudflare, http/2 all other plugins disabled, divi theme
    Push notifications are working.

    I was hoping you can point me in the right direction to get this sorted.

    Thanks

    Steve

    debug log

    • This topic was modified 6 years, 8 months ago by Jan Dembowski.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Nico Martin

    (@nico_martin)

    Hi steve

    First of all thanks for using progressive WordPress!

    It seems like there is an issue when using a cdn. Thank you for pointing that out!
    I’m afraid I don’t have a quickfix for that. I’ll need to have a closer look the next days.

    But for now: could you please delete the debug log from the question and send it to [email protected]? The debug log contains information which should not be public.

    Kind regards,
    Nico

    Thread Starter kentsteve

    (@kentsteve)

    Thanks, those keys were deleted yesterday.

    Will email logs, thanks

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Thanks, those keys were deleted yesterday.

    That’s good but just as a double check I’ve redacted the debugs logs.

    Plugin Author Nico Martin

    (@nico_martin)

    Hi Steve

    I just checked your site and I was able to register the service worker and the manifest was detected correctly. Did you already solved the issue?

    Kind regards,
    Nico

    Thread Starter kentsteve

    (@kentsteve)

    Hi Nico

    I missed your reply, sorry, (I am not being notified)

    Anyway, after the update this morning (1.0.1) it all seems to work now and get a good report 83% in Lighthouse.

    One small problem, I am not being prompted in chrome on android to install the app, but on firefox for android, there is a prompt. It is not a big problem because Google Lighthouse thinks there is a prompt, just mentioning.

    Also, the bell icon to install notifications is not always on the top of the screen, sometimes when scrolling the page it disappears behind images and graphics and text and reappears further down the page.

    Anyway thanks for the update and the fix.

    Plugin Author Nico Martin

    (@nico_martin)

    Hi Steve

    No problem ??

    I think the install prompt was shown once but somehow you missed it. And since chrome will show the prompt only once, you have to delete the history to see the prompt again.
    therwise you could just go to the “browser settings” -> “add to homescreen” which triggers exactly the same inatallation.

    Thank you for the hint. In version 1.0.2 I just fixed the bug with the bell dieappearing behind the content.

    Kind regards,
    Nico

    Thread Starter kentsteve

    (@kentsteve)

    Below is a message from my web host regarding a bug he thinks is causing 500 errors on another site of mine.

    Maybe from 1.0.2

    I was able to replicate the issue now, the issue is being caused by the progressive-wp so i’ve deactivated the plugin for you.
    Here is the related error from the logs so you can send to the developer as they seem to have introduced a bug:
    2018/04/04 09:34:06 [error] 1024#0: *221 FastCGI sent in stderr: “PHP message: PHP Fatal error: Cannot declare class MatthiasMullie\Minify\Minify, because the name is already in use in /var/www/kiliman.com/htdocs/wp-content/plugins/progressive-wp/Classes/Libs/minify/src/Minify.php on line 17” while reading response header from upstream, client: 2.98.69.146, server: kiliman.com, request: “GET /wp-admin/index.php HTTP/2.0”, upstream: “fastcgi://127.0.0.1:9070”, host: “kiliman.com”, referrer: “https://kiliman.com/wp-login.php?redirect_to=https%3A%2F%2Fkiliman.com%2Fwp-admin%2Findex.php&reauth=1”

    Thread Starter kentsteve

    (@kentsteve)

    Hi Nico, do you understand why the manifest is not loading? This is the error from the console.

    Failed to load https://cdn.accountant-arusha.co.tz/pwp-manifest.json: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://accountant-arusha.co.tz’ is therefore not allowed access.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Manifest not detected & Failed to register a ServiceWorker’ is closed to new replies.