Comments (11)
Do you have a rankme
table in your SQL database?
from csgorankmeweb.
Yes of course
from csgorankmeweb.
Are you able to provide a screenshot or something of the database and any error logs other than that? We normally have seen that error when someone renames the default RankMe table or they haven't run the server plugin to generate the table.
from csgorankmeweb.
Table is default rankme name, been using it for a while, has 10k+ records in it, and I've queried to it from other RankMe web panels before so I don't think that's the issue. I'll see what my browser dev console spits out later today.
from csgorankmeweb.
Did you happen to get the console output or did you resolve this on your own?
from csgorankmeweb.
Sorry, was away. I'm getting a 500 server error because of my no-referrer-when-downgrade
policy.
Error looks something like this:
Request URL: http://xyz.xyz/control/leaderboard/leaderboardGrab.php?*bunch of garbage*
Request Method: GET
Status Code: 500 Internal Server Error
Remote Address: xx.xx.xx.xx:xx
Referrer Policy: no-referrer-when-downgrade
My site only uses http so i'm not sure why I'm getting this error, I don't know enough about apache to be honest, any suggestions?
from csgorankmeweb.
Sorry, I was traveling.
I'm fairly sure that the no-referrer-when-downgrade
is not related to the 500 error. Do you have any errors in your PHP error_log? I think the errors in your UI is from the leaderboardGrab.php
throwing the 500 error, we just need to know the error in your PHP error log to try and solve the problem.
from csgorankmeweb.
These are the errors that are thrown when going to that page in my log.
PHP Notice: Undefined variable: sql_details in /home/admin/web/...../control/leaderboard/leaderboardGrab.php on line 77, referer: http://..../leaderboards.php
PHP Fatal error: Uncaught Error: Call to a member function prepare() on null in /home/admin/web/..../control/leaderboard/ssp.class.php:423\nStack trace:\n#0 /home/admin/web/..../control/leaderboard/ssp.class.php(248): SSP::sql_exec(NULL, Array, 'SELECT
name, ...')\n#1 /home/admin/web/..../control/leaderboard/leaderboardGrab.php(77): SSP::simple(Array, NULL, 'rankme', 'id', Array)\n#2 {main}\n thrown in /home/admin/web/..../control/leaderboard/ssp.class.php on line 423, referer: http://..../leaderboards.php
I first thought it might be an sql config error but I dont see $sql_details in the config so.. The install process wasn't writing to the config.php so I manually put the values in. Maybe I configured it wrong... what is $dbh supposed to look like?
Mine is $dbh = new PDO("mysql:host=XX.XX.XX.XX ;dbname=my_dbname", 'my_dbuser', 'mypassword');
from csgorankmeweb.
Yea it would appear we construct an array now in addition to the $dbh
. Try adding this to your config with your database information and seeing if that fixes your issue. When we did that we didn't update the example config or complete the transition to the SQL class we are using it would appear. Likely as we are rewriting the system.
$sql_details = array(
'user' => '',
'pass' => '',
'db' => '',
'host' => ''
);
from csgorankmeweb.
I have updated the example.config.php
to reflect this change now as well.
from csgorankmeweb.
This fixed it, thank you for the help man I appreciate it!
from csgorankmeweb.
Related Issues (20)
- Stop JS from Leaderboards HOT 9
- How to add rank number HOT 5
- Leaderboard Generation Errors HOT 4
- Forgot Admin password HOT 3
- [Optional Feature Request ] Ability to See VAC Ban Status of the user. HOT 4
- Weird Database Issue HOT 27
- README spelling/grammar HOT 2
- Unique characters not shown correctly HOT 3
- deployment pipeline for a demo instance of rankme
- better documentation
- configure cname and github pages for documentation in repo
- Auto-updater from GitHub releases
- Cant login HOT 17
- Few databases HOT 1
- Leaderboard bot profile
- install/install.php
- Invalid JSON Response HOT 1
- Setup with no DB password HOT 2
- What about PORT? I have custom port, iF i use host:port id does not work, how to fix it ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csgorankmeweb.