Closed carbonemt closed 6 years ago
Hi Cory, thank you for the interest in our plugin. We'd be happy to assist you.
The first error is related to data tables, it is nothing to worry about because it is caused by the second error. You said you only see users and servers in your database structure, those are the only tables this plugin creates. the table leadwelc_stats.stats
should be the table generated by the rankme plugin install on the CS:GO server. I will show you a picture of what I mean and how it looks filled out.
Here is a picture of my database, (Database) you can see I have users, servers, and rankme tables, those are the tables I want to be used by this plugin. The servers and users table are generated by running the installer and the rankme table is generated by the CS:GO server. Here is what I would enter in the setup (install/install.php) (Install)
Let me know if there is anything that needs to be cleared up or any way I can be of assistance.
wow fast response! thank you.
So basically, my settings for the CSGO plugin are not correct and thats why the table isnt being created, thus the error?
Yes, is the plugin working on the CS:GO server, for instance, is it saving stats? If you get a kill and type !rank will it show the proper stats?
Well it did before i changed the mysql. When I made that 1, it stopped working.
By changing the mySQL are talking about changing it to a new server? Or what exactly changed?
In the kento.rankme.cfg, I change rankme_mysql to 1
after that, plugin wont load on the server. When I change it back to 0, it works fine, but nothing communicates with the website.
in the database.cfg I added the rankme database connection information.
Do you have any errors in your sourcemod logs?
Not that I can find and when I use the sm_help, the commands show up, but they dont work.
Try checking addons/sourcemod/logs I think. To see if you have an error_ something log file I believe.
No sir. No errors in there. I also opened up the 2 most recent. None are showing any errors. Rankme verision appears though, but like i said, it doesnt response on the server with rankme_mysql is 1. Which is really weird that would break the plugin.
It's weird to me that it breaks when you set it to 1 and doesn't generate a log of some sort for the failure. Are you able to view the console logs to see if during startup if throws an error?
I was going to say, from my point of view I would check that the connection info added database.cfg is correct but if it was wrong there should be an error thrown.
Ok good news. I had // on the port. I removed that and now its working with mysql 1.
However, now I get a 500 error on the website. http://fearthelordgaming.com/stats, but my actual website is fine. This is a weird issue lol
and ya no error logs.
Is there an error_log generated in any of the folders on your website?
I cant find one, no
I lied. all the errors are in the crash log
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
L 11/07/2017 - 10:48:12: "GOTV<85>
but thats probably not what you're looking for
That is your game server crash log, we are looking for the web server error_log. Usually, it is in the working directory of the file that crashed, so check your public_html/stats/ folder for an error_log and also check folders like Control or Views and make sure you don't see one.
ohh. Im sorry bout that. I can not find an error log.
is there a config.php that is made?
yes. The stats worked before, except that it wasnt being imported. Once I change the //port to port, thats when I got the 500 error on the website
Check the config and make sure that all the database connections look correct. There should be some different connection strings.
I checked them. they all look good. Im going to re-install and try that.
Ok, also if your mySQL is not on default port add it in by using the following convention. mysql:host=localhost;port=3307;dbname=testdb, basically just add a ;port=####;
in the config.php
reinstall didnt work and port didnt either. this is interesting.
Is your SQL server on the same host as your website. There is a chance that communication between the two is blocked when it was working earlier, did any of the data from the databases show up? Like your servers, you entered?
Ya the database received the rankme table and I am inside of it. the website is on the same server as the database. Its using cpanel so I am using localhost.
That sounds good and correct. What is your PHP version?
PHP7
can you add a file called phpVersion.php and inside just add
<?php phpinfo(); ?>
done
Ahh.... See how that errors out too? I believe this may be a permissions error.
I still see the 500 error.
ohhhh I see what you mean.
Does your permissions look the the following: Picture
Base folder should be 0755
BOOOM fixed! Permission was set to 777. changing it to 755 worked.
Thanks for you help!!!
Very good, glad to be of assistance, let us know if there is anything ever that can be done to improve it. We're always happy to help.
Great plugins guys. Really excited to get this going.
However, I ran into an issue and im not really sure what its trying to tell me:
DataTables warning: table id=LeaderBoardTable - An SQL error occurred: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'leadwelc_stats.stats' doesn't exist
I checked the tables and there are only users and servers. Nothing else. Any advice?
Thank you for your time