简体   繁体   English

CakePHP-除主页外,所有页面均为空白

[英]CakePHP - all pages blank except the home page

I inherited a very old CakePHP application (version 1.3.2) that I have to run on a new server (old server is long gone, I only have the code). 我继承了一个非常老的CakePHP应用程序(版本1.3.2),我必须在新服务器上运行(旧服务器已经不复存在,我只有代码)。 I managed to get it going after some configuration and right now the home page loads here: http://m.gratuito24.com/ 经过一些配置,我设法使它运行起来,现在主页在这里加载: http : //m.gratuito24.com/

So far so good, however, if you click on any of the links, absolutely nothing happens. 到目前为止,到目前为止,如果您单击任何链接,绝对不会发生任何事情。 I get no errors in the browser, no errors in the logs and I even tried to print out some debug messages from the app_controller beforeFilter and beforeRender methods but with no success. 我没有得到任何错误,在浏览器中没有错误日志中,我甚至试图从打印出一些调试消息app_controller beforeFilterbeforeRender方法,但没有成功。 As you notice, the site is translated (in Bulgaria), however, using the English equivalents for the controllers and actions results in the exact same manner. 您会注意到,该站点已翻译(在保加利亚),但是,对于控制器和操作使用英文等效词的方式是完全相同的。 Setting Debug Mode to 2 in core.php still displays a completely blank page. core.php中将Debug Mode设置为2仍然显示完全空白的页面。

Any idea how to approach debugging this or what might be the cause? 任何想法如何进行调试或可能是什么原因? I've looked into the routes.php file and there are a lot of routes set there but except for the home '/' route, nothing else seems to work. 我已经研究了routes.php文件,并在其中设置了很多路由,但除了本地的'/'路由外,似乎没有其他任何工作。 Basically the server is not finding a resource following the links at all which is strange as I can see that the framework/database are present thus loading the home page. 基本上,服务器根本找不到链接后的资源,这很奇怪,因为我可以看到存在框架/数据库,从而加载了主页。 Any tips appreciated. 任何提示表示赞赏。

For me it looks like a problem with mod_rewrite, look on http://m.gratuito24.com/index.php/ads/index/showAds:goods/language:bg.html , index.php part is important, 对我来说,它看起来像一个mod_rewrite的问题,你看http://m.gratuito24.com/index.php/ads/index/showAds:goods/language:bg.htmlindex.php部分是很重要的,

first thought: no mod_rewrite on server, second: something wrong with .htaccess 第一个想法:服务器上没有mod_rewrite,第二个:.htaccess有问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM