Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires sycho/flarum-private-facade, it could not be found in any version, there may be a typo in the package name.

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

    21 days later

    Great extension! and very beautiful!

    However, It occurs errors in landing page, it's not effecting to use but showing a banner says need to refresh

    Here is the console report:

    sw:57 Uncaught ReferenceError: fetchEvent is not defined
    at sw:57:18
    login:119 Uncaught Error: [ItemList] Cannot set content of Item. Key signUp is not present.
    at t.e.setContent (ItemList.tss:147:13)
    at e.<anonymous> (index.tsxx:67:13)
    at e.Mr.forEach.t.<computed> (extend.tss:39:16)
    at e.Mr.forEach.t.<computed> (extend.tss:37:41)
    at e.Mr.forEach.t.<computed> (extend.tss:37:41)
    at e.Mr.forEach.t.<computed> [as items] (extend.tss:37:41)
    at e.n.view (HeaderSecondary.jss:20:60)
    at e.<anonymous> (index.tsxx:29:16)
    at e.Rr.forEach.t.<computed> [as view] (extend.tss:86:24)
    at Function.a (render.jss:30:16)
    3sw:57 Uncaught ReferenceError: fetchEvent is not defined
    at sw:57:18
    webmanifest:1 Manifest: Line: 1, column: 1, Syntax error.
    3sw:57 Uncaught ReferenceError: fetchEvent is not defined
    at sw:57:18
    mount-redraw.jss:15 TypeError: Cannot read properties of undefined (reading 'onbeforeupdate')
    at render.jss:929:60
    at p (render.jss:407:8)
    at f (render.jss:302:11)
    at render.jss:964:4
    at a (mount-redraw.jss:14:10)
    at mount-redraw.jss:25:5
    a @ mount-redraw.jss:15
    7sw:57 Uncaught ReferenceError: fetchEvent is not defined
    at sw:57:18
    5sw:57 Uncaught ReferenceError: fetchEvent is not defined
    at sw:57:18
    (anonymous) @ sw:57
    mount-redraw.jss:15 TypeError: Cannot read properties of undefined (reading 'onbeforeupdate')
    at render.jss:929:60
    at p (render.jss:407:8)
    at f (render.jss:302:11)
    at render.jss:964:4
    at a (mount-redraw.jss:14:10)
    at mount-redraw.jss:25:5
    a @ mount-redraw.jss:15
    (anonymous) @ mount-redraw.jss:25
    requestAnimationFrame (async)
    u @ mount-redraw.jss:23
    L.handleEvent @ render.jss:890
    sw:57 Uncaught ReferenceError: fetchEvent is not defined
    at sw:57:18
    (anonymous) @ sw:57
    mount-redraw.jss:15 TypeError: Cannot read properties of undefined (reading 'onbeforeupdate')
    at render.jss:929:60
    at p (render.jss:407:8)
    at f (render.jss:302:11)
    at render.jss:964:4
    at a (mount-redraw.jss:14:10)
    at mount-redraw.jss:25:5
    a @ mount-redraw.jss:15
    (anonymous) @ mount-redraw.jss:25
    requestAnimationFrame (async)
    u @ mount-redraw.jss:23
    m @ router.jss:111
    Promise.then (async)
    t @ router.jss:126
    E @ router.jss:95
    setTimeout (async)
    n @ router.jss:143
    d @ router.jss:20
    y.set @ router.jss:182
    onclick @ PrivateFacade.tsxx:83
    L.handleEvent @ render.jss:888
    sw:57 Uncaught ReferenceError: fetchEvent is not defined
    at sw:57:18
    (anonymous) @ sw:57
    mount-redraw.jss:15 TypeError: Cannot read properties of undefined (reading 'onbeforeupdate')
    at render.jss:929:60
    at p (render.jss:407:8)
    at f (render.jss:302:11)
    at render.jss:964:4
    at a (mount-redraw.jss:14:10)
    at mount-redraw.jss:25:5
    a @ mount-redraw.jss:15
    (anonymous) @ mount-redraw.jss:25
    requestAnimationFrame (async)
    u @ mount-redraw.jss:23
    L.handleEvent @ render.jss:890
    sw:57 Uncaught ReferenceError: fetchEvent is not defined
    at sw:57:18
    (anonymous) @ sw:57
    mount-redraw.jss:15 TypeError: Cannot read properties of undefined (reading 'onbeforeupdate')
    at render.jss:929:60
    at p (render.jss:407:8)
    at f (render.jss:302:11)
    at render.jss:964:4
    at a (mount-redraw.jss:14:10)
    at mount-redraw.jss:25:5
    a @ mount-redraw.jss:15
    (anonymous) @ mount-redraw.jss:25
    requestAnimationFrame (async)
    u @ mount-redraw.jss:23
    m @ router.jss:111
    Promise.then (async)
    t @ router.jss:126
    E @ router.jss:95
    setTimeout (async)
    n @ router.jss:143
    d @ router.jss:20
    y.set @ router.jss:182
    onclick @ PrivateFacade.tsxx:83
    L.handleEvent @ render.jss:888
    mount-redraw.jss:15 TypeError: Cannot read properties of undefined (reading 'onbeforeupdate')
    at render.jss:929:60
    at p (render.jss:407:8)
    at f (render.jss:302:11)
    at render.jss:964:4
    at a (mount-redraw.jss:14:10)
    at mount-redraw.jss:25:5!<

      Teddan Can you give me a link to your forum so I can track where the error is coming from?

        SychO
        www.xn--fmrv2rkpbv8uymm.cn

        Thank you for help!

          Teddan Oh I see where the issue is, it should be fixed in v0.1.6, just run composer update sycho/flarum-private-facade

            14 days later

            SychO After using this extension, when i disable the extension my forum doesn't work correctly without it.

              SychO
              Just one error, this happens when I disable the extension or use the OAuth Only Extension.

              [2022-04-24 00:16:40] flarum.ERROR: RuntimeException: Route login not found in /home/videogri/domains/grillocom.net/public_html/t/vendor/flarum/core/src/Http/RouteCollection.php:167
              Stack trace:
              #0 /home/videogri/domains/grillocom.net/public_html/t/vendor/flarum/core/src/Http/RouteCollectionUrlGenerator.php(46): Flarum\Http\RouteCollection->getPath()
              #1 /home/videogri/domains/grillocom.net/public_html/t/vendor/acpl/flarum-lscache/src/Middleware/LoginMiddleware.php(32): Flarum\Http\RouteCollectionUrlGenerator->route()
              #2 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/Next.php(51): ACPL\FlarumCache\Middleware\LoginMiddleware->process()
              #3 /home/videogri/domains/grillocom.net/public_html/t/vendor/acpl/flarum-lscache/src/Middleware/LogoutMiddleware.php(33): Laminas\Stratigility\Next->handle()
              #4 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/Next.php(51): ACPL\FlarumCache\Middleware\LogoutMiddleware->process()
              #5 /home/videogri/domains/grillocom.net/public_html/t/vendor/acpl/flarum-lscache/src/Middleware/VaryCookieMiddleware.php(35): Laminas\Stratigility\Next->handle()
              #6 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/Next.php(51): ACPL\FlarumCache\Middleware\VaryCookieMiddleware->process()
              #7 /home/videogri/domains/grillocom.net/public_html/t/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
              #8 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\StartSession->process()
              #9 /home/videogri/domains/grillocom.net/public_html/t/vendor/flarum/core/src/Http/Middleware/CollectGarbage.php(46): Laminas\Stratigility\Next->handle()
              #10 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\CollectGarbage->process()
              #11 /home/videogri/domains/grillocom.net/public_html/t/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
              #12 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ParseJsonBody->process()
              #13 /home/videogri/domains/grillocom.net/public_html/t/vendor/migratetoflarum/canonical/src/Middlewares/CanonicalRedirectMiddleware.php(49): Laminas\Stratigility\Next->handle()
              #14 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/Next.php(51): MigrateToFlarum\Canonical\Middlewares\CanonicalRedirectMiddleware->process()
              #15 /home/videogri/domains/grillocom.net/public_html/t/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
              #16 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\HandleErrors->process()
              #17 /home/videogri/domains/grillocom.net/public_html/t/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php(25): Laminas\Stratigility\Next->handle()
              #18 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\InjectActorReference->process()
              #19 /home/videogri/domains/grillocom.net/public_html/t/vendor/fof/merge-discussions/src/Middleware/Redirection.php(28): Laminas\Stratigility\Next->handle()
              #20 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/Next.php(51): FoF\MergeDiscussions\Middleware\Redirection->process()
              #21 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle()
              #22 /home/videogri/domains/grillocom.net/public_html/t/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
              #23 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\RequestHandler->process()
              #24 /home/videogri/domains/grillocom.net/public_html/t/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle()
              #25 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\BasePathRouter->process()
              #26 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(36): Laminas\Stratigility\Next->handle()
              #27 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/Next.php(51): Laminas\Stratigility\Middleware\OriginalMessages->process()
              #28 /home/videogri/domains/grillocom.net/public_html/t/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle()
              #29 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\BasePath->process()
              #30 /home/videogri/domains/grillocom.net/public_html/t/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle()
              #31 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ProcessIp->process()
              #32 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle()
              #33 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(65): Laminas\Stratigility\MiddlewarePipe->process()
              #34 /home/videogri/domains/grillocom.net/public_html/t/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle()
              #35 /home/videogri/domains/grillocom.net/public_html/t/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
              #36 /home/videogri/domains/grillocom.net/public_html/t/public/index.php(26): Flarum\Http\Server->listen()
              #37 {main}  

                SychO This is the only log I have, the issue only occurs when I disable this extension. This log may be unrelated.

                  jacobgrillo try running php flarum cache:clear and disable that lscache extension beforehand. See what happens then.

                    jacobgrillo are you able to inspect the response headers of that request? I am not sure this is a Flarum issue, it almost sounds like a webserver one.

                      luceos It only shows HTTP ERROR 500. If this is related to webhosting why would it only happen when the extension is disabled?

                        jacobgrillo As I mentioned above, it's a caching issue that seems to be originating from the LS cache extension you are using according to the error in question, you should report it in that extension's discussion, its author will know better what the problem might be.

                        a month later

                        Hello! Great plugin, thanks for that!
                        Is there a way to redirect guests always to the login page? I want that my forum is only accessible for registered users so basically a fully private forum. I can hide all tags etc. from guests but they can still access other than the login/signup route.