Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   Tech Support (https://novahq.net/forum/forumdisplay.php?f=37)
-   -   Babstats for php5.6 (https://novahq.net/forum/showthread.php?t=48021)

plazma 12-17-2016 02:47 AM

Babstats for php5.6
 
Hi, i see "Scott NHQ" kindly posted a updated/modified version of babstats 1.7.9 standalone php scripts that say they been upgraded to run on php5.6 or above a few months back.

However ive tried it on version 7 and also 5.6 and in both cases i get the following errors:

1. when running the install it tells me the database has failed... although it does appear to create it correctly.

2. When i login as admin to create the servers i get the message "Failed: Could not add server to database!" and looking at the apache log most pages are spitting out "PHP Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /var/www/html/JOStats/mods/admin/servers.php on line 61, referer: http://192.168.250.11/JOStats/admin.php?section=servers"

Does anyone else have this running on 5.6 that can point me in the right direction, where am i going wrong?

Scott 12-17-2016 11:38 AM

I think you are not setting up the mysql database properly. What version of mysql are you using? Do you see the tables created in the database after you ran the install script?

Looking at the source code of servers.php, line 61 looks like a very simple query "SELECT ALL SERVERS" but it cannot find the table, so that's most likely your issue.


The database you entered in the config.php needs to be correct:

$joDbht = "localhost"; //Database host name.
$joDbnm = ""; //Database name.
$joDbun = ""; //Database username.
$joDbpw = ""; //Database password.

ragonese 03-27-2017 05:04 PM

where is the download for babstats that runs on php 5.6
 
We are updating our site and we are currently switching to php 5.6

ragonese 03-29-2017 12:39 PM

location of Neos_Chronos installation
 
Do you install Neos_Chronos under the Public_html/Neos_Chronos/ folder or do you install it under Public_html/modules/Neos_Chronos/ ?

Scott 03-29-2017 08:17 PM

That depends if you have PHPNuke or something else? I usually would install it to Public_html/Neos_Chronos/

BUT I'm not sure Neos_Chronos is compatible with PHP 5.6 yet :(


All times are GMT -5. The time now is 12:00 PM.

Powered by vBulletin®