嗨,我正在使用Socialengine 4.5,我得到这个错误,请有人帮助我,谢谢你提前。
Error Code: 8094cd
exception 'Zend_Loader_PluginLoader_Exception' with message 'Plugin by name 'Friends' was not found in the registry; used paths:
Messages_View_Helper_: /var/www/vhosts/site.com/httpdocs/application/modules/Messages/views/helpers/
User_View_Helper_: /var/www/vhosts/site.com/httpdocs/application/modules/User/View/Helper/
Seaocore_View_Helper_: /var/www/vhosts/site.com/httpdocs/application/modules/Seaocore/View/Helper/
Advancedmembers_View_Helper_: /var/www/vhosts/site.com/httpdocs/application/modules/Advancedmembers/View/Helper/
Activity_View_Helper_: /var/www/vhosts/site.com/httpdocs/application/modules/Activity/View/Helper/
Core_View_Helper_: /var/www/vhosts/site.com/httpdocs/application/modules/Core/View/Helper/
Engine_View_Helper_: Engine/View/Helper/
Zend_View_Helper_: Zend/View/Helper/:/var/www/vhosts/site.com/httpdocs/application/modules/Album/views/helpers/:/var/www/vhosts/site.com/httpdocs/application/modules/Core/views/helpers/' in /var/www/vhosts/site.com/httpdocs/application/libraries/Zend/Loader/PluginLoader.php:406
堆栈追踪:
#0 /var/www/vhosts/site.com/httpdocs/application/libraries/Zend/View/Abstract.php(1120): Zend_Loader_PluginLoader->load('Friends')
#1 /var/www/vhosts/site.com/httpdocs/application/libraries/Zend/View/Abstract.php(569): Zend_View_Abstract->_getPlugin('helper', 'friends')
#2 /var/www/vhosts/site.com/httpdocs/application/libraries/Zend/View/Abstract.php(336): Zend_View_Abstract->getHelper('friends')
#3 /var/www/vhosts/site.com/httpdocs/application/modules/Core/views/scripts/_composeTag.tpl(31): Zend_View_Abstract->__call('friends', Array)
#4 /var/www/vhosts/site.com/httpdocs/application/modules/Core/views/scripts/_composeTag.tpl(31): Zend_View->friends()
#5 /var/www/vhosts/site.com/httpdocs/application/libraries/Zend/View.php(108): include('/var/www/vhosts...')
#6 /var/www/vhosts/site.com/httpdocs/application/libraries/Zend/View/Abstract.php(835): Zend_View->_run('/var/www/vhosts...')
#7 /var/www/vhosts/site.com/httpdocs/application/libraries/Zend/View/Helper/Partial.php(103): Zend_View_Abstract->render('_composeTag.tpl')
#8 [internal function]: Zend_View_Helper_Partial->partial('_composeTag.tpl', 'core')
#9 /var/www/vhosts/site.com/httpdocs/application/libraries/Zend/View/Abstract.php(342): call_user_func_array(Array, Array)
#10 /var/www/vhosts/site.com/httpdocs/application/modules/Messages/views/scripts/messages/compose.tpl(201): Zend_View_Abstract->__call('partial', Array)
#11 /var/www/vhosts/site.com/httpdocs/application/modules/Messages/views/scripts/messages/compose.tpl(201): Zend_View->partial('_composeTag.tpl', 'core')
#12 /var/www/vhosts/site.com/httpdocs/application/libraries/Zend/View.php(108): include('/var/www/vhosts...')
#13 /var/www/vhosts/site.com/httpdocs/application/libraries/Zend/View/Abstract.php(835): Zend_View->_run('/var/www/vhosts...')
#14 /var/www/vhosts/site.com/httpdocs/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(903): Zend_View_Abstract->render('messages/compos...')
#15 /var/www/vhosts/site.com/httpdocs/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(924):
Zend_Controller_Action_Helper_ViewRenderer->renderScript('messages/compos...', NULL)
#16 /var/www/vhosts/site.com/httpdocs/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(963): Zend_Controller_Action_Helper_ViewRenderer->render()
#17 /var/www/vhosts/site.com/httpdocs/application/libraries/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#18 /var/www/vhosts/site.com/httpdocs/application/libraries/Zend/Controller/Action.php(523): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#19 /var/www/vhosts/site.com/httpdocs/application/libraries/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('composeAction')
#20 /var/www/vhosts/site.com/httpdocs/application/libraries/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#21 /var/www/vhosts/site.com/httpdocs/application/modules/Core/Bootstrap.php(75): Zend_Controller_Front->dispatch()
#22 /var/www/vhosts/site.com/httpdocs/application/libraries/Engine/Application.php(160): Core_Bootstrap->run()
#23 /var/www/vhosts/site.com/httpdocs/application/index.php(205): Engine_Application->run()
#24 /var/www/vhosts/site.com/httpdocs/index.php(24): include('/var/www/vhosts...')
#25 {main}`
正如Kirk Hammett所说,问题必须出在ComposeTag.tlp代码上。有人可以告诉我该怎么做:
<?php
/**
* SocialEngine
*
* @category Application_Core
* @package Core
* @copyright Copyright 2006-2010 Webligo Developments
* @license http://www.socialengine.com/license/
* @version $Id: _composeTag.tpl 9900 2013-02-14 02:20:25Z shaun $
* @author John
*/
?>
<?php $this->headScript()
->appendFile($this->layout()->staticBaseUrl . 'externals/autocompleter/Observer.js')
->appendFile($this->layout()->staticBaseUrl . 'externals/autocompleter/Autocompleter.js')
->appendFile($this->layout()->staticBaseUrl . 'externals/autocompleter/Autocompleter.Local.js')
->appendFile($this->layout()->staticBaseUrl . 'externals/autocompleter/Autocompleter.Request.js')
->appendFile($this->layout()->staticBaseUrl . 'application/modules/Core/externals/scripts/composer_tag.js') ?>
<script type="text/javascript">
en4.core.runonce.add(function() {
composeInstance.addPlugin(new Composer.Plugin.Tag({
suggestOptions : {
'url' : '<?php echo $this->url(array(), 'default', true) . '/user/friends/suggest' ?>',
'data' : {
'format' : 'json'
}
},
'suggestProto' : 'local',
'suggestParam' : <?php echo Zend_Json::encode($this->friends()) ?>
}));
});
</script>
答案 0 :(得分:0)
堆栈跟踪表示您在视图中错误调用了函数friends():
httpdocs/application/modules/Core/views/scripts/_composeTag.tpl
可能看起来像是
$this->friends()
或类似的东西。那是你应该继续搜索这个问题的原因。
答案 1 :(得分:0)
SOLUTTION:
改变:
'suggestParam' : <?php echo Zend_Json::encode($this->friends()) ?>
FOR:
'suggestParam' : <?php echo $this->action('suggest', 'friends', 'user', array('sendNow' => false, 'includeSelf' => true)) ?>