0

zend.domain.comでサブドメインを作成した後、プロジェクトをアップロードしましたdomain.com。したがって、もともと私のコードはdomain.com/zend. プロジェクトを実行しようとすると、次のエラーが表示されます。

警告: include_once(Zend/View.php) [function.include-once]: ストリームを開くことができませんでした: 146 行目の /home/domain/public_html/zend/library/Zend/Loader.php にそのようなファイルまたはディレクトリはありません

警告: include_once() [function.include]: 含めるために 'Zend/View.php' を開けませんでした (include_path='/home/domain/public_html/zend/application/../library:/home/domain/public_html/zend /library:.:/usr/lib/php:/usr/local/lib/php') /home/brainbud/public_html/zend/library/Zend/Loader.php の 146 行目

致命的なエラー: クラス 'Zend_View' が /home/brainbud/public_html/zend/library/Zend/Application/Resource/View.php の 69 行目に見つかりません

これが私のもの.htaccessです:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^\.htaccess$ - [F]

RewriteRule ^(blog|forum)($|/) - [L]

RewriteCond %{REQUEST_URI} =""
RewriteRule ^.*$ /public/index.php [NC,L]

RewriteCond %{REQUEST_URI} !^/public/.*$
RewriteRule ^(.*)$ /public/$1

RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [NC,L]

RewriteRule ^public/.*$ /public/index.php [NC,L]
4

1 に答える 1

1

これは .htaccess ファイルとは関係ありません。アップロード中に一部のライブラリ パーツが欠落しているか、インクルード パスのライブラリ/Zend が正しくありません。

  • Zend の再アップロード
  • index.php の正しいパスを確認してください。(何ls /home/domain/public_html/zend/libraryを教えてくれますか?)

いつもの:

// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../library'),
    get_include_path(),
)));
于 2012-08-06T08:23:49.733 に答える