# Bug: question mark links have gone missing from the maps

**URL:** https://publichappinessmovement.com/t/topic/3733
**Category:** React Js and Meteor
**Tags:** done, webdev, reactjs
**Created:** [26 September 2023 14:04 UTC](https://publichappinessmovement.com/t/topic/3733 "2023-09-26T14:04:55Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [26 September 2023 14:04 UTC](https://publichappinessmovement.com/t/topic/3733/1 "2023-09-26T14:04:55Z")

</div>

In the Local side there used to be question mark icons in the filter which when clicked would redirect users to an About and How To guide for each activity. I’m not sure when and why they disappeared. They looked like this, and i think they had a small circle around the ? mark to make it look more like a button.

 ![image](https://publichappinessmovement.com/uploads/default/original/2X/8/8c3382b896ebf7c4e46d8b95262ca1a3ce11c8ba.png)

You can see the links are still present in i18n, but are not showing up on the map: [fl-maps/imports/both/i18n/en/phm/categories.json at master · focallocal/fl-maps · GitHub](https://github.com/focallocal/fl-maps/blob/master/imports/both/i18n/en/phm/categories.json)

The expected behviour if there is no link is to not show the ? icon

---

<div class="post-metadata">

### Author: ![nyne87](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/nyne87/32/1375_2.png) [@nyne87](https://publichappinessmovement.com/u/nyne87)
#### Post date: [16 October 2023 05:56 UTC](https://publichappinessmovement.com/t/topic/3733/2 "2023-10-16T05:56:55Z")

</div>

What page can I access this filter on?

Edit: Actually I found it, however it just links me to the production site ([https://publichappinessmovement.com/docuss/m\_gather](https://publichappinessmovement.com/docuss/m_gather)). I read most of the documentation, but maybe I’m missing something. I can certainly fix this issue.

 ![image](https://publichappinessmovement.com/uploads/default/original/2X/b/ba08526dfae6bae84906b344ab161f4b53d99433.png)

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [16 October 2023 08:52 UTC](https://publichappinessmovement.com/t/topic/3733/3 "2023-10-16T08:52:10Z")

</div>

Sorry @nyne87 what is it you’re clicking that’s linking you to the production site, and is it the homepage you’re being linked to?

You might be running into this issue which i just noticed yesterday: [https://publichappinessmovement.com/t/topic/2868/41](https://publichappinessmovement.com/t/topic/2868/41)

The homepage links were working well not too long ago so i’m not sure what changed.

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [16 October 2023 12:42 UTC](https://publichappinessmovement.com/t/topic/3733/4 "2023-10-16T12:42:02Z")

</div>

Ah wait, i think i got it. You mean the links where the ‘?’ marks which were in the filter are supposed to send users to, right?

Most of those are on our old site which currently redirects to the PHM homepage. Copying them all across is a task on my to-do list.

There’s a few i’ve done already here which you can use to test it out: [Approved Activities List - Public Happiness](https://publichappinessmovement.com/c/raok/activitieslist)

The others just leave as they are and once the links are back i’ll copy the pages over and hook the urls up in i18n

---

<div class="post-metadata">

### Author: ![nyne87](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/nyne87/32/1375_2.png) [@nyne87](https://publichappinessmovement.com/u/nyne87)
#### Post date: [16 October 2023 16:24 UTC](https://publichappinessmovement.com/t/topic/3733/5 "2023-10-16T16:24:26Z")

</div>

I’m actually just trying to find where I can debug and test this page in the local dev environment.

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [16 October 2023 17:32 UTC](https://publichappinessmovement.com/t/topic/3733/6 "2023-10-16T17:32:24Z")

</div>

Ah, you haven’t set up the Discourse side so you don’t have the navbar. Its a good point though, that information should be easier to find.

It’s /map:  
[https://fl-maps.publichappinessmovement.com/map](https://fl-maps.publichappinessmovement.com/map)

You can find all the pages and their relation on the maps side here: [https://github.com/focallocal/fl-maps/blob/master/public/dcs-website.json](https://github.com/focallocal/fl-maps/blob/master/public/dcs-website.json)

---

<div class="post-metadata">

### Author: ![nyne87](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/nyne87/32/1375_2.png) [@nyne87](https://publichappinessmovement.com/u/nyne87)
#### Post date: [16 October 2023 18:13 UTC](https://publichappinessmovement.com/t/topic/3733/7 "2023-10-16T18:13:12Z")

</div>

Nice ok. I will work on setting up Discourse.

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [16 October 2023 19:07 UTC](https://publichappinessmovement.com/t/topic/3733/8 "2023-10-16T19:07:11Z")

</div>

Up to you. There’s plenty of tasks available which don’t touch Discourse, but longer term its easier as you can see how everything ties together on localhost.

---

<div class="post-metadata">

### Author: ![nyne87](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/nyne87/32/1375_2.png) [@nyne87](https://publichappinessmovement.com/u/nyne87)
#### Post date: [20 October 2023 05:30 UTC](https://publichappinessmovement.com/t/topic/3733/9 "2023-10-20T05:30:08Z")

</div>

Almost there, getting the below when launching the dev env with discourse running:

 ![image](https://publichappinessmovement.com/uploads/default/original/2X/e/ebb311ed4e479b19b15578f3e09c201832e41a4f.png)

I’m sure I’ll figure it out, just wanted to see if you’ve encountered this off the top.

Edit: I actually think there is more setup to be done. I have to edit the app.yml file and I’m trying to locate it. Thx.

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [20 October 2023 08:16 UTC](https://publichappinessmovement.com/t/topic/3733/10 "2023-10-20T08:16:03Z")

</div>

1st time i’ve seen that one. I’ll just type out the error message so its easy to find for others and we can move this into our documentation section once its resolved.

Error compiling CSS asset

Runtime error: Discourse does not support compiling scss/sass files via sprockets

I don’t know what would have caused it, but did you try pre-compiling your assets?

> **[SCSS not compiling, suggestions?](https://discuss.rubyonrails.org/t/scss-not-compiling-suggestions/78926)**
>
> Hi all, I’ve been actively developing an application throughout the year. I have a small SCSS file compiling classes for my font awesome icon classes. This has been working just fine up until this week. I just added a few icon names and realized...

---

<div class="post-metadata">

### Author: ![nyne87](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/nyne87/32/1375_2.png) [@nyne87](https://publichappinessmovement.com/u/nyne87)
#### Post date: [21 October 2023 05:57 UTC](https://publichappinessmovement.com/t/topic/3733/11 "2023-10-21T05:57:32Z")

</div>

Think I’m missing these steps, but having trouble. Is this something I have to do locally?

- Copy the plugin’s GitHub `git clone` url.
- Access your container’s `app.yml` file (present in `/var/discourse/containers/`)

```auto
cd /var/discourse
nano containers/app.yml

```

- Add the plugin’s repository URL to your container’s `app.yml` file:

```auto
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - sudo -E -u discourse git clone https://github.com/discourse/docker_manager.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-spoiler-alert.git

```

Add the plugin’s `git clone` url just below the line containing `git clone https://github.com/discourse/docker_manager.git`)Follow the existing format of the `docker_manager.git` line; if it does not contain `sudo -E -u discourse` then insert `- git clone https://github.com/discourse/discourse-spoiler-alert.git`.

- Rebuild the container:

```auto
cd /var/discourse
./launcher rebuild app

```

Maybe we can schedule a call so I can see how your discourse integration looks if I can’t figure it out? I’m very close, dev env runs but as soon as I spin up the discourse server on localhost:4200, I get that error.

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [21 October 2023 11:08 UTC](https://publichappinessmovement.com/t/topic/3733/12 "2023-10-21T11:08:43Z")

</div>

That 1st part is for the plugins we use/build.

You can find the full list here:

> [@Discourse Plugins (this forum)](https://publichappinessmovement.com/t/topic/1315):
>
> Quick Install If you already know what you’re doing here’s the code you need to install the currently used plugins: cd /var/discourse nano containers/app.yml hooks: after\_code: - exec: cd: $home/plugins cmd: - git clone https://github.com/paviliondev/discourse-follow.git #- git clone https://github.com/paviliondev/discourse-landing-pages.git - git clone https://github.com/discourse/docker\_manager.git - git clone https://github.co…

Then you rebuild the app. Once they are both running independently we hook them together with our plugin Docuss: [Components - Docuss](https://publichappinessmovement.com/t/topic/1144)

Which inserts the React app inside of Discourse as an iframe and deals with communication between the two.

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [21 October 2023 11:15 UTC](https://publichappinessmovement.com/t/topic/3733/13 "2023-10-21T11:15:06Z")

</div>

@Marvelxy have i missed anything?

Also I’m not sure if i can, but would it make setup of localhost easier if i can save a Discourse backup file with all our settings just the content stripped out, so new devs would only need to restore it to get the two apps running together?

---

<div class="post-metadata">

### Author: ![Marvelxy](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/marvelxy/32/696_2.png) [@Marvelxy](https://publichappinessmovement.com/u/Marvelxy)
#### Post date: [22 October 2023 14:51 UTC](https://publichappinessmovement.com/t/topic/3733/14 "2023-10-22T14:51:14Z")

</div>

I didn’t go through the docker route when in installed it, I installed without docker. I think you should try that option.

---

<div class="post-metadata">

### Author: ![nyne87](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/nyne87/32/1375_2.png) [@nyne87](https://publichappinessmovement.com/u/nyne87)
#### Post date: [22 October 2023 17:34 UTC](https://publichappinessmovement.com/t/topic/3733/15 "2023-10-22T17:34:15Z")

</div>

Yea I haven’t gone the docker route either, just wasn’t sure if I had to. I have discourse fully installed and spins up just fine. However as soon as it’s up and I run the dev env for phm in tandem, I get that error message for phm.

```auto
Runtime error: Discourse does not support compiling scss/sass files via sprockets

```

I followed this guide for Discourse: [Install Discourse on macOS for development - developers - Discourse Meta](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772)

I think where I may be getting stuck is with the Docuss plug-in ([GitHub - sylque/dcs-discourse-plugin: A Discourse plugin that allows to integrate your website or web app with Discourse](https://github.com/sylque/dcs-discourse-plugin)), as their documentation on github appears to be docker related and what I was referencing above.

---

<div class="post-metadata">

### Author: ![nyne87](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/nyne87/32/1375_2.png) [@nyne87](https://publichappinessmovement.com/u/nyne87)
#### Post date: [22 October 2023 20:39 UTC](https://publichappinessmovement.com/t/topic/3733/16 "2023-10-22T20:39:05Z")

</div>

Wondering if I’m on the wrong branch? I’m still working on deploy-phm currently. Not super familiar with this environment, so unsure if I’m missing something along those lines or if my settings.json file needs to be adjusted.

---

<div class="post-metadata">

### Author: ![nyne87](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/nyne87/32/1375_2.png) [@nyne87](https://publichappinessmovement.com/u/nyne87)
#### Post date: [22 October 2023 23:38 UTC](https://publichappinessmovement.com/t/topic/3733/17 "2023-10-22T23:38:21Z")

</div>

Ok, getting somewhere, yay progress!. I’m now getting:

```auto
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'docuss_enabled')

```

And I see @AndyatFocallocal you had this error 2 yrs back and you posted it on reddit, which you may have gotten some help privately.

Found this thread: [Updating Docuss to work with new Discourse - #26 by AndyatFocallocal](https://publichappinessmovement.com/t/topic/2544/26) but still getting the error.

Edit: Think it’s actually my version of discourse. The property SiteSettings from Discourse.Application doesnt exist. I’m going to conform the docuss plugin to the new specs and see how it goes. Hope re-editing my replies are spamming y’all.

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [23 October 2023 08:28 UTC](https://publichappinessmovement.com/t/topic/3733/18 "2023-10-23T08:28:26Z")

</div>

The branch is correct.

Let us know whether the new version works. Did you follow the Docuss setup guide as that contains some settings which would need to be set?

Would be great if you record your process so others can follow as it seems like its been a tricky one and i’m sure there’s lots of great tips, dead ends and solutions that will help others in the future 🙂

---

<div class="post-metadata">

### Author: ![nyne87](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/nyne87/32/1375_2.png) [@nyne87](https://publichappinessmovement.com/u/nyne87)
#### Post date: [23 October 2023 17:17 UTC](https://publichappinessmovement.com/t/topic/3733/19 "2023-10-23T17:17:02Z")

</div>

Yes certainly will when I get it working. Running into CORS error now when docuss tries to access the settings file here: [fl-maps/public/dcs-website.json at master · focallocal/fl-maps · GitHub](https://github.com/focallocal/fl-maps/blob/master/public/dcs-website.json)

Is that the exact URL we place here?

 ![image](https://publichappinessmovement.com/uploads/default/original/2X/3/351789c4cc147c5a161046f38ddcf6ecdb897d3f.png)

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [23 October 2023 17:25 UTC](https://publichappinessmovement.com/t/topic/3733/20 "2023-10-23T17:25:42Z")

</div>

Pretty sure its this one, let me check

> <https://github.com/focallocal/fl-maps/blob/deploy-phm/public/dcs-website.json>

If anything is missing from the walkthrough please make a note of it and we’ll make sure together that it gets filled in.

There’s also the full site setup walkthrough which is for the online version but might contain anything which is missing: [Complete Walkthrough - Setting up an instance of our platform](https://publichappinessmovement.com/docs?topic=3346)

[Next page](https://publichappinessmovement.com/t/topic/3733.md?page=2)
