On Saturday, 19 May 2012 21:09:13 UTC+2, Florin Trifu wrote:
>
> Hi
>
> I have sent this problem a while ago but no one replied. I'm sending it 
> again since it's important for me and I don't know if it was 
> just a stupid question or no one didn't knew what to answer.
>
> I will also add the entire error maybe it will be more intuitive:
>
> *Fatal Error* (256): [PDOException] SQLSTATE[42S02]: Base table or view not 
> found: 1146 Table 'test.cake_errors' doesn't exist
> #0 C:\wamp\www\test\lib\Cake\Model\Datasource\DboSource.php(436): 
> PDOStatement->execute(Array)
> #1 C:\wamp\www\test\lib\Cake\Model\Datasource\Database\Mysql.php(307): 
> DboSource->_execute('SHOW FULL COLUM...')
> #2 C:\wamp\www\test\lib\Cake\Model\Model.php(1209): 
> Mysql->describe(Object(AppModel))
> #3 C:\wamp\www\test\lib\Cake\View\Helper\FormHelper.php(198): Model->schema()
> #4 C:\wamp\www\test\lib\Cake\View\Helper\FormHelper.php(450): 
> FormHelper->_introspectModel('CakeError', 'fields')
> #5 C:\wamp\www\test\app\View\Elements\menu.ctp(25): FormHelper->create(Array)
>
>
Your menu element, which is included in your default layout, creates a form 
using the "current" model name. In the case of the CakeError controller 
that means it's looking for a model named CakeError too.

I'd suggest creating a simple and no-dependency layout to use in the case 
of errors to avoid issues like this.

AD 

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to