English 中文(简体)
日 本: 尽管所有3个主要joomla表都有用户,但无法装上用户。
原标题:JUser::_load: Unable to load user although the user exists in all 3 main joomla tables

我已经有了这一用户,在三个主要表格中,即:用户——和其他2个ro-和 a-地图中,如果从构成部分中使用联系纽子,就会产生这一错误。

错误如下:

JUser::_load: Unable to load user with id: 160529
Error loading Modules:MySQL server has gone away SQL=SELECT m.*, am.params as adv_params FROM jos_modules as m LEFT JOIN jos_advancedmodules as am ON am.moduleid = m.id WHERE m.published = 1 AND m.access <= 1 AND m.client_id = 0 ORDER BY m.ordering, m.id  

请不要担心其他傲慢者(因为一米试图为这一护堤提供商找到解决办法),但此时此刻,当我们使用联系网时,不能把用户装入这一joomla构成部分时,我感到严重不安。

• 《法典》

defined( _JEXEC ) or die( Restricted access ); 

$to = "";
$subject = "";
$message = "";
$Itemid = JRequest::getInt( Itemid );

$to = $this->msgSendInfo[0];
$subject = $this->msgSendInfo[1];
$message = $this->msgSendInfo[2];

$document =& JFactory::getDocument();
$document->addScriptDeclaration($this->script);
$document->addScriptDeclaration($this->users);
?>

<!-- Title -->
<div class="fsl_h3title"><b><?php echo JText::_( JBJOBS_NEWMESSAGE ); ?></b></div>
<!--<div runat="server" ID="divContent" class="border" contenteditable="true"> 
    <?php echo $message; ?>
</div>-->
<!-- Begin Form for message -->
<form action="index.php" method="post" name="adminForm" id="adminForm" >
<div class="col100">
    <table class="admintable jbj_tblborder" width="100%">
        <tr>
            <td width="100" align="right" class="key">
                <label for="to">
                    <?php echo JText::_(  JBJOBS_TO  ); ?>:
                </label>
            </td>
            <td>
                <input class="text_area" type="text" name="to" id="to" size="32" maxlength="100" value="<?php echo $to; ?>" onkeyup="return getUser()"  readonly />
                <!--<select id="toList" style="width: 200px; float: left; margin-left: 8px; vertical-align: middle;" onchange="return setUser()" size="2">
                    <option><?php echo JText::_(  JBJOBS_NOSUGGESTIONS  ); ?></option>
                </select>-->
            </td>
        </tr>
        <tr>
            <td width="100" align="right" class="key">
                <label for="subject">
                    <?php echo JText::_(  JBJOBS_SUBJECT  ); ?>:
                </label>
            </td>
            <td>
                <input class="text_area" type="text" name="subject" id="subject" size="48" maxlength="100" value="<?php echo $subject; ?>" />
            </td>
        </tr>
        <tr>
            <td width="100" align="right" class="key">
                <label for="message">
                    <?php echo JText::_(  JBJOBS_MESSAGE  ); ?>:
                </label>
            </td>
            <td>
                <?php 
                    $editor =& JFactory::getEditor();
                    echo $editor->display( message , $message,  500 ,  300 ,  60 ,  10 , true);
                ?>
            </td>

        <!-- Do NOT remove these two input boxes -->
        <input type= hidden  id= temp  />
        <input type= hidden  id= temp2  />

        </tr>

        <tr>
            <td width="100" align="right" class="key">
                <label for="submit">

                </label>
            </td>
            <td>
                <input class="button" type="submit" name="submit" id="submit" size="32" maxlength="100" value="<?php echo JText::_(  JBJOBS_SEND  ); ?>" />
            </td>
        </tr>
    </table>
</div>
<div class="clr"></div> <!-- Clears the float -->

    <!-- Do not edit after this point, it does not change the visual style -->
    <input type="hidden" name="option" value="com_jbjobs" />
    <input type="hidden" name="task" value="savemessage" />
    <input type="hidden" name="controller" value="jbmessaging" />
    <input type="hidden" name="Itemid" id="Itemid" value="<?php echo $Itemid; ?>" />
    <?php
    jimport( joomla.utilities.date );
    $now = new JDate();
    $date = $now->toMySQL();
    $user =& JFactory::getUser();
    ?>
    <input type="hidden" name="date" value="<?php echo $date; ?>" />
    <input type="hidden" name="idFrom" value="<?php echo $user->id; ?>" />
    <input type="hidden" name="<?php echo JUtility::getToken(); ?>" value="1" />
</form>
<script type= text/javascript >
    <!--
    getUser();
    //-->
</script>

Edit : 我的东道国的一份说明(过去6个月辛勤工作的最后打击)

感谢你联系。 这个问题似乎有一个巨大的joomla用户表:

# 1267920 users in jos users"
ls -laSh /var/lib/mysql/_final1
total 868M
-rw-rw---- 1 mysql mysql 452M May 2 04:51 jos_jbjobs_jobseeker.MYD
-rw-rw---- 1 mysql mysql 155M May 2 16:47 jos_users.MYD
-rw-rw---- 1 mysql mysql 120M May 2 16:47 jos_users.MYI
-rw-rw---- 1 mysql mysql 45M May 2 04:51 jos_core_acl_aro.MYD
-rw-rw---- 1 mysql mysql 36M May 2 08:30 jos_core_acl_aro.MYI
-rw-rw---- 1 mysql mysql 25M May 2 04:51 jos_core_acl_groups_aro_map.MYD
-rw-rw---- 1 mysql mysql 13M May 2 08:30 jos_jbjobs_jobseeker.MYI

joomla在64M记忆极限

在你点击以下表格时:

构成部分? 联系? 新的联系人

due to a huge amount of user:

链接用户。 这一联系的用户名称与(如果适用的话)相关。

throwing the below error of 64M limitation

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 76 bytes) in /home/ink/public_html/libraries/joomla/database/database/mysql.php on line 462

在本案中,实际记忆消耗量远远超过1G。 因此,它不像服务器问题一样,更像一个joomla问题本身,而显然的joomla不是设计给这么多用户的。 让我们知道,你是否有任何其他问题或关切。

因此,gues默也许无法处理100万或500万用户?

问题回答

错误信息意味着MySQL已经从你那里退过来。

Error loading Modules:MySQL server has gone away
  • this could be a query execution timing out
  • PHP running out of time
  • or either running out memory.

您的用户表示,大量用户——您的服务器到工作为止?

[EDIT] The error you ve just added is a PHP error, it is saying that you ve exhausted the memory that PHP is Allowed to use, not Joomla!. By the way what version of Joomla! are you using? With this many users I would be tending to use a MySQLi which should be slightly faster and more efficient. Looking at the indicated line in the error message you appear to be on 1.5.x

在Joomla检查你的植物检疫环境! 进入Help->Systemfo->PHP 信息,然后在<代码>上发现<>mory_limit>/code>,以发现你的服务器PHP配置是什么。 从错误信息来看,它有64兆字。 您的东道国应当知道这一点......

[EDIT 2] By the way, no where in the Joomla! code base does it do an ini_set( memory_limit , 64M ) or similar, infact apart from a few calls to check the memory_limit using ini_get( memory_limit ) I couldn t find anything in the Joomla core setting a memory limit.





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...