robinp7720 / Blue-Stats-Minecraft

Ever wanted a stat interface for truly everything?
http://stats.mysunland.org/
Apache License 2.0
33 stars 14 forks source link

Warning: mysqli::mysqli(): (HY000/2002): Connection timed out #27

Closed Mrcoco29 closed 9 years ago

Mrcoco29 commented 9 years ago

Hey,

I try to install BlueStats. But when I refresh my page i get a lot of errors.

" Warning: mysqli::mysqli(): (HY000/2002): Connection timed out in /home/myserver/public_html/stats/classes/mysqlPlugin.class.php on line 49

Warning: Error while sending STMT_PREPARE packet. PID=15837 in /home/myserver/public_html/stats/classes/config.class.php on line 125

Notice: Undefined variable: count in /home/myserver/public_html/stats/classes/config.class.php on line 67

Notice: Undefined variable: count in /home/myserver/public_html/stats/classes/config.class.php on line 67

Warning: Invalid argument supplied for foreach() in /home/myserver/public_html/stats/plugins/lolmewnStats/core.php on line 54 Base plugin does not exist: Please install this plugin or change the base plugin Notice: Undefined variable: count in /home/myserver/public_html/stats/classes/config.class.php on line 67

Notice: Undefined variable: count in /home/myserver/public_html/stats/classes/config.class.php on line 67

Notice: Undefined variable: count in /home/myserver/public_html/stats/classes/config.class.php on line 67

Notice: Undefined variable: count in /home/myserver/public_html/stats/classes/config.class.php on line 67 .... "

stats3 is installed on the db, but blue stats can't...

Could you help me ?

-- I'm french, sorry for my bad english

Mr_coco29

robinp7720 commented 9 years ago

Try adding

ini_set("default_socket_timeout", 6000);

to the beggining of index.php and tell me if it works

Mrcoco29 commented 9 years ago

It's very long to load and i get the same error.

(I want improve my english, say me if i do big error :p)

robinp7720 commented 9 years ago

The page takes very long to load and i get the same error.

Hmm ok, does the BlueStats database and table exist? If yes, is there anything inside the BlueStats_config table?

Mrcoco29 commented 9 years ago

The BlueStats_config table exists and contains all informations on the config.

robinp7720 commented 9 years ago

DId you go to /admin on your webbrowser? If not, go to it, enter "admin" as username and password then go to /admin/advanced

Mrcoco29 commented 9 years ago

I have already been on the admin panel. However I have a 404 error to mywebsite.com/admin /advanced.

Mrcoco29 commented 9 years ago

error_log file : http://pastebin.com/Uv3s51HP (the first error is not the same than before)

robinp7720 commented 9 years ago

Sorry for the long delay. But this seams to be an error with your database or with your PHP installation.

Mrcoco29 commented 9 years ago

Super...

robinp7720 commented 9 years ago

I'd recommend to try a clean install of php directly from your package manager without changing in of the php configs.

Mrcoco29 commented 9 years ago

I'll do it alone ... Thanks. (Just, if you go on http://yourdomain.com/config.json we can see our db config.

robinp7720 commented 9 years ago

Thanks for reporting this! I'm supprised no one has reported that yet. The reason I'm not helping you with the problem is because I honestly don't know how to fix it. No one else has gotten the problem and I'm not able to reproduce it.

Mrcoco29 commented 9 years ago

yeah, I understand ^^ if I find, I'll tell you.

Mrcoco29 commented 9 years ago

It was the MySQL server IP who was not allowed in the firewalls of the web server... Thank !