Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin UI missing labels #5

Closed
fm opened this issue Sep 5, 2022 · 8 comments
Closed

Plugin UI missing labels #5

fm opened this issue Sep 5, 2022 · 8 comments

Comments

@fm
Copy link

fm commented Sep 5, 2022

Hey Iain,

It looks like the UI version of the plugin is missing some text strings. I'm using plugin v0.3.2 with Grav v1.7.35 and Admin v1.10.35

Screen Shot 2022-09-05 at 3 41 14 PM

@iainsgillis
Copy link
Owner

Hi, Faisal —

Thanks for opening the issue: I couldn't reproduce this myself either on my own site or in a fresh local install of Grav v1.7.35 and Admin v1.10.35 with the plugin installed from the admin panel.

Could you dump the contents of your {grav_root}/user/plugins/plausible/languages.yaml and {grav_root}/user/plugins/plausible/blueprints.yaml files and attached them here?

Those two keys from your screenshot are in the languages.yaml file for v0.3.2: DONT_TRACK_CUSTOM and DONT_TRACK_OUTBOUND

I might suggest clearing the cache and uninstalling/reinstalling the plugin first, in case something went wrong with the initial install.

That said, I've reviewed the plugin again, I'm hoping that the validation I added to blueprints.yaml in v0.3.3 will resolve this for you if the cache & reinstall steps don't work.

The official update should be available before too long (I'm not sure how often the gpm index gets rebuilt); if you want to test this sooner, I might suggest setting gpm.official_gpm_only to false in your system settings, and then using direct install, either from the Tools > Direct Install tab in the admin panel, or with the following command from the root of your Grav install.

bin/gpm direct-install https://github.com/iainsgillis/grav-plugin-plausible/archive/refs/tags/v0.3.3.zip

Either way, let me know how you get on? If it's still not resolved, I'll do my best to help you out.

Cheers,
.ig

@fm
Copy link
Author

fm commented Sep 5, 2022

Hey Iain,

I should've mentioned that the reinstall didn't work, and I did see the keys in the file as well - which is why I was a little baffled.

Upgrading to v0.3.3 didn't seem to work either?

Screen Shot 2022-09-05 at 6 14 16 PM

Here's languages.yaml (from 0.3.3)

en:
  PLUGIN_PLAUSIBLE:
    # Basic
    BASIC: General
    DATA_DOMAIN: Domain
    DATA_DOMAIN_HELP: |
      Just the naked domain without www or https://. You'll need to add your site to plausible.io if you haven't already.
      See https://plausible.io/docs/add-website.

    # Advanced: Custom Events, Outbound Links
    ADVANCED: Advanced
    ENABLE_CUSTOM_EVENT_TRACKING: Enable custom event tracking?
    ENABLE_CUSTOM_EVENT_TRACKING_HELP: See https://plausible.io/docs/custom-event-goals.
    TRACK_CUSTOM: Yes
    DONT_TRACK_CUSTOM: No

    ENABLE_OUTBOUND_LINK_TRACKING: Enable outbound link tracking?
    ENABLE_OUTBOUND_LINK_TRACKING_HELP: See https://plausible.io/docs/outbound-link-click-tracking.
    TRACK_OUTBOUND: Yes
    DONT_TRACK_OUTBOUND: No
    
    PLUGIN_PLAUSIBLE.CUSTOM_PLAUSIBLE_DOMAIN: Custom plausible domain?
    PLUGIN_PLAUSIBLE.CUSTOM_PLAUSIBLE_DOMAIN_HELP: Only use if you self-hosted plausible

    ## Self-hosting & custom domain 
    ENABLE_SELF_HOSTING: "Enable and configure a self-hosted instance of Plausible?"
    ENABLE_SELF_HOSTING_HELP: See https://plausible.io/docs/self-hosting.
    SELF_HOSTING: Yes
    NOT_SELF_HOSTING: No
    SELF_HOSTING_CUSTOM_DOMAIN: URL to your self-hosted instance of Plausible
    SELF_HOSTING_CUSTOM_DOMAIN_HELP: "This could also be an IP address. Include the protocol, but omit the trailing slash and `js/plausible`."

    # Public
    PUBLIC_DASHBOARD: Public Dashboard
    ADD_PUBLIC_DASHBOARD_URL_TO_SOURCE: Add link to public dashboard in HTML source?
    ADD_PUBLIC_DASHBOARD_URL_TO_SOURCE_HELP: |
      Adds a comment in your HTML source with a link to your public dashboard.
      Idea courtesy of https://github.com/divinerites/plausible-hugo
    SHOW_PUBLIC_DASHBOARD_URL: Yes
    HIDE_PUBLIC_DASHBOARD_URL: No
    PUBLIC_DASHBOARD_URL: Public dashboard URL
    PUBLIC_DASHBOARD_URL_HELP: See https://plausible.io/docs/visibility.

fr:
  PLUGIN_PLAUSIBLE:

    BASIC: Général
    DATA_DOMAIN: Domaine
    DATA_DOMAIN_HELP: |
      Le domaine nu, sans www ou https://. Vous devrez ajouter votre site à plausible.io si vous ne l'avez pas déjà fait.
      Voir https://plausible.io/docs/add-website.

    ADVANCED: Avancé
    ENABLE_CUSTOM_EVENT_TRACKING: Permettre un suivi personnalisé des événements ?
    ENABLE_CUSTOM_EVENT_TRACKING_HELP: Voir https://plausible.io/docs/custom-event-goals.
    TRACK_CUSTOM: Oui
    DONT_TRACK_CUSTOM: Non

    ENABLE_OUTBOUND_LINK_TRACKING: Activer le suivi des liens sortants ?
    ENABLE_OUTBOUND_LINK_TRACKING_HELP: Voir https://plausible.io/docs/outbound-link-click-tracking.
    TRACK_OUTBOUND: Oui
    DONT_TRACK_OUTBOUND: Non

    ENABLE_SELF_HOSTING: "Activer et configurer une instance auto-hébergée de Plausible ?"
    ENABLE_SELF_HOSTING_HELP: Voir https://plausible.io/docs/self-hosting.
    SELF_HOSTING: Oui
    NOT_SELF_HOSTING: Non
    SELF_HOSTING_CUSTOM_DOMAIN: URL de votre instance autonome de Plausible
    SELF_HOSTING_CUSTOM_DOMAIN_HELP: "Cela peut aussi être une adresse IP. Incluez le protocole, mais omettez le slash de fin et `js/plausible`."

    PUBLIC_DASHBOARD: Tableau de bord public
    ADD_PUBLIC_DASHBOARD_URL_TO_SOURCE: Ajouter un lien vers le tableau de bord public dans la source HTML ?
    ADD_PUBLIC_DASHBOARD_URL_TO_SOURCE_HELP: |
      Ajoute un commentaire dans votre source HTML avec un lien vers votre tableau de bord public.
      L'idée est une gracieuseté de https://github.com/divinerites/plausible-hugo
    SHOW_PUBLIC_DASHBOARD_URL: Oui
    HIDE_PUBLIC_DASHBOARD_URL: Non
    PUBLIC_DASHBOARD_URL: URL du tableau de bord public
    PUBLIC_DASHBOARD_URL_HELP: Voir https://plausible.io/docs/visibility.

de:
  PLUGIN_PLAUSIBLE:

    BASIC: Allgemein
    DATA_DOMAIN: Domäne
    DATA_DOMAIN_HELP: |
      Nur die nackte Domain ohne www oder https://. Sie müssen Ihre Site zu plausible.io hinzufügen, falls Sie das nicht schon getan haben.
      Siehe https://plausible.io/docs/add-website.

    ADVANCED: Erweitert
    ENABLE_CUSTOM_EVENT_TRACKING: Benutzerdefinierte Ereignisverfolgung einschalten?
    ENABLE_CUSTOM_EVENT_TRACKING_HELP: Siehe https://plausible.io/docs/custom-event-goals.
    TRACK_CUSTOM: Ja
    DONT_TRACK_CUSTOM: Nein

    ENABLE_OUTBOUND_LINK_TRACKING: Aktivieren Sie die Verfolgung ausgehender Links?
    ENABLE_OUTBOUND_LINK_TRACKING_HELP: Siehe https://plausible.io/docs/outbound-link-click-tracking.
    TRACK_OUTBOUND: Ja
    DONT_TRACK_OUTBOUND: Nein

    ENABLE_SELF_HOSTING: "Aktivieren und konfigurieren Sie eine selbst gehostete Instanz von Plausible?"
    ENABLE_SELF_HOSTING_HELP: Siehe https://plausible.io/docs/self-hosting.
    SELF_HOSTING: Ja
    NOT_SELF_HOSTING: Nein
    SELF_HOSTING_CUSTOM_DOMAIN: URL zu Ihrer selbstgehosteten Instanz von Plausible
    SELF_HOSTING_CUSTOM_DOMAIN_HELP: "Dies kann auch eine IP-Adresse sein. Geben Sie das Protokoll an, aber lassen Sie den abschließenden Schrägstrich und `js/plausible` weg."

    PUBLIC_DASHBOARD: Öffentliches Dashboard
    ADD_PUBLIC_DASHBOARD_URL_TO_SOURCE: Link zum öffentlichen Dashboard im HTML-Quelltext hinzufügen?
    ADD_PUBLIC_DASHBOARD_URL_TO_SOURCE_HELP: |
      Fügt einen Kommentar in Ihrem HTML-Quelltext mit einem Link zu Ihrem öffentlichen Dashboard hinzu.
      Idee mit freundlicher Genehmigung von https://github.com/divinerites/plausible-hugo
    SHOW_PUBLIC_DASHBOARD_URL: Ja
    HIDE_PUBLIC_DASHBOARD_URL: Nein
    PUBLIC_DASHBOARD_URL: Öffentliche Dashboard-URL
    PUBLIC_DASHBOARD_URL_HELP: Siehe https://plausible.io/docs/visibility.

it:
  PLUGIN_PLAUSIBLE:

    BASIC: Generale
    DATA_DOMAIN: Dominio
    DATA_DOMAIN_HELP: |
      Solo il dominio nudo senza www o https://. Dovrai aggiungere il tuo sito a plausible.io se non l'hai già fatto.
      Vedi https://plausible.io/docs/add-website.

    ADVANCED: Avanzato
    ENABLE_CUSTOM_EVENT_TRACKING: Abilitare il tracking personalizzato degli eventi?
    ENABLE_CUSTOM_EVENT_TRACKING_HELP: Vedi https://plausible.io/docs/custom-event-goals.
    TRACK_CUSTOM: Sì
    DONT_TRACK_CUSTOM: No

    ENABLE_OUTBOUND_LINK_TRACKING: Abilitare il tracciamento dei collegamenti in uscita?
    ENABLE_OUTBOUND_LINK_TRACKING_HELP: Vedere https://plausible.io/docs/outbound-link-click-tracking.
    TRACK_OUTBOUND: Sì
    DONT_TRACK_OUTBOUND: No

    ENABLE_SELF_HOSTING: "Abilitare e configurare un'istanza self-hosted di Plausible?"
    ENABLE_SELF_HOSTING_HELP: Vedi https://plausible.io/docs/self-hosting.
    SELF_HOSTING: Sì
    NOT_SELF_HOSTING: No
    SELF_HOSTING_CUSTOM_DOMAIN: URL alla tua istanza di Plausible ospitata in proprio
    SELF_HOSTING_CUSTOM_DOMAIN_HELP: "Questo potrebbe anche essere un indirizzo IP. Includi il protocollo, ma ometti la barra finale e `js/plausible`."

    PUBLIC_DASHBOARD: Cruscotto pubblico
    ADD_PUBLIC_DASHBOARD_URL_TO_SOURCE: Aggiungere un link alla dashboard pubblica in sorgente HTML?
    ADD_PUBLIC_DASHBOARD_URL_TO_SOURCE_HELP: |
      Aggiunge un commento nel vostro sorgente HTML con un link alla vostra dashboard pubblica.
      Idea per gentile concessione di https://github.com/divinerites/plausible-hugo
    SHOW_PUBLIC_DASHBOARD_URL: Sì
    HIDE_PUBLIC_DASHBOARD_URL: No
    PUBLIC_DASHBOARD_URL: URL del cruscotto pubblico
    PUBLIC_DASHBOARD_URL_HELP: Vedi https://plausible.io/docs/visibility.

es:
  PLUGIN_PLAUSIBLE:

    BASIC: General
    DATA_DOMAIN: Dominio
    DATA_DOMAIN_HELP: |
      Sólo el dominio desnudo sin www o https://. Tendrás que añadir tu sitio a plausible.io si no lo has hecho ya.
      Vea https://plausible.io/docs/add-website.

    ADVANCED: Avanzado
    ENABLE_CUSTOM_EVENT_TRACKING: Habilitar el seguimiento de eventos personalizados.
    ENABLE_CUSTOM_EVENT_TRACKING_HELP: Ver https://plausible.io/docs/custom-event-goals.
    TRACK_CUSTOM: Sí
    DONT_TRACK_CUSTOM: No

    ENABLE_OUTBOUND_LINK_TRACKING: Habilitar el rastreo de enlaces salientes?
    ENABLE_OUTBOUND_LINK_TRACKING_HELP: Ver https://plausible.io/docs/outbound-link-click-tracking.
    TRACK_OUTBOUND: Sí
    DONT_TRACK_OUTBOUND: No

    ENABLE_SELF_HOSTING: "¿Habilitar y configurar una instancia auto-alojada de Plausible?"
    ENABLE_SELF_HOSTING_HELP: Ver https://plausible.io/docs/self-hosting.
    SELF_HOSTING: Sí
    NOT_SELF_HOSTING: No
    SELF_HOSTING_CUSTOM_DOMAIN: URL de su instancia auto-alojada de Plausible
    SELF_HOSTING_CUSTOM_DOMAIN_HELP: "También puede ser una dirección IP. Incluya el protocolo, pero omita la barra diagonal final y `js/plausible`."

    PUBLIC_DASHBOARD: Tablero público
    ADD_PUBLIC_DASHBOARD_URL_TO_SOURCE: ¿Agregar un enlace al tablero público en una fuente HTML?
    ADD_PUBLIC_DASHBOARD_URL_TO_SOURCE_HELP: |
      Añade un comentario en tu fuente HTML con un enlace a tu tablero público.
      Idea cortesía de https://github.com/divinerites/plausible-hugo
    SHOW_PUBLIC_DASHBOARD_URL: Sí
    HIDE_PUBLIC_DASHBOARD_URL: No
    PUBLIC_DASHBOARD_URL: URL del tablero público
    PUBLIC_DASHBOARD_URL_HELP: Ver https://plausible.io/docs/visibility.

pt:
  PLUGIN_PLAUSIBLE:

    BASIC: Geral
    DATA_DOMAIN: Domínio
    DATA_DOMAIN_HELP: |
      Apenas o domínio nú sem www ou https://. Terá de acrescentar o seu site ao plausível.io se ainda não o fez.
      Ver https://plausible.io/docs/add-website.

    ADVANCED: Avançado
    ENABLE_CUSTOM_EVENT_TRACKING: Permitir o seguimento de eventos personalizados?
    ENABLE_CUSTOM_EVENT_TRACKING_HELP: Ver https://plausible.io/docs/custom-event-goals.
    TRACK_CUSTOM: Sim
    DONT_TRACK_CUSTOM: Não

    ENABLE_OUTBOUND_LINK_TRACKING: Habilitar o rastreio da ligação de saída?
    ENABLE_OUTBOUND_LINK_TRACKING_HELP: Ver https://plausible.io/docs/outbound-link-click-tracking.
    TRACK_OUTBOUND: Sim
    DONT_TRACK_OUTBOUND: Não

    ENABLE_SELF_HOSTING: "Habilitar e configurar uma instância de Plausible?"
    ENABLE_SELF_HOSTING_HELP: Ver https://plausible.io/docs/self-hosting.
    SELF_HOSTING: Sim
    NOT_SELF_HOSTING: Não
    SELF_HOSTING_CUSTOM_DOMAIN: URL para a sua instância de Plausible auto-hospedado
    SELF_HOSTING_CUSTOM_DOMAIN_HELP: "Este poderia também ser um endereço IP. Incluir o protocolo, mas omitir a barra de arrasto e `js/plausible`."

    PUBLIC_DASHBOARD: Painel público
    ADD_PUBLIC_DASHBOARD_URL_TO_SOURCE: Acrescentar ligação ao painel de controlo público na fonte HTML?
    ADD_PUBLIC_DASHBOARD_URL_TO_SOURCE_HELP: |
      Adiciona um comentário na sua fonte HTML com um link para o seu painel de controlo público.
      Ideia gentilmente cedida por https://github.com/divinerites/plausible-hugo
    SHOW_PUBLIC_DASHBOARD_URL: Sim
    HIDE_PUBLIC_DASHBOARD_URL: Não
    PUBLIC_DASHBOARD_URL: URL do painel de controlo público
    PUBLIC_DASHBOARD_URL_HELP: Ver https://plausible.io/docs/visibility.

pl:
  PLUGIN_PLAUSIBLE:

    BASIC: Ogólne
    DATA_DOMAIN: Domena
    DATA_DOMAIN_HELP: |
      Tylko naga domena bez www lub https://. Musisz dodać swoją stronę do plausible.io, jeśli jeszcze tego nie zrobiłeś.
      Zobacz https://plausible.io/docs/add-website.

    ADVANCED: Zaawansowany
    ENABLE_CUSTOM_EVENT_TRACKING: Włączyć niestandardowe śledzenie zdarzeń?
    ENABLE_CUSTOM_EVENT_TRACKING_HELP: Zobacz https://plausible.io/docs/custom-event-goals.
    TRACK_CUSTOM: Tak
    DONT_TRACK_CUSTOM: Nie

    ENABLE_OUTBOUND_LINK_TRACKING: Włączyć śledzenie linków wychodzących?
    ENABLE_OUTBOUND_LINK_TRACKING_HELP: Zobacz https://plausible.io/docs/outbound-link-click-tracking.
    TRACK_OUTBOUND: Tak
    DONT_TRACK_OUTBOUND: Nie

    ENABLE_SELF_HOSTING: Włącz i skonfiguruj samo-hostowaną instancję Plausible?
    ENABLE_SELF_HOSTING_HELP: Zobacz https://plausible.io/docs/self-hosting.
    SELF_HOSTING: Tak
    NOT_SELF_HOSTING: Nie
    SELF_HOSTING_CUSTOM_DOMAIN: URL do twojej instancji Plausible.
    SELF_HOSTING_CUSTOM_DOMAIN_HELP: "Może to być również adres IP. Uwzględnij protokół, ale pomiń końcowy ukośnik i `js/plausible`."

    PUBLIC_DASHBOARD: Public Dashboard
    ADD_PUBLIC_DASHBOARD_URL_TO_SOURCE: Dodać link do publicznego dashboardu w źródle HTML?
    ADD_PUBLIC_DASHBOARD_URL_TO_SOURCE_HELP: |
      Dodaje komentarz w twoim źródle HTML z linkiem do twojego publicznego pulpitu.
      Idea dzięki uprzejmości https://github.com/divinerites/plausible-hugo
    SHOW_PUBLIC_DASHBOARD_URL: Tak
    HIDE_PUBLIC_DASHBOARD_URL: Nie
    PUBLIC_DASHBOARD_URL: Publiczna tablica rozdzielcza URL
    PUBLIC_DASHBOARD_URL_HELP: Patrz https://plausible.io/docs/visibility.

ru:
  PLUGIN_PLAUSIBLE:

    BASIC: Генерал
    DATA_DOMAIN: Домен
    DATA_DOMAIN_HELP: |
      Только голый домен без www или https://. Если вы еще этого не сделали, то вам нужно будет добавить свой сайт в "Правдоподобный.io".
      Смотрите https://plausible.io/docs/add-website.

    ADVANCED: Расширенный сайт
    ENABLE_CUSTOM_EVENT_TRACKING: Включить пользовательское отслеживание событий?
    ENABLE_CUSTOM_EVENT_TRACKING_HELP: См. https://plausible.io/docs/custom-event-goals.
    TRACK_CUSTOM: Да
    DONT_TRACK_CUSTOM: Нет

    ENABLE_OUTBOUND_LINK_TRACKING: Включить отслеживание исходящих ссылок?
    ENABLE_OUTBOUND_LINK_TRACKING_HELP: См. https://plausible.io/docs/outbound-link-click-tracking.
    TRACK_OUTBOUND: Да
    DONT_TRACK_OUTBOUND: Нет

    ENABLE_SELF_HOSTING: Включить и настроить самостоятельно размещенный экземпляр Plausible?
    ENABLE_SELF_HOSTING_HELP: См. https://plausible.io/docs/self-hosting.
    SELF_HOSTING: Да
    NOT_SELF_HOSTING: Нет
    SELF_HOSTING_CUSTOM_DOMAIN: URL-адрес вашего самостоятельно размещенного экземпляра Plausible
    SELF_HOSTING_CUSTOM_DOMAIN_HELP: "Это также может быть IP-адрес. Укажите протокол, но опустите косую черту и `js/plausible`."    

    PUBLIC_DASHBOARD: Общественная панель управления
    ADD_PUBLIC_DASHBOARD_URL_TO_SOURCE: Добавить ссылку на публичную дашборду в исходном HTML-файле?
    ADD_PUBLIC_DASHBOARD_URL_TO_SOURCE_HELP: |
      Добавляет комментарий в ваш HTML-комментарий со ссылкой на вашу общедоступную панель инструментов.
      Идея любезно предоставлена https://github.com/divinerites/plausible-hugo.
    SHOW_PUBLIC_DASHBOARD_URL: Да
    HIDE_PUBLIC_DASHBOARD_URL: Нет
    PUBLIC_DASHBOARD_URL: Публичный URL панели управления
    PUBLIC_DASHBOARD_URL_HELP: См. https://plausible.io/docs/visibility.

and here is blueprints.yaml

name: Plausible Analytics
slug: plausible
type: plugin
version: 0.3.3
description: Integrate Plausible Analytics into your Grav site.
icon: bar-chart
author:
  name: Iain Gillis
  email: [email protected]
homepage: https://github.com/iainsgillis/grav-plugin-plausible
keywords: grav, plugin, plausible, analytics
bugs: https://github.com/iainsgillis/grav-plugin-plausible/issues
docs: https://github.com/iainsgillis/grav-plugin-plausible/blob/main/README.md
license: MIT

dependencies:
  - { name: grav, version: ">=1.6.0" }

form:
  validation: strict
  fields:
    basic_setup:
      type: section
      title: PLUGIN_PLAUSIBLE.BASIC
      fields:
        enabled:
          type: toggle
          label: PLUGIN_ADMIN.PLUGIN_STATUS
          highlight: 1
          default: 0
          options:
            1: PLUGIN_ADMIN.ENABLED
            0: PLUGIN_ADMIN.DISABLED
          validate:
            type: bool
        data_domain:
          type: text
          label: PLUGIN_PLAUSIBLE.DATA_DOMAIN
          help: PLUGIN_PLAUSIBLE.DATA_DOMAIN_HELP
          placeholder: <yourdomain.com>

    advanced:
      type: section
      title: PLUGIN_PLAUSIBLE.ADVANCED
      fields:
        custom_event_goals:
          type: toggle
          label: PLUGIN_PLAUSIBLE.ENABLE_CUSTOM_EVENT_TRACKING
          help: PLUGIN_PLAUSIBLE.ENABLE_CUSTOM_EVENT_TRACKING_HELP
          highlight: 1
          default: 0
          options:
            1: PLUGIN_PLAUSIBLE.TRACK_CUSTOM
            0: PLUGIN_PLAUSIBLE.DONT_TRACK_CUSTOM
          validate:
            type: bool
        outbound_link_tracking:
          type: toggle
          label: PLUGIN_PLAUSIBLE.ENABLE_OUTBOUND_LINK_TRACKING
          help: PLUGIN_PLAUSIBLE.ENABLE_OUTBOUND_LINK_TRACKING_HELP
          highlight: 1
          default: 0
          options:
            1: PLUGIN_PLAUSIBLE.TRACK_OUTBOUND
            0: PLUGIN_PLAUSIBLE.DONT_TRACK_OUTBOUND
          validate:
            type: bool

        self_hosting_custom_domain:
          type: fieldset
          title: "Self Hosted & Custom Domain"
          text: | 
            Hic sunt dracones. As a bit of a safety check, you must turn this feature on using the 
            toggle *and* set the custom url that points to your self-hosted instance of Plausible.
          icon: server
          collapsed: true
          collapsible: true
          fields:
            self_hosting:
              type: toggle
              label: PLUGIN_PLAUSIBLE.ENABLE_SELF_HOSTING
              help: PLUGIN_PLAUSIBLE.ENABLE_SELF_HOSTING_HELP
              default: 0
              options:
                1: PLUGIN_PLAUSIBLE.SELF_HOSTING
                0: PLUGIN_PLAUSIBLE.NOT_SELF_HOSTING
              validate:
                type: bool
            custom_domain:
              type: text
              label: PLUGIN_PLAUSIBLE.SELF_HOSTING_CUSTOM_DOMAIN
              help: PLUGIN_PLAUSIBLE.SELF_HOSTING_CUSTOM_DOMAIN_HELP

    public_dashboard:
      type: section
      title: PLUGIN_PLAUSIBLE.PUBLIC_DASHBOARD
      fields:
        public_dashboard_visible:
          type: toggle
          label: PLUGIN_PLAUSIBLE.ADD_PUBLIC_DASHBOARD_URL_TO_SOURCE
          help: PLUGIN_PLAUSIBLE.ADD_PUBLIC_DASHBOARD_URL_TO_SOURCE_HELP
          highlight: 1
          default: 0
          options:
            1: Yes
            0: No
          validate:
            type: bool

        public_dashboard_url:
          type: text
          label: PLUGIN_PLAUSIBLE.PUBLIC_DASHBOARD_URL
          help: PLUGIN_PLAUSIBLE.PUBLIC_DASHBOARD_URL_HELP
          placeholder: https://plausible.io/<yourdomain.com>

@iainsgillis
Copy link
Owner

This is weird, and I'm stumped.

I'd like to get to the bottom of this, but I'm reasonably confident that it's something related to your particular environment and installation, rather than a problem with this plugin per se.

If you turn on the debugger, does anything useful show up in the messages? I see in your screenshot that you have a number of other plugins installed as well: perhaps there's a conflict with one of them?

From the admin panel, under Tools, is there anything untoward in the logs or reports?

@fm
Copy link
Author

fm commented Sep 5, 2022

It's possible it's a conflict. There's nothing in the logs or the debugger. Since it's purely cosmetic, I'm going to throw the towel and just live with it. 90% of my plugins came with the skeleton when I first deployed it a few years ago. Will try disabling/removing the unneeded ones and see if that helps. In the meantime, I'll just close this.

@fm fm closed this as completed Sep 5, 2022
@iainsgillis
Copy link
Owner

Okey dokey -- thanks! (If you do conclude that there is a conflict with another plugin, could you let me know which plugin and the version?)

Best wishes,
Iain

@fm
Copy link
Author

fm commented Sep 5, 2022

The plot thickens... I was able to replicate on a completely fresh install

Screen Shot 2022-09-05 at 11 18 28 PM

iainsgillis pushed a commit that referenced this issue Sep 6, 2022
iainsgillis pushed a commit that referenced this issue Sep 6, 2022
@iainsgillis
Copy link
Owner

Hey, Faisal -- I was finally able to replicate, too, in a Docker instance. Weird. New release (v0.3.4) just pushed. Hope this has it sorted. Let me know how you get on.

Cheers,
.ig

@fm
Copy link
Author

fm commented Sep 6, 2022

Looking good now with 0.3.4! I don't use docker, but I wonder if it was due to any underlying config by my host?

Screen Shot 2022-09-06 at 4 20 08 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants