Thursday, May 24, 2012

RE: Table 'cakehr.cake_errors' doesn't exists

Hi

 

I’m sorry to answer so late but I had a lot of work to do.

 

Andy, thank you for your answer. I have read the documentation to see how to do what you said, but I didn’t had success yet.

I have read this: http://book.cakephp.org/2.0/en/development/errors.html.

 

I will continue reading to see how to do it. Meanwhile, the updated status is that I don’t receive errors at all, although I didn’t actually did anything.

They are just not printed on the page anymore. So I’m kind of blind folded.

 

If I will have any updates, I will write you as soon as possible.

 

Best regards!

 

From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of AD7six
Sent: Monday, May 21, 2012 2:13 AM
To: cake-php@googlegroups.com
Subject: Re: Table 'cakehr.cake_errors' doesn't exists

 



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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: