• Resolved detroitwidget

    (@detroitwidget)


    Hi Guys,

    In the Super PWA 2.0.2 Settings screen, I am unable to change the Display value to anything other than Minimal UI. The select box accepts a change, and allows me to save it, but the change is not made to the actual superpwa-manifest.json file.

    I can make and save other changes fine, and can confirm the changes by viewing the manifest file.

    I’ve cleared all caches (server and browser), removed all PWA application data from Chrome, and even uninstalled/re-installed the plugin. No luck.

    Any ideas?

    Chrome 71 on Mac Yosemite
    WordPress 5.0.3 with Classic Editor
    Super PWA 2.0.2
    Nginx/Apache on WP Engine
    PHP 5.6

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hello @detroitwidget

    Thanks for using SuperPWA.

    It’s strange that an uninstall and reinstall didn’t fix it.

    So from what I understand, the settings page does show the saved setting.

    Can you check the root folder (folder with wp-config.php) to see if there is a manifest written (superpwa-manifest.json)? If there is one, please delete it, then deactivate and reactivate SuperPWA so that it can regenerate it.

    If there is no physical file, then the file is dynamic. Do you have OPcache or Redis?

    Let me know how that goes please.

    Thread Starter detroitwidget

    (@detroitwidget)

    Hi Arun,

    I checked the root folder and deleted the existing manifest. I deactivated/reactivated the plugin. The problem persists.

    The settings page DOES show the setting as being saved. And again, ALL other changes are immediately written to the manifest file, EXCEPT the Display property.

    I do not use OPcache or Redis (that I’m aware of).

    Thanks.

    That is so strange. Especially when the manifest is regenerated.

    I just tested this at my end. Couldn’t spot an issue. Hmm.

    Can you check the wp_options table in the database and look for superpwa_settings and see its option_value. Not sure if you are familiar with the database, the value will be serialized and you can use https://www.unserialize.com to read it

    Example: https://jmp.sh/kQ0P7M6

    Fullscreen = 0
    Standalone = 1
    Minimal-UI = 2
    Browser = 3

    Please see if its written there correctly.

    Thread Starter detroitwidget

    (@detroitwidget)

    I checked the database. The option_value for superpwa_settings is correct and matches my WP Admin plugin settings (Standalone=1). Manifest still shows Minimal UI.

    Unserialized:

    Array
    (
        [app_name] => SLR Moss
        [app_short_name] => SLR Moss
        [description] => A tribute to the Mercedes-Benz SLR McLaren Stirling Moss
        [icon] => https://www.slrmoss.com/wp-content/uploads/2018/08/noun_1497150_ff0000-fff-192x192.png
        [splash_icon] => https://www.slrmoss.com/wp-content/uploads/2018/04/noun_1497150_ff0000-fff-512x512.png
        [background_color] => #D5E0EB
        [theme_color] => #d5e0eb
        [start_url] => 2026
        [offline_page] => 277
        [orientation] => 1
        [display] => 1
        [is_static_sw] => 1
        [is_static_manifest] => 1
    )

    Strangeness.

    Please delete the manifest from the root folder.

    Then add this:

    error_log( "\n superpwa_manifest_template = " . json_encode( superpwa_manifest_template() ), 3, ABSPATH . "/my_error_log.log" );

    in:

    wp-content/plugins/super-progressive-web-apps/public/manifest.php

    After:

    Line #168
    Here: https://github.com/SuperPWA/Super-Progressive-Web-Apps/blob/05ef8b38344cebd9c9575d01ea471666f7c8c3f0/public/manifest.php#L168-L169

    So that it looks like this: https://snippi.com/raw/59nt0bx

    Then:
    – Deactivate and reactivate SuperPWA
    – Check the root folder for a file named my_error_log.log
    – Please let me know the contents of it.

    Thread Starter detroitwidget

    (@detroitwidget)

    Done. The my_error_log.log was not generated.

    More weirdness. Was the manifest re-generated?

    That’s is the function that writes the manifest.

    Thread Starter detroitwidget

    (@detroitwidget)

    Yes. But it’s not present in the site root when viewed by FTP.

    Update: The manifest is now present in site root.

    • This reply was modified 6 years, 2 months ago by detroitwidget.
    Thread Starter detroitwidget

    (@detroitwidget)

    Update:

    I restored the entire website from a 1-week old backup. Uninstalled/Re-installed and updated the Super PWA plugin.

    The problem seems to have been resolved. All changes to settings are now being saved.

    Thanks for your help.

    Thanks for reporting back. Which version of SuperPWA is running now?

    Thread Starter detroitwidget

    (@detroitwidget)

    Version 2.0.2

    Perfect. And weird it didn’t work before.

    Anyways, glad its all good now.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Unable to change Display setting’ is closed to new replies.