Raised This Month: $ Target: $400
 0% 

Hlstatsx webpages blank, no errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blah91
Junior Member
Join Date: Jul 2011
Old 06-30-2014 , 14:32   Hlstatsx webpages blank, no errors
Reply With Quote #1

Hello,

I'm trying to setup a HLStatsX website for a new TF2 server, however I'm having some issues with the webpage part of the setup. Daemon, databases and gameserver plugins are working fine (stats and ranks are logged) but webpages are totally blank, no errors, no stats. I have turned error reporting on and I have tested that it works with other php scripts.
I have also checked all apache logs (error-log and access-log), nothing. I have managed to get the hlstatsx server work under a different server earlier.

I have also tested mysql connection with simple php scripts and it worked.
Code:
<?php
$mysqli = new mysqli("localhost", "testuser", "testpass", "testdb");
/* check connection */
if ($mysqli->connect_errno) {
    printf("Connect failed: %s\n", $mysqli->connect_error);
    exit();
}

/* check if server is alive */
if ($mysqli->ping()) {
    printf ("Our connection is ok!\n");
} else {
    printf ("Error: %s\n", $mysqli->error);
}

/* close connection */
$mysqli->close();
?>
I'm quite sure that I'm missing something from my php setup. I'm running php version 5.5.14 and my server is running Arch Linux. I have googled for solutions many hours, and I have not found anything to solve this issue. I'm running out of ideas.

halp
Blah91 is offline
Blah91
Junior Member
Join Date: Jul 2011
Old 07-01-2014 , 03:12   Re: Hlstatsx webpages blank, no errors
Reply With Quote #2

Ah, I found the solution. Appereantly HLStatsX requires the mysql.so php extension. I had mysqli.so and pdo_mysql.so enabled only because they were recommended over the mysql.so in php install instructions.

Thread can be closed.
Blah91 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode