joomlaのWebサイトを移行する際に、これが新しく、エラーが発生しました。ウェブサイトに下のエラーを示すトップメニューをロードすると。残りのウェブサイトは正常に動作しています。Joomla 2.5のloadRendererモジュールでVirtualminサーバーのエラーが発生しました。
ホープ誰かがこの上で私を導くことができます。
下に表示されるトップメニューのエラー。以下
loadRenderer('module');
$params = array('style'=>$style);
$contents = '';
foreach (JModuleHelper::getModules($position) as $mod) {
$contents .= $renderer->render($mod, $params);
} // this part allows html characters to show correctly
echo html_entity_decode($contents);
?>
かなりのエラーメッセージではなく、ソースコードないコード
<?php endif; ?>
<div id="blankdiv"></div>
<nav class="topMenu">
<?
// extra code to make this work
$style = -2; // set the style
$position = "mainmenu"; // set the position of the modules to be loaded
// end of extra code
$document = &JFactory::getDocument();
$renderer = $document->loadRenderer('module');
$params = array('style'=>$style);
$contents = '';
foreach (JModuleHelper::getModules($position) as $mod) {
$contents .= $renderer->render($mod, $params);
}
// this part allows html characters to show correctly
echo html_entity_decode($contents);
?>
</nav>
</section>
問題をよりよく理解するために可能な限り詳細を記入してください。キーの重要性。 – mkilmanas
不完全な質問を申し訳ありません。既に質問を編集してください。それはloadrendererエラーを示しています。どうすれば解決できますか? – KuganMV