doubei2231 2013-12-19 03:58
浏览 45

HEAD导致“使用未定义的常量FULL_BASE_URL”注意

I have a CakePHP website that uses the FULL_BASE_URL constant in its layout. I noticed errors like this showing up in my "debug.log" file:

2013-12-18 16:25:04 Notice: Notice (8): Use of undefined constant FULL_BASE_URL - assumed 'FULL_BASE_URL' in [/var/www/example.com/app/View/Layouts/default-app.ctp, line 11]
Trace:
include - APP/View/Layouts/default-app.ctp, line 11
View::_evaluate() - APP/Lib/cakephp/lib/Cake/View/View.php, line 945
View::_render() - APP/Lib/cakephp/lib/Cake/View/View.php, line 907
View::renderLayout() - APP/Lib/cakephp/lib/Cake/View/View.php, line 535
View::render() - APP/Lib/cakephp/lib/Cake/View/View.php, line 479
Controller::render() - APP/Lib/cakephp/lib/Cake/Controller/Controller.php, line 948
PagesController::display() - APP/Controller/PagesController.php, line 105
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - APP/Lib/cakephp/lib/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - APP/Lib/cakephp/lib/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - APP/Lib/cakephp/lib/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 114

Looking at the Apache access log, I see that it's caused by this:

198.252.206.16 - - [18/Dec/2013:16:25:02 -0700] "HEAD / HTTP/1.0" 200 317 "-" "-"

The only way I've been able to reproduce this is by using Telnet, like this:

telnet example.com 80
HEAD / HTTP/1.0
[push enter again]

What could be causing this? Is it something with my PHP configuration or my Apache configuration or something else?

  • 写回答

1条回答 默认 最新

  • dongqu3623 2013-12-19 05:34
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 WPF 大屏看板表格背景图片设置
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示