• Resolved Julien ALIBERT

    (@julien-alibert)


    Hi,

    “Magic is just science that we don’t understand yet.”
    My manifest is haunted and obviously I do not understand why.

    I don’t know where the manifest is going to get informations probably because I didn’t understand how it does it. Anyway, I am using Code Snippets Pro to modify functions.php as it is offered but (what i did) doesn’t seem to work properly.
    I’m refering to: https://github.com/GoogleChromeLabs/pwa-wp/wiki/FAQ#where-are-the-plugin-settings

    I understood that it was not possible to update everything instantly but I do not even understand where it will retrieve this information.

    For example, the “name” in the manifest changes when I refresh the browser. It changes between OAFormation and Olivier Aubrun Formation (the latter does even not exist in the database). And sometimes there is no name at all o.O’.

    Could this come from old traces of previous plugins used (superpwa in other) or am I not patient enough?

    Thank you in advance for your reply.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Julien ALIBERT

    (@julien-alibert)

    Note that I have cleared caches of the site, browser, old versions of the manifest in the browser …

    Plugin Author Weston Ruter

    (@westonruter)

    The manifest is referenced here:

    <link rel="manifest" href="https://oaformation.com/wp-json/wp/v2/web-app-manifest">

    I can indeed see that name and short_name are empty: https://oaformation.com/wp-json/wp/v2/web-app-manifest

    These are coming from the blogname option which is the Site Title. See the underlying code for where the name is coming from: https://github.com/GoogleChromeLabs/pwa-wp/blob/4e900dfbf267b4147e8e1f9c9db2ee38ff68be6c/wp-includes/class-wp-web-app-manifest.php#L132-L148

    Perhaps you have some multilingual plugin that dynamically changing the blogname?

    Thread Starter Julien ALIBERT

    (@julien-alibert)

    Today, this is what I see :
    {"name":"Olivier Aubrun Formation","start_url":"https:\/\/oaformation.com\/","display":"minimal-ui","dir":"ltr","lang":"fr-FR","background_color":"#fff","theme_color":"#fff","description":"Permis d'exploitation - Hygi\u00e8ne alimentaire \u00e0 Lyon","icons":[{"src":"https:\/\/oaformation.com\/wp-content\/uploads\/2017\/02\/OAF_favicon.png","sizes":"192x192","type":"image\/png"},{"src":"https:\/\/oaformation.com\/wp-content\/uploads\/2017\/02\/OAF_favicon.png","sizes":"512x512","type":"image\/png"}]}

    Blogname is declared as OAformation.
    We don’t use multilingual plugin.
    Yoast probably causes issue with name or short_name but is similar to
    Blogname and delay to consider updates do not allow to check.
    Finally, there is no explication why I can see 3 versions of name depending refresh of https://oaformation.com/wp-json/wp/v2/web-app-manifest :
    1. Nothing
    2. OAFormation
    3. Olivier Aubrun Formation

    the underlying code for where the name is coming from: https://github.com/GoogleChromeLabs/pwa-wp/blob/4e900dfbf267b4147e8e1f9c9db2ee38ff68be6c/wp-includes/class-wp-web-app-manifest.php#L132-L148

    'name' => html_entity_decode( get_bloginfo( 'name' ), ENT_QUOTES, 'utf-8' ),
    Yes is the blogname but does it not explain my case.

    I do not know.

    Thread Starter Julien ALIBERT

    (@julien-alibert)

    Do you suggest I should find a file named class-wp-web-app-manifest.php in /wp-include ?
    :o)
    No no no no no… understood… the location is pwa/wp-include

    Thread Starter Julien ALIBERT

    (@julien-alibert)

    There not. Should I re-install pwa plugin?

    Thread Starter Julien ALIBERT

    (@julien-alibert)

    I don’t know if I was clear.

    Filters in functions.php do not work.

    The manifest present 3 different and unpredictables versions depending you refresh the window (https://oaformation.com/wp-json/wp/v2/web-app-manifest) :

    {"name":"Olivier Aubrun Formation","start_url":"https:\/\/oaformation.com\/","display":"minimal-ui","dir":"ltr","lang":"fr-FR","background_color":"#fff","theme_color":"#fff","description":"Permis d'exploitation - Hygi\u00e8ne alimentaire \u00e0 Lyon","icons":[{"src":"https:\/\/oaformation.com\/wp-content\/uploads\/2017\/02\/OAF_favicon.png","sizes":"192x192","type":"image\/png"},{"src":"https:\/\/oaformation.com\/wp-content\/uploads\/2017\/02\/OAF_favicon.png","sizes":"512x512","type":"image\/png"}]}
    OR
    {"name":"OAFormation","start_url":"https:\/\/oaformation.com\/","display":"minimal-ui","dir":"ltr","short_name":"OAFormation","lang":"fr-FR","background_color":"#fff","theme_color":"#fff","description":"Permis d'exploitation - Hygi\u00e8ne alimentaire \u00e0 Lyon","icons":[{"src":"https:\/\/oaformation.com\/wp-content\/uploads\/2017\/02\/OAF_favicon.png","sizes":"192x192","type":"image\/png"},{"src":"https:\/\/oaformation.com\/wp-content\/uploads\/2017\/02\/OAF_favicon.png","sizes":"512x512","type":"image\/png"}]}
    OR
    {"name":"","start_url":"https:\/\/oaformation.com\/","display":"minimal-ui","dir":"ltr","short_name":"","lang":"fr-FR","background_color":"#fff","theme_color":"#fff","description":"Permis d'exploitation, formation Hygi\u00e8ne alimentaire","icons":[{"src":"https:\/\/oaformation.com\/wp-content\/uploads\/2017\/02\/OAF_favicon.png","sizes":"192x192","type":"image\/png"},{"src":"https:\/\/oaformation.com\/wp-content\/uploads\/2017\/02\/OAF_favicon.png","sizes":"512x512","type":"image\/png"}]}

    Plugin Author Weston Ruter

    (@westonruter)

    Sorry, I’m not sure what’s going on.

    Thread Starter Julien ALIBERT

    (@julien-alibert)

    UPDATE

    Hi there,

    Finally it’s work fine after waiting 8 days.
    I do not understand why it took so long.
    My website runs with the AMP standard.
    Is it possible than AMP rules, the cdn, are the root of this delay?
    Anyway, thank you very much @westonruter for the plugin and your availability.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘My manifest is haunted!’ is closed to new replies.