Is there any chance you could add the feature to disable the left (orange) and center the login area?
I currently solved it with CSS, but it now looks a bit strange in the mobile version.
Is there any chance you could add the feature to disable the left (orange) and center the login area?
I currently solved it with CSS, but it now looks a bit strange in the mobile version.
You do not really need this extension to do what you're wanting to do. You could just use Landing Page instead and click the LogIn button when the page loads. The Modal is dismissable though that's the only difference - doing it with this extension and CSS is simple enough though:
.PrivateFacade-AuthView-interface,.PrivateFacade-AuthView-interface::before{display:none;}
.App--privateFacade--primaryBg .Header-title{float:left;}
.PrivateFacade-AuthView-interface, .PrivateFacade-AuthView-form{width:100%;}
.PrivateFacade .Modal{margin:0 auto;}
I already had "Landing Page" in mind.
However, this is not what I am looking for.
"Facade" allows to redirect directly to /login and the rest of the forum is "hidden".
I would also like to use CSS to customize the log-in area later, for which Facade is far more suitable.
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.
hover It's a premium extension: https://extiverse.com/extension/sycho/flarum-private-facade
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!<
SychO After using this extension, when i disable the extension my forum doesn't work correctly without it.
jacobgrillo any errors ?
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}
jacobgrillo looking at the log it seems the problem is related to https://extiverse.com/extension/acpl/flarum-lscache, I would post to that extension's discussion. The extension seems to cache routes or something and when you disable this extension something goes wrong with the cache still trying to access the login route.
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.
luceos I receive the browser error "Website can't handle this request"
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?