我刚刚安装了一个全新的蛋糕,当我尝试烘焙应用程序时,这就是我尝试将蛋糕烘烤时所得到的。
如果我从烘焙中创建一个新的应用程序文件夹,它可以正常工作。
无法找到为什么在我的控制台中输出html:
> S:\server\htdocs\rpgcom\app>cake bake all
>
> <!DOCTYPE html> <html> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>
> CakePHP: the rapid development php framework:
> Errors </title>
> <link href="S:\server\htdocs\sgen\lib\Cake\Console/favicon.ico"
> type="image/x-icon" rel="icon" /><link
> href="S:\server\htdocs\sgen\lib\Cake\Co nsole/favicon.ico"
> type="image/x-icon" rel="shortcut icon" /><link rel="stylesheet"
> type="text/css" href="S:\server\htdocs\sgen\lib\Cake\Console/css/c
> ake.generic.css" /></head> <body>
> <div id="container">
> <div id="header">
> <h1><a href="http://cakephp.org">CakePHP: the rapid development php framework</a></h1>
> </div>
> <div id="content">
>
>
> <h2>Could not load class File</h2> <p class="error">
> <strong>Error: </strong>
> An Internal Error Has Occurred.</p> <h3>Stack Trace</h3> <ul class="cake-stack-trace">
> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE\Cake\Log\LogEngineCollection.php line 41</a>
> → <a href="#" onclick="t raceToggle(event,
> 'trace-args-0')">LogEngineCollection::_getLogger(string)</a> <div
> id="file-excerpt-0" class="cake-code-dump" style="display:none;"><
> pre><code><span style="color:
> #000000"> $enable = isset($options['enabled']) ? $opt
> </span></code>] : true; </span></code>yle="color:
> #000000"> $loggerName = $options['engine'];
> </span></code>yle="color:
> #000000"> unset($options['engine']);
> <span class="code-highlight"><code><span style="color:
> #000000"> $className = $this->_getL
> </span></code></span> </span></code></pre></div> <div
> id="trace-args-0" class="cake-code-dump" style="display:
> none;"><pre>'File'</pre></div></li>options);
> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE\Cake\Log\CakeLog.php line 194</a> → <a
> href="#" onclick="traceToggle( event,
> 'trace-args-1')">LogEngineCollection->load(string, array)</a> <div
> id="file-excerpt-1" class="cake-code-dump"
> style="display:none;"><pre><code> </span></code>olor:
> #000000"> if (empty(self::$_Collection)) {
> </span></code>yle="color:
> #000000"> self::_init();
> </span></code>yle="color:
> #000000"> } <span class="code-highlight"><code><span style="color:
> #000000"> self::$_Collection->load($key, 
> </span></code></span> </span></code></pre></div> <div
> id="trace-args-1" class="cake-code-dump" style="display:
> none;"><pre>'debug' array(
> 'engine' => 'File',
> 'types' => array(
> (int) 0 => 'notice',
> (int) 1 => 'info',
> (int) 2 => 'debug'
> ),
> 'file' => 'debug' )</pre></div></li>
> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">APP\Config\bootstrap.php line 102</a> → <a
> href="#" onclick="traceToggle(e vent,
> 'trace-args-2')">CakeLog::config(string, array)</a> <div
> id="file-excerpt-2" class="cake-code-dump"
> style="display:none;"><pre><code><span style
> ="color: #000000"> 'engine' => 'File',</span></code>
> <code><span style="color:
> #000000"> 'types' => array('notice', 'info', 'debug'),</span></code>
> <code><span style="color:
> #000000"> 'file' => 'debug',</span></code> <span class="code-highlight"><code><span style="color:
> #000000">));</span></code></span> <code><span style="color: #000000">CakeLog::config('error', array(</span></code></pre></div>
> <div id="trace-args-2" class="cake-code-dump" style= "display:
> none;"><pre>'debug' array(
> 'engine' => 'File',
> 'types' => array(
> (int) 0 => 'notice',
> (int) 1 => 'info',
> (int) 2 => 'debug'
> ),
> 'file' => 'debug' )</pre></div></li>
> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE\Cake\Core\Configure.php line 92</a> → <a
> href="#" onclick="traceToggl e(event,
> 'trace-args-3')">include(string)</a> <div id="file-excerpt-3"
> class="cake-code-dump" style="display:none;"><pre><code><span
> style="color: #00
> </span></code>bsp; );
> <code><span style="color:
> #000000"> self::_setErrorHandlers($error, $excep
> </span></code> </span></code>yle="color: #000000"> <span
> class="code-highlight"><code><span style="color:
> #000000"> if (!incl
> </span></code></span>bsp;'Config' . DS . 'bootstrap.php') {
> <code><span style="color:
> #000000"> trigger_error(__d('
> cake_dev', "Can't find application bootstrap file. Please create %sbootstrap.php, and make sure
> </span></code></pre></div> <div id="trace-args-3"
> class="cake-code-dump" style="display:
> none;"><pre>'S:\server\htdocs\rpgcom\app\Config\bootstrap.php
> '</pre></div></li>
> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE\Cake\bootstrap.php line 146</a> → <a
> href="#" onclick="traceToggle(ev ent,
> 'trace-args-4')">Configure::bootstrap(boolean)</a> <div
> id="file-excerpt-4" class="cake-code-dump"
> style="display:none;"><pre><code><span style="
> </span></code>">App::uses('Object', 'Core');
> </span></code>yle="color:
> #000000">App::$bootstrapping = true; </span></code>yle="color: #000000">
> </span></code></span>hlight"><code><span style="color:
> #000000">Configure::bootstrap(isset($boot) ? $boot : true);
> </span></code></pre></div> <div id="trace-args-4"
> class="cake-code-dump" style="display:
> none;"><pre>true</pre></div></li>
> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE\Cake\Console\ShellDispatcher.php line 131</a>
> → <a href="#" onclick=" traceToggle(event,
> 'trace-args-5')">require(string)</a> <div id="file-excerpt-5"
> class="cake-code-dump" style="display:none;"><pre><code><span style="
> color:
> #000000"> define('TMP', CAKE_CORE_INCLUDE_PATH . DS
> . 'Cake' . DS . 'Console' . DS . 'Templates' . DS . 'skel' . DS . 
> </span></code>nbsp;DS); </span></code>yle="color:
> #000000"> } <code><span style="color:
> #000000"> $boot = file_exists(ROOT . DS . APP_D
> </span></code>;DS . 'Config' . DS . 'bootstrap.php'); <span class="code-highlight"><code><span style="color:
> #000000"> require CORE_PATH . 'Ca
> </span></code></span>sp;. 'bootstrap.php';
> </span></code></pre></div> <div id="trace-args-5"
> class="cake-code-dump" style="display:
> none;"><pre>'S:\server\htdocs\sgen\lib\Cake\bootstrap.php'</p
> re></div></li>
> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">CORE\Cake\Console\ShellDispatcher.php line 101</a>
> → <a href="#" onclick=" traceToggle(event,
> 'trace-args-6')">ShellDispatcher->_bootstrap()</a> <div
> id="file-excerpt-6" class="cake-code-dump"
> style="display:none;"><pre><code </span></code>color:
> #000000"> * @throws CakeException </span></code>yle="color: #000000"> */ </span></code>yle="color:
> #000000"> protected function _initEnvironment() {
> <span class="code-highlight"><code><span style="color:
> #000000"> if (!$this->_bootstrap()) 
> </span></code></span> <code><span style="color:
> #000000"> $message = "Unable to l
> oad CakePHP core.\nMake sure " . DS . 'lib' . DS . 'Cake exists in ' .
> </span></code></pre></div> <div id="trace-args-6"
> class="cake-code-dump" style="display: none;"><pre></pre></div></li>
> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">CORE\Cake\Console\ShellDispatcher.php line 57</a>
> → <a href="#" onclick="t raceToggle(event,
> 'trace-args-7')">ShellDispatcher->_initEnvironment()</a> <div
> id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre>
> </span></code>yle="color:
> #000000"> } </span></code>yle="color:
> #000000"> $this->parseParams($args);
> </span></code>yle="color:
> #000000"> if ($bootstrap) {
> <span class="code-highlight"><code><span style="color:
> #000000"> $this->_ini
> </span></code></span> </span></code></pre></div> <div
> id="trace-args-7" class="cake-code-dump" style="display:
> none;"><pre></pre></div></li>
> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE\Cake\Console\ShellDispatcher.php line 68</a>
> → <a href="#" onclick="t raceToggle(event,
> 'trace-args-8')">ShellDispatcher->__construct(array)</a> <div
> id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre>
> </span></code>yle="color: #000000"> * @return void
> </span></code>yle="color: #000000"> */ </span></code>yle="color:
> #000000"> public static function run($argv) {
> <span class="code-highlight"><code><span style="color:
> #000000"> $dispatcher = new Shell
> </span></code></span> <code><span style="color:
> #000000"> $dispatcher->_stop($dispatcher->dispatch() === fals
> </span></code></pre></div> <div id="trace-args-8"
> class="cake-code-dump" style="display: none;"><pre>array(
> (int) 0 => 'S:\server\htdocs\sgen\lib\Cake\Console\cake.php',
> (int) 1 => '-working',
> (int) 2 => 'S:\server\htdocs\rpgcom\app ',
> (int) 3 => 'bake',
> (int) 4 => 'all' )</pre></div></li>
> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE\Cake\Console\cake.php line 43</a> → <a
> href="#" onclick="traceToggle( event,
> 'trace-args-9')">ShellDispatcher::run(array)</a> <div
> id="file-excerpt-9" class="cake-code-dump"
> style="display:none;"><pre><code><span style=" </span></code>">
> </span></code>yle="color:
> #000000">unset($paths, $path, $found, $dispatcher, $root, $ds);
> </span></code>yle="color: #000000">
> </span></code></span>hlight"><code><span style="color:
> #000000">return ShellDispatcher::run($argv); <code><span style="color: #000000"></span></code></pre></div> <div
> id="trace-args-9" class="cake-code-dump" style="display:
> none;"><pre>array(
> (int) 0 => 'S:\server\htdocs\sgen\lib\Cake\Console\cake.php',
> (int) 1 => '-working',
> (int) 2 => 'S:\server\htdocs\rpgcom\app ',
> (int) 3 => 'bake',
> (int) 4 => 'all' )</pre></div></li> </ul> <script type="text/javascript"> function traceToggle(event, id) {
> var el = document.getElementById(id);
> el.style.display = (el.style.display == 'block') ? 'none' : 'block';
> event.preventDefault();
> return false; } </script>
> </div>
> <div id="footer">
> <a href="http://www.cakephp.org/" target="_blank"><img
> src="S:\server\htdocs\sgen\lib\Cake\Console/img/cake.power.gif"
> alt="Ca kePHP: the rapid development php framework" border="0" /></a>
> </div>
> </div>
> </body> </html>
>
>
> S:\server\htdocs\rpgcom\app>
任何人都可以尝试帮助我,这是一个新安装的和最新的蛋糕版本。
答案 0 :(得分:0)
如果出错,Bake会输出html。我可以看到你在项目中限制了类(“文件”)。你可以拥有'文件'表,重命名这个表,你的问题应该消失。
查看API中的所有受限制的课程,并在项目中避免使用它们。