JA Newsflash 'Direct Access to this location is not allowed'

JA Newsflash 'Direct Access to this location is not allowed'

文章admin 發表於 2009年 8月 2日, 01:30

使用JA newsflash 模組,在顯示第二則訊息的時候,會出現 'Direct Access to this location is not allowed' 拒絕存取的訊息\n

如果您有遇到相同的問題,以下方式可以解決 ~~

開啟 modules/mod_janewsflash/ja_newsflash 資料夾裡面 ja-newsflashloader.php

編輯程式碼,從58至61行,如下

代碼: 選擇全部
   // SSL check - $http_host returns <live site url>:<port number if it is 443>
   JPluginHelper::importPlugin('system', null, false);
   // trigger the onStart events
   $mainframe->triggerEvent( 'onStart' );


將以上程式碼取代為\n
代碼: 選擇全部
// trigger the onStart events
JPluginHelper::importPlugin('system');
// trigger the onAfterInitialise events
JDEBUG ? $_PROFILER->mark('afterInitialise') : null;
$mainframe->triggerEvent('onAfterInitialise');


這樣應該就可以解決您的問題了

以下為參考資料來源
http://www.joomlart.com/forums/showthread.php?p=137693
Joomla!EC - 提供Joomla!商務開發應用資源與討論
頭像
admin
系統管理員
 
文章: 27
註冊時間: 2008年 3月 30日, 20:15

回到 Joomla!1.5.x

誰在線上

正在瀏覽這個版面的使用者: 沒有註冊會員 和 1 位訪客

cron