rathena / FluxCP

A web-based Control Panel for rAthena servers written in PHP. Manage player accounts, databases, support tickets, etc via your browser.
GNU Lesser General Public License v3.0
180 stars 211 forks source link

Blank Page after Login #351

Closed mazvi closed 1 year ago

mazvi commented 1 year ago

Environment

- PHP: PHP Version 5.6.37
- MySQL: 10.2.44-MariaDB

Current Behavior

after update to latest fluxcp if we login to fluxcp we will get blank page at ?module=account&action=login&return_url=

Expected Behavior

No response

Steps To Reproduce

Update to latest git

git pull
remote: Enumerating objects: 96, done.
remote: Counting objects: 100% (96/96), done.
remote: Compressing objects: 100% (58/58), done.
remote: Total 96 (delta 38), reused 77 (delta 35), pack-reused 0
Unpacking objects: 100% (96/96), done.
From https://github.com/rathena/FluxCP
   833fa09..4b35631  master     -> origin/master
Updating 833fa09..4b35631

Updating 833fa09..4b35631

then try login

after update to latest fluxcp if we login to fluxcp we will get blank page at ?module=account&action=login&return_url=

Anything else?

No response

Unarmed88 commented 1 year ago

I also experienced this kind of thing, but i solved this. This happen due to application incorrect config especially on host address and setting section. You should not use localhost as default setting on application config

mazvi commented 1 year ago

I also experienced this kind of thing, but i solved this. This happen due to application incorrect config especially on host address and setting section. You should not use localhost as default setting on application config

if on git before it was normal it should be normal now without any changes to the config, besides my serveraddress isn't localhost either iam using the domainname like panel.domainro.com

secretdataz commented 1 year ago

Blank page usually means PHP errored out before anything can be rendered. Turn on error messages in your PHP settings.

mazvi commented 1 year ago

Solved by added / on config application.php 'BaseURI' => '/',

but this is strange, its must be fine without /

i think the problem come from here

https://github.com/rathena/FluxCP/commit/9eb87a62bfce6ac068391e90325710c122a79b3b

Find the // Sanitize BaseURI. (leading forward slash is mandatory.)

vstumpf commented 1 year ago

Please try #352 for a fix