Newcomer1989 / TSN-Ranksystem

A PHP Bot that assigns time based server groups on TeamSpeak3.
https://ts-ranksystem.com
GNU General Public License v3.0
144 stars 60 forks source link

Issue after update from Debian Wheezy to Jessie #376

Closed JoniVR closed 6 years ago

JoniVR commented 6 years ago

Hi,

First of all, thanks for this ranksystem, it has served us great and I already donated once just because of how awesome it is. Thanks for your work.

So after updating to Jessie (I did have lots of issues with apache and had to reinstall it) I'm having issues with the ranksystem, I know this is probably something stupid, but I can't figure it out.

I'm getting:

<?PHP
$target = $_SERVER['HTTP_HOST'].rtrim(dirname($_SERVER['PHP_SELF']), '/\\').'/stats/';
if(isset($_SERVER['HTTPS'])) {
    header('Location: https://'.$target);
} else {
    header('Location: http://'.$target);
}
?>

when I try to open it inside a browser.

Here's the link where you can see the issue: https://vitaltactic.be/ranksystem/

Any idea on a way to fix this? Or should I just go ahead an reinstall? Will my database data be preserved in case of a reinstall?

Thanks for your time.

Newcomer1989 commented 6 years ago

That should be a problem with your machine. Seems, there is PHP not correct configurated.

Is there running anything else on your site, which is working?

JoniVR commented 6 years ago

Yes, everything else is working correctly, but none of that is built with php, so it could indeed be an issue with the php configuration. I'll look into that.

Just one more thing, in case I can't fix it and have to reinstall, is it sufficient to remove the ranksystem folder and just do the install process again? Will the SQL data be overwritten or erased or will it just work?

Thanks again.

Newcomer1989 commented 6 years ago

If you install the Ranksystem to the same database, it will be overwritten. So all data would be lost.

Try to install the Ranksystem a second time. New database and new space on the webserver! On the install.php are some checks, to valid your system. If it runs well, the original instance should also runs perfect.

JoniVR commented 6 years ago

Alright thank you, after looking into it some more, it looks like php was just not enabled yet. Still not working, but that's a different issue and not related to this. Updating distribution versions sure is a pain in the ass.... Thanks for your time, helped me a lot!