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

InvalidPathException after refreshing backend pages #589

Open
SimoLongobardi opened this issue Nov 3, 2024 · 1 comment
Open

InvalidPathException after refreshing backend pages #589

SimoLongobardi opened this issue Nov 3, 2024 · 1 comment
Labels

Comments

@SimoLongobardi
Copy link

Hi,
i'm currently using 5.1.5 and i'm having an issue with page refresh on the backend. Every time a page different from the dashboard (path https://domain.com/public/apps/fusio) is refreshed an PSX\Framework\Loader\InvalidPathException is thrown. No error is given with normal navigation but if page get refreshed the only way to make it work agaih is to go back to the dashboard. The problem also shows after the logout.
Since this is a fresh installation i've tried to re-install fusio from scratch but nothing changed.

More error info:
Messagge: Unknown location in /home/silonweb/endpoint/kamehub/vendor/psx/framework/src/Loader/Loader.php on line 74
Trace: #0 .../vendor/psx/framework/src/Dispatch/Dispatch.php(86): PSX\\Framework\\Loader\\Loader->load()\n#1 .../vendor/psx/engine/src/WebServer/Engine.php(51): PSX\\Framework\\Dispatch\\Dispatch->route()\n#2 .../vendor/psx/framework/src/Environment/Environment.php(49): PSX\\Engine\\WebServer\\Engine->serve()\n#3 .../public/index.php(29): PSX\\Framework\\Environment\\Environment->serve()\n#4 {main}
Context: 70 $this-&gt;eventDispatcher-&gt;dispatch(new RouteMatchedEvent($result, $context));\n71 \n72 $this-&gt;execute($context-&gt;getSource(), $result, $response, $context);\n73 } else {\n<b>74 throw new InvalidPathException(&#039;Unknown location&#039;, $request);\n</b>75 }\n76 }\n77 \n78 public function execute(mixed $source, RequestInterface $request, ResponseInterface $response, Context $context): void\n

@chriskapp
Copy link
Member

Hi @SimoLongobardi,

this is very likely a problem regarding your web-server, since it redirects the request to Fusio and not the index.html, its important to exclude rewrites from the apps/ folder s.
https://github.com/apioo/fusio/blob/master/public/.htaccess#L2

If you use Nginx you can also take a look at our documentation s.
https://docs.fusio-project.org/docs/installation/nginx

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

No branches or pull requests

2 participants