0

KCFinderを呼び出すスクリプトがあります。

window.open('/kcfinder/browse.php?type=files', ...);

KCFinderを含むウィンドウを開く必要がありますが、[ブラウザ]ボタンをクリックすると、エラーが発生します。

「キャッチされていない例外「Zend_Controller_Dispatcher_Exception」とメッセージ「無効なコントローラーが指定されました(kcfinder)」が/home/vhosts/vonline_admin/library/Zend/Controller/Dispatcher/Standard.phpの248行目にあります。」

私はこのエラーを理解しています。コントローラが「kcfinderが見つかりません」と表示されますが、kcfinderはコントローラを必要とせず、単なるパスです。不思議なことに、私はローカルでWebサイトを正常に実行しましたが、ホスティングに配置すると失敗しました。

書き換えの問題やルーティングに関係していると思いますが、修正方法がわかりません。

Vhost:/usr/local/apache2/conf/vhosts/something_admin.conf

ServerName admin.something.com

    ServerAdmin foo@boo.com
    DocumentRoot /home/vhosts/something_admin/www

    SetEnv APPLICATION_ENV development

    TraceEnable off

    <Directory /home/vhosts/something_admin/www>
            Options -Indexes -Includes -ExecCGI -FollowSymLinks
            AllowOverride None
    </Directory>

    RewriteEngine on
    RewriteRule !\.(js|ico|gif|jpg|png|css|swf|txt|htm|html|xml)$

/index.php

wwwの.htaccess:

RewriteEngine On  
RewriteCond %{REQUEST_FILENAME} -s [OR]  
RewriteCond %{REQUEST_FILENAME} -l [OR]  
RewriteCond %{REQUEST_FILENAME} -d  
RewriteRule ^.*$ - [NC,L]  RewriteRule ^.*$ index.php [NC,L]
4

1 に答える 1

1

あなたのhtaccessファイルと私のものの唯一の違いはRewriteRulesにあります。アスタリスクがあります:

RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
于 2011-03-21T13:22:10.037 に答える