我已经有了这一用户,在三个主要表格中,即:用户——和其他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万用户?