【问题标题】:Kohana and OpenXKohana 和 OpenX
【发布时间】:2010-08-23 20:18:54
【问题描述】:

我正在尝试在使用 Kohana 的网站中安装 OpenX。它工作正常,直到我发现这个错误:

致命错误:未捕获 Kohana_Request_Exception [ 0 ]:无法 查找与 URI 匹配的路由: 500.shtml ~ SYSPATH/classes/kohana/request.php [ 第635章 /home/xxxxxx/public_html/plugb/system/classes/kohana/request.php 在第 635 行

网址是: http://www.plugb.com/openx/www/admin/plugins/oxMarket/market-campaign-edit.php?clientid=1&campaignid=

我当前的 .htaccess 是:

# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase /

# WWW
RewriteCond %{HTTP_HOST} !^www\.plugb\.com [NC]
RewriteRule ^(.*)$ http://www.plugb.com/$1 [R=301,L]

#remove trailing slashes
RewriteCond %{HTTP_HOST} !^\.plugb\.com$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L] 

# Protect hidden files from being viewed
<Files .*>
    Order Deny,Allow
    Deny From All
</Files>

# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT,L]

Redirect 301 /gamesindex /

为什么会出现此错误?我该如何解决?

谢谢你, 加布里埃尔。

【问题讨论】:

  • 该错误表明您遇到了另一个内部服务器错误(并且服务器尝试生成 500 错误响应,但由于 ErrorDocument 并没有真正实现,因此请求被 Kohana 路由处理程序捕获存在)。因此,要完全解决此问题,您还需要解决内部服务器错误。您的服务器的错误日志说明了什么?
  • [2010 年 8 月 23 日 20:21:40] PHP 致命错误:未捕获 Kohana_Request_Exception [0]:无法找到与 URI 匹配的路由:500.shtml ~ SYSPATH/classes/kohana/ request.php [635] 在第 635 行 [23-Aug-2010 21:05:21] 在 /home/bianconi/public_html/plugb/system/classes/kohana/request.php 中引发了 PHP 致命错误:未捕获 Kohana_Request_Exception [0] :无法找到匹配 URI 的路由:403.shtml ~ SYSPATH/classes/kohana/request.php [635] 在第 635 行的 /home/bianconi/public_html/plugb/system/classes/kohana/request.php 中抛出以及与此类似的其他行。
  • Apache 的错误日志呢?那似乎是 PHP 的。

标签: .htaccess kohana openx


【解决方案1】:

此错误在 24 小时后停止出现。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-07-05
    • 2015-06-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-16
    • 1970-01-01
    相关资源
    最近更新 更多