- Сообщений: 49
- Спасибо получено: 0
PsychoStats FAQ
- Евгений
-
Автор темы
- Не в сети
- Захожу иногда
-
Меньше
Больше
2 года 5 мес. назад #41
от Евгений
Евгений создал тему: PsychoStats FAQ
FAQ
ВНИМАНИЕ: Спойлер!
[ Нажмите, чтобы развернуть ]
[ Нажмите, чтобы скрыть ]
Program name: Psychostats 3.1
Update issues
1. Table ps_c_XXX doesn't exist
2. Not updating new logs
Visual
3. No images or design
4. "PHP Deprecated" Messages appearing
5. Smarty error: the $compile_dir '/tmp/ps_themes_compiled' does not
exist
6. Special characters displayed incorrectly
7. Live View timing out
8. Warning: call_user_func_array() expects parameter 2 to be array
9. Warning: function_exists() expects parameter 1 to be string
10. Empty columns (Kill, death, ...)
11. One player listed with all stats
Installation
12. Can't connect to local MySQL server through socket
Update issues
1. Table ps_c_XXX doesn't exist
Question:
stats.pl dies with the critical error:
Code:Table '<DATABASE>.ps_<TEXT>' doesn't exist
Answer:
[Most cases]
Try resetting the stats through the Admin interface in the frontend.
If the problem still appears, see below.
[Some cases]
The psychostats user does not have the privilege to create or alter a
table. Please fix this issue through your mysql interface or contact
your webhosting provider.
2. Not updating new logs
Question:
Psychostats has stopped updating my logs.
Answer:
This can be due to several reasons. Please check:
a)
Is your gameserver still creating new logs?
b)
Check the "Error Logs" Tab in your Admin panel to see if it returns an
error like not being able to login to FTP.
c)
In the admin panel go to "Manage Log Sources".
If the logfile name remains the same, an unrecoverable error has
occured with this file.
Either it has gone missing (deleted) or the server crashed and failed
to write a clean EOF (end of file).
-->
If it's missing, remove the logsource in the database and re-add it
through the admin panel.
-->
Otherwise, download the corresponding file to your local computer,
copy-paste it's content in Notepad (NOT Word or similar) to a new file
with the same name and re-upload it to your ftp.
Visual
3. No images or design
Question:
The frontend only shows plain-text messages,
images and design are not loaded.
Answer:
Linux-Server:
try re-uploading your theme, it might have gone messed up.
Windows-Server:
This is a bug in the Windows-Version of Psychostats.
In "includes/class_theme.php" replace (line 116)
Code:$base = dirname($_SERVER);
with
Code:$base = str_replace('\\', '/', dirname($_SERVER));
(Thanks to iDunno)
4. "PHP Deprecated" Messages appearing
Question:
A few lines of error messages starting with
PHP Deprecated:
or
Deprecated:
appear at the top.
Answer:
This is due to PHP 5.3 adding a new type of Notice-messages and won't
affect Psychostats' behaviour.
To get rid of them:
STATS WEBSITE FIX:
Open the file "includes/common.php" and
replace (line 50):
Code:error_reporting(E_ALL ^ E_NOTICE);
with
Code:error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
INSTALLER FIX:
Open the file "install/common.php" and
replace (line 32):
Code:error_reporting(E_ALL ^ E_NOTICE);
with
Code:error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
5. Smarty error: the $compile_dir '/tmp/ps_themes_compiled' does not
exist
Question:
When trying to open the Psychostats frontend, the following error
message appears:
Code:Fatal error: Smarty error: the $compile_dir
'/tmp/ps_themes_compiled' does not exist, or is not a directory
Answer:
This is due to Psychostats creating a temporary folder in the /tmp/
folder which is deleted by the hosting system on every start.
Unfortunately Psychostats does not even try to recreate this folder on
error.
Multiple fixes:
[RECOMMENDED]
Edit index.php and add the following in a new line just after the
opening '< ?php' (no quotes).
Code:if(!is_dir('/tmp/ps_themes_compiled'))
mkdir("/tmp/ps_themes_compiled", 0777);
This will basically recreate the folder whenever it hs gone missing.
Recreate manually through SSH
mkdir /tmp/ps_themes_compiled
2. chmod a+rwx /tmp/ps_themes_compiled
Alternatively
Go to the Admin panel and change the compiledir-location to a folder
within your webspace. Tutorials on how to find your webspace's path
can be found in excess on the net.
Location: Admin Control Panel -> Themes -> Change compile directory
Desperate meaure
Disable template caching in the admin panel.
The panel can be reached by appending /admin/ to your psychostats-url.
This will cause a slight increase on the cpu load but you'll be rid of
this error once and for all.
Location: Admin Control Panel -> Themes -> Disable compile to disk
6. Special characters displayed incorrectly
Question:
Some special characters (including Chinese and Russian) are displayed
as completely other character or question marks.
Answer:
This is due to the database not running in UTF-8 mode. Psychostats 3.2
displays a warning during installation when this is the case.
To fix:
a)
delete *all* contents in the database or simply the database itself
b)
Recreate the database if necessary and after logging in to Phpmyadmin
go to the "Options" tab and change the database charset to UTF.
c)
Reinstall Psychostats - it should work now!
7. Live View timing out
Question:
Live View is timing out, even tough it's correctly configured in the
admin interface.
Answer:
Most probably your webspace provider has blocked outgoing TCP
connections to your gameserver's Port (default: 27015)
Ask them nicely to open that particular port up, however many
providers refuse to do so or ask a one-time or recurring fee to do so.
Some also require you to have rented a dedicated IP.
8. Warning: call_user_func_array() expects parameter 2 to be array
Question:
The following Error appears:
Quote:Warning: call_user_func_array() expects parameter 2 to be array,
string given in *dir tree*\class_table.php on line 163
Answer:
Edit the file class_table.php and change line 163 from:
Quote:$ret = call_user_func_array($callback, $params ? array($html,
$params) : $html);
to
Quote:$ret = call_user_func_array($callback, $params ? array($html,
$params) : array($html));
9. Warning: function_exists() expects parameter 1 to be string
Question:
The following error appears:
Quote:Warning: function_exists() expects parameter 1 to be string,
array given in *dir tree*\class_table.php on line 162
Answer:
Edit class_table.php and replace line 162
Quote: if (function_exists($callback) or is_array($callback)) {
with
Quote:
if (is_array($callback) or function_exists($callback)) {
--Thanks to Friks and Stormtrooper--
10. Empty columns (Kill, death, ...)
Question:
Some columns are missing, including KILL, Death, K:D, ...
Answer:
Your hoster is blocking error messages from being shown and is running
off a recent version of PHP5
Apply these fixes:
Deprecated Messages
Call_userfunc Messages
function_exists Messages
11. One player listed with all stats
Question:
One single player is listed but has the names, ip addresses and stats
of all players.
Answer:
You are running a non-steam server (which by the way is illegal) or a
lan-server.
Go to the admin panel and change in the main configuration screen
(first screen after you login) the "How to track players" from "Track
by Steamid" to "Track by Playername"
Note: this method is not secure as it allows anybody to impersonate a
player that is currently offline (by using his ingame-name) and won't
continue recording a player that changed his or her name.
Installation
12. Can't connect to local MySQL server through socket
Question:
The following error appears:
Quote:Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock
Answer:
Usually this happens if you are using Xampp (by apachefriends.org ) on
Linux.
Instead of using "localhost" as MySQL Host, use "127.0.0.1" (no
quotes), as this will force the server to use it's TCP/IP-socket
instead of the UNIX-style.
If you are not using Xampp and/or it has been working flawlessly
before without having reconfigured,changed, installed or removed
software try restarting mysql, usually with
Quote:/etc/init.d/mysql restart
Generated: 12.01.2013 11:42
all times are GMT
Content ©2009 Speed-Stats.de
Powered by FAQEngine v4.24.00, (c)2001-2009 Boesch EDV-Consulting
Update issues
1. Table ps_c_XXX doesn't exist
2. Not updating new logs
Visual
3. No images or design
4. "PHP Deprecated" Messages appearing
5. Smarty error: the $compile_dir '/tmp/ps_themes_compiled' does not
exist
6. Special characters displayed incorrectly
7. Live View timing out
8. Warning: call_user_func_array() expects parameter 2 to be array
9. Warning: function_exists() expects parameter 1 to be string
10. Empty columns (Kill, death, ...)
11. One player listed with all stats
Installation
12. Can't connect to local MySQL server through socket
Update issues
1. Table ps_c_XXX doesn't exist
Question:
stats.pl dies with the critical error:
Code:Table '<DATABASE>.ps_<TEXT>' doesn't exist
Answer:
[Most cases]
Try resetting the stats through the Admin interface in the frontend.
If the problem still appears, see below.
[Some cases]
The psychostats user does not have the privilege to create or alter a
table. Please fix this issue through your mysql interface or contact
your webhosting provider.
2. Not updating new logs
Question:
Psychostats has stopped updating my logs.
Answer:
This can be due to several reasons. Please check:
a)
Is your gameserver still creating new logs?
b)
Check the "Error Logs" Tab in your Admin panel to see if it returns an
error like not being able to login to FTP.
c)
In the admin panel go to "Manage Log Sources".
If the logfile name remains the same, an unrecoverable error has
occured with this file.
Either it has gone missing (deleted) or the server crashed and failed
to write a clean EOF (end of file).
-->
If it's missing, remove the logsource in the database and re-add it
through the admin panel.
-->
Otherwise, download the corresponding file to your local computer,
copy-paste it's content in Notepad (NOT Word or similar) to a new file
with the same name and re-upload it to your ftp.
Visual
3. No images or design
Question:
The frontend only shows plain-text messages,
images and design are not loaded.
Answer:
Linux-Server:
try re-uploading your theme, it might have gone messed up.
Windows-Server:
This is a bug in the Windows-Version of Psychostats.
In "includes/class_theme.php" replace (line 116)
Code:$base = dirname($_SERVER);
with
Code:$base = str_replace('\\', '/', dirname($_SERVER));
(Thanks to iDunno)
4. "PHP Deprecated" Messages appearing
Question:
A few lines of error messages starting with
PHP Deprecated:
or
Deprecated:
appear at the top.
Answer:
This is due to PHP 5.3 adding a new type of Notice-messages and won't
affect Psychostats' behaviour.
To get rid of them:
STATS WEBSITE FIX:
Open the file "includes/common.php" and
replace (line 50):
Code:error_reporting(E_ALL ^ E_NOTICE);
with
Code:error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
INSTALLER FIX:
Open the file "install/common.php" and
replace (line 32):
Code:error_reporting(E_ALL ^ E_NOTICE);
with
Code:error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
5. Smarty error: the $compile_dir '/tmp/ps_themes_compiled' does not
exist
Question:
When trying to open the Psychostats frontend, the following error
message appears:
Code:Fatal error: Smarty error: the $compile_dir
'/tmp/ps_themes_compiled' does not exist, or is not a directory
Answer:
This is due to Psychostats creating a temporary folder in the /tmp/
folder which is deleted by the hosting system on every start.
Unfortunately Psychostats does not even try to recreate this folder on
error.
Multiple fixes:
[RECOMMENDED]
Edit index.php and add the following in a new line just after the
opening '< ?php' (no quotes).
Code:if(!is_dir('/tmp/ps_themes_compiled'))
mkdir("/tmp/ps_themes_compiled", 0777);
This will basically recreate the folder whenever it hs gone missing.
Recreate manually through SSH
mkdir /tmp/ps_themes_compiled
2. chmod a+rwx /tmp/ps_themes_compiled
Alternatively
Go to the Admin panel and change the compiledir-location to a folder
within your webspace. Tutorials on how to find your webspace's path
can be found in excess on the net.
Location: Admin Control Panel -> Themes -> Change compile directory
Desperate meaure
Disable template caching in the admin panel.
The panel can be reached by appending /admin/ to your psychostats-url.
This will cause a slight increase on the cpu load but you'll be rid of
this error once and for all.
Location: Admin Control Panel -> Themes -> Disable compile to disk
6. Special characters displayed incorrectly
Question:
Some special characters (including Chinese and Russian) are displayed
as completely other character or question marks.
Answer:
This is due to the database not running in UTF-8 mode. Psychostats 3.2
displays a warning during installation when this is the case.
To fix:
a)
delete *all* contents in the database or simply the database itself
b)
Recreate the database if necessary and after logging in to Phpmyadmin
go to the "Options" tab and change the database charset to UTF.
c)
Reinstall Psychostats - it should work now!
7. Live View timing out
Question:
Live View is timing out, even tough it's correctly configured in the
admin interface.
Answer:
Most probably your webspace provider has blocked outgoing TCP
connections to your gameserver's Port (default: 27015)
Ask them nicely to open that particular port up, however many
providers refuse to do so or ask a one-time or recurring fee to do so.
Some also require you to have rented a dedicated IP.
8. Warning: call_user_func_array() expects parameter 2 to be array
Question:
The following Error appears:
Quote:Warning: call_user_func_array() expects parameter 2 to be array,
string given in *dir tree*\class_table.php on line 163
Answer:
Edit the file class_table.php and change line 163 from:
Quote:$ret = call_user_func_array($callback, $params ? array($html,
$params) : $html);
to
Quote:$ret = call_user_func_array($callback, $params ? array($html,
$params) : array($html));
9. Warning: function_exists() expects parameter 1 to be string
Question:
The following error appears:
Quote:Warning: function_exists() expects parameter 1 to be string,
array given in *dir tree*\class_table.php on line 162
Answer:
Edit class_table.php and replace line 162
Quote: if (function_exists($callback) or is_array($callback)) {
with
Quote:
if (is_array($callback) or function_exists($callback)) {
--Thanks to Friks and Stormtrooper--
10. Empty columns (Kill, death, ...)
Question:
Some columns are missing, including KILL, Death, K:D, ...
Answer:
Your hoster is blocking error messages from being shown and is running
off a recent version of PHP5
Apply these fixes:
Deprecated Messages
Call_userfunc Messages
function_exists Messages
11. One player listed with all stats
Question:
One single player is listed but has the names, ip addresses and stats
of all players.
Answer:
You are running a non-steam server (which by the way is illegal) or a
lan-server.
Go to the admin panel and change in the main configuration screen
(first screen after you login) the "How to track players" from "Track
by Steamid" to "Track by Playername"
Note: this method is not secure as it allows anybody to impersonate a
player that is currently offline (by using his ingame-name) and won't
continue recording a player that changed his or her name.
Installation
12. Can't connect to local MySQL server through socket
Question:
The following error appears:
Quote:Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock
Answer:
Usually this happens if you are using Xampp (by apachefriends.org ) on
Linux.
Instead of using "localhost" as MySQL Host, use "127.0.0.1" (no
quotes), as this will force the server to use it's TCP/IP-socket
instead of the UNIX-style.
If you are not using Xampp and/or it has been working flawlessly
before without having reconfigured,changed, installed or removed
software try restarting mysql, usually with
Quote:/etc/init.d/mysql restart
Generated: 12.01.2013 11:42
all times are GMT
Content ©2009 Speed-Stats.de
Powered by FAQEngine v4.24.00, (c)2001-2009 Boesch EDV-Consulting
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.