FriendsOfFlarum / analytics

A Flarum extension that provides your forum piwik's and google's analytics features
https://discuss.flarum.org/d/1983
MIT License
33 stars 12 forks source link

Error: Ensure the DOM element that was passed to `m.route` is not undefined #27

Closed noelma closed 3 years ago

noelma commented 3 years ago

Description

Hello, I just updated my beta13 flarum to beta14 and noticed an error while using this module. Once the module is activated and configured, the home page does not display discussions

Steps to reproduce

  1. Install fof,
  2. Activate fof,
  3. Configure the module,
  4. Enable Piwik (Release note : piwik untested, but should be fine XD),
  5. Fill in the following fields:
    • Piwik domain or URL,
    • Site ID
    • Track visitors across all subdomains of Flarum
    • Prepend the site domain to the page title when tracking
    • Track individual user accounts => Do not track
    • Authentication Token
  6. Save configuration
  7. Go to the home page

Console error

Error: Ensure the DOM element that was passed to `m.route` is not undefined
    y router.js:36
    10 index.js:18
    e extend.js:27
    oninit IndexPage.js:23
    a render.js:30
    M render.js:917
    l render.js:153
    l render.js:160
    l render.js:66
    u render.js:50
    l render.js:103
    l render.js:62
    f render.js:487
    f render.js:419
    h render.js:302
    exports render.js:964
    a mount-redraw.js:14
    v router.js:114
    promise callback*t router.js:126
    S router.js:95
    a render.js:30
    exports render.js:971
    mount mount-redraw.js:45
    y router.js:160
    mount Application.js:198
    mount ForumApplication.js:121
    boot Application.js:176
    <anonymous> (index):218
mount-redraw.js:15:23
    a mount-redraw.js:15
    v router.js:114
    (Asynchrone : promise callback)
    t router.js:126
    S router.js:95
    a render.js:30
    exports render.js:971
    mount mount-redraw.js:45
    y router.js:160
    mount Application.js:198
    mount ForumApplication.js:121
    boot Application.js:176
    <anonyme> 

Configuration

Flarum version: 0.1.0-beta14

FriendsOfFlarum/analytics version: 0.10.0

Installed extensions:

"require": {
        "flarum/approval": "^0.1.0",
        "flarum/bbcode": "^0.1.0",
        "flarum/core": "^0.1.0",
        "flarum/emoji": "^0.1.0",
        "flarum/flags": "^0.1.0",
        "flarum/lang-english": "^0.1.0",
        "flarum/likes": "^0.1.0",
        "flarum/lock": "^0.1.0",
        "flarum/markdown": "^0.1.0",
        "flarum/mentions": "^0.1.0",
        "flarum/pusher": "^0.1.0",
        "flarum/statistics": "^0.1.0",
        "flarum/sticky": "^0.1.0",
        "flarum/subscriptions": "^0.1.0",
        "flarum/suspend": "^0.1.0",
        "flarum/tags": "^0.1.0",
        "fof/analytics": "^0.10.0",
        "fof/best-answer": "^0.2.0",
        "fof/formatting": "^0.2.0",
        "fof/forum-statistics-widget": "^0.3.0",
        "fof/links": "^0.4.1",
        "fof/oauth": "^0.1.0",
        "fof/polls": "^0.1.3",
        "fof/reactions": "^0.4.2",
        "fof/spamblock": "^0.3.0",
        "fof/upload": "^0.11.0",
        "fof/user-bio": "^0.3.1",
        "michaelbelgium/flarum-discussion-views": "^5.0",
        "qiaeru/lang-french": "^1.8"
    }

Additional information

Administration pages are not affected by this error.

clarkwinkelmann commented 3 years ago

Fixed in version 0.10.1. Thanks for the report, and sorry for the inconvenience!