Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
Pages: 1
Hi remdex im getting a blank page when i try to access statistics
On my error.log i get this
[30-Jan-2015 18:13:02 America/Sao_Paulo] PHP Warning: php_strip_whitespace() has been disabled for security reasons in /home/discabos/public_html/chat/lib/core/lhtpl/tpl.php on line 209
On my debug output in the screen i get this:
PDOException Object
(
[message:protected] => SQLSTATE[HY000]: General error: 126 Incorrect key file for table './discabos_chat/lh_msg.MYI'; try to repair it
[string:Exception:private] =>
[code:protected] => HY000
[file:protected] => /home/discabos/public_html/chat/lib/core/lhchat/lhchat.php
[line:protected] => 403
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /home/discabos/public_html/chat/lib/core/lhchat/lhchat.php
[line] => 403
[function] => execute
[class] => PDOStatement
[type] => ->
[args] => Array
(
)
)
[1] => Array
(
[file] => /home/discabos/public_html/chat/lib/core/lhchat/lhchatstatistic.php
[line] => 87
[function] => getCount
[class] => erLhcoreClassChat
[type] => ::
[args] => Array
(
[0] => Array
(
[filter] => Array
(
[lh_msg.user_id] => 0
)
[customfilter] => Array
(
[0] => FROM_UNIXTIME(lh_msg.time,'%Y%m') = 201501
)
[innerjoin] => Array
(
[lh_chat] => Array
(
[0] => lh_msg.chat_id
[1] => lh_chat.id
)
)
)
[1] => lh_msg
[2] => count(lh_msg.id)
)
)
[2] => Array
(
[file] => /home/discabos/public_html/chat/modules/lhchat/statistic.php
[line] => 17
[function] => getNumberOfChatsPerMonth
[class] => erLhcoreClassChatStatistic
[type] => ::
[args] => Array
(
[0] => Array
(
)
)
)
[3] => Array
(
[file] => /home/discabos/public_html/chat/lib/core/lhcore/lhmodule.php
[line] => 89
[args] => Array
(
[0] => /home/discabos/public_html/chat/modules/lhchat/statistic.php
)
[function] => include
)
[4] => Array
(
[file] => /home/discabos/public_html/chat/lib/core/lhcore/lhmodule.php
[line] => 437
[function] => runModule
[class] => erLhcoreClassModule
[type] => ::
[args] => Array
(
)
)
[5] => Array
(
[file] => /home/discabos/public_html/chat/index.php
[line] => 27
[function] => moduleInit
[class] => erLhcoreClassModule
[type] => ::
[args] => Array
(
)
)
)
[previous:Exception:private] =>
[errorInfo] => Array
(
[0] => HY000
[1] => 126
[2] => Incorrect key file for table './discabos_chat/lh_msg.MYI'; try to repair it
)
)
Do you know how can i fix it?
Offline
1. php_strip_whitespace about this i cannot do anything. It's your hosting configuration
2. About second, seems your table crashed, please use InnoDB engine for DB. MyISAM is old and not reliable under heavy load.
You can try to execute table repair in phpmyadmin or any other DB tool.
Offline
Hi Remdex i look at my tables and it seems that lh_msg was crashed. I tried to execute table repair but it gives me an error on that table.
I empty that table and then on LHC system setting update the database, and now the statistics are working.
Thanks
Offline
Pages: 1