为什么 joomla 2.5 会话表损坏? [英] why does joomla 2.5 session table corrupt?

查看:18
本文介绍了为什么 joomla 2.5 会话表损坏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Joomla 运行一个网站!2.5.9 7 个月.一切都很顺利,直到本周.周一和今天(周五)网站无法运行,因为****_session 表已损坏.我没有机会查看有关错误的日志.

I am running a website using Joomla! 2.5.9 for 7 months. Everything was going fine until this week. On monday and today(Friday) web site fails to run because of ****_session table has been broken down. I don't have a chance to take a look at logs about what is wrong.

不管怎样,我周一修好了桌子,直到今天一切都很正常.今天它重复了同样的错误.然后我又修复了.不想桌子坏了不想再修.

Anyway, I repaired the table on Monday and everything was normal until today. Today it repeated the same error. Then I repaired again. I don't want the table to be broken and don't want to repair it again.

我想知道 Joomla! 是否存在漏洞!或者服务器端有其他东西.

I want to know if there is a vulnerability about Joomla! or there is something else on server side.

推荐答案

我制作了一个页面,可以在崩溃时手动修复表格.

I have made a page which repairs the table manually when crashed.

<?php
    //file = repair/index.php

    include '../configuration.php'; //has JConfig class

    $cfg = new JConfig();

    $mysqli = new mysqli($cfg->host, $cfg->user, $cfg->password, $cfg->db);

    if($mysqli->query('REPAIR TABLE prefix_session'))
        echo 'Hey!';
    else
        echo 'An error occured call zkanoca';
?>

当我调用 http://example.com/repair 时就可以了.

when I call http://example.com/repair it is OK.

这篇关于为什么 joomla 2.5 会话表损坏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆