Re: strange problem --> Missing table

2008-07-25 Thread Jeroen van Wissen

I had the same problem.

But when i disable caching in the configuration file.
I get random 'Missing database table...for model' messages
everytime I run the tests.

What could cause this?
Is it that sometimes the test is done before the fixtures are loaded?
Because everytime I get a Missing database table error, I check the
database and the table is there!

Anyone?

Thnx!!
Jeroen

On 14 jul, 21:25, puneetratan <[EMAIL PROTECTED]> wrote:
> Hello
>
> In the config file of cake php , there is an option for Cake Cache
> true and false, and make it false, and then check
>
> Thanks
> Puneet
>
> On Jul 14, 3:18 pm, Bo ozz <[EMAIL PROTECTED]> wrote:
>
>
>
> > Cake keeps showing me this error message:
>
> > -
> > Missing Database Table
>
> > Error: Database table albums for model Album was not found.
>
> > Notice: If you want to customize this error message, create app/views/
> > errors/missing_table.ctp
>
> > --
>
> > Pretty self-explanatory you would say, but the table does exist!!
>
> > I've tried troubleshooting this, but the following code in my model
> > does show my records in that table:
>
> > --
> > 
> > class Album extends AppModel {
> >         function Album() {
> >                 mysql_connect('localhost','***','***');
> >                 mysql_select_db('***');
> >                 $result = mysql_query('SELECT * FROM albums');
> >                 print_r(mysql_fetch_assoc($result));
> >                 die();
> >         }
> >     //var $name = 'Album';
> >         //var $hasMany = array('Foto');
>
> > }
>
> > ?>
>
> > 
>
> > Any thoughts??
>
> > thanks!- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: strange problem --> Missing table

2008-07-14 Thread Siebren Bakker
@Puneet:
While changing the configuration file will work, you must remember to then
change it back when you are done. The simplest solution, IMHO, is to simply
delete the contents of /app/tmp/cache/model, and then cake will simply
re-build the cache, including the new model, and you're all done!

In the name of Life, Liberty, and the pursuit of my sanity.
Siebren Bakker(Aevum Decessus)

On Mon, Jul 14, 2008 at 14:25, puneetratan <[EMAIL PROTECTED]> wrote:

>
> Hello
>
> In the config file of cake php , there is an option for Cake Cache
> true and false, and make it false, and then check
>
> Thanks
> Puneet
>
> On Jul 14, 3:18 pm, Bo ozz <[EMAIL PROTECTED]> wrote:
> > Cake keeps showing me this error message:
> >
> > -
> > Missing Database Table
> >
> > Error: Database table albums for model Album was not found.
> >
> > Notice: If you want to customize this error message, create app/views/
> > errors/missing_table.ctp
> >
> > --
> >
> > Pretty self-explanatory you would say, but the table does exist!!
> >
> > I've tried troubleshooting this, but the following code in my model
> > does show my records in that table:
> >
> > --
> >  >
> > class Album extends AppModel {
> > function Album() {
> > mysql_connect('localhost','***','***');
> > mysql_select_db('***');
> > $result = mysql_query('SELECT * FROM albums');
> > print_r(mysql_fetch_assoc($result));
> > die();
> > }
> > //var $name = 'Album';
> > //var $hasMany = array('Foto');
> >
> > }
> >
> > ?>
> >
> > 
> >
> > Any thoughts??
> >
> > thanks!
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: strange problem --> Missing table

2008-07-14 Thread puneetratan

Hello

In the config file of cake php , there is an option for Cake Cache
true and false, and make it false, and then check

Thanks
Puneet

On Jul 14, 3:18 pm, Bo ozz <[EMAIL PROTECTED]> wrote:
> Cake keeps showing me this error message:
>
> -
> Missing Database Table
>
> Error: Database table albums for model Album was not found.
>
> Notice: If you want to customize this error message, create app/views/
> errors/missing_table.ctp
>
> --
>
> Pretty self-explanatory you would say, but the table does exist!!
>
> I've tried troubleshooting this, but the following code in my model
> does show my records in that table:
>
> --
> 
> class Album extends AppModel {
>         function Album() {
>                 mysql_connect('localhost','***','***');
>                 mysql_select_db('***');
>                 $result = mysql_query('SELECT * FROM albums');
>                 print_r(mysql_fetch_assoc($result));
>                 die();
>         }
>     //var $name = 'Album';
>         //var $hasMany = array('Foto');
>
> }
>
> ?>
>
> 
>
> Any thoughts??
>
> thanks!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: strange problem --> Missing table

2008-07-14 Thread Bo ozz

Never mind... the database structure was cached, clearing the cache
solved the problem!

On 14 jul, 12:18, Bo ozz <[EMAIL PROTECTED]> wrote:
> Cake keeps showing me this error message:
>
> -
> Missing Database Table
>
> Error: Database table albums for model Album was not found.
>
> Notice: If you want to customize this error message, create app/views/
> errors/missing_table.ctp
>
> --
>
> Pretty self-explanatory you would say, but the table does exist!!
>
> I've tried troubleshooting this, but the following code in my model
> does show my records in that table:
>
> --
> 
> class Album extends AppModel {
>         function Album() {
>                 mysql_connect('localhost','***','***');
>                 mysql_select_db('***');
>                 $result = mysql_query('SELECT * FROM albums');
>                 print_r(mysql_fetch_assoc($result));
>                 die();
>         }
>     //var $name = 'Album';
>         //var $hasMany = array('Foto');
>
> }
>
> ?>
>
> 
>
> Any thoughts??
>
> thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



strange problem --> Missing table

2008-07-14 Thread Bo ozz

Cake keeps showing me this error message:

-
Missing Database Table

Error: Database table albums for model Album was not found.

Notice: If you want to customize this error message, create app/views/
errors/missing_table.ctp

--

Pretty self-explanatory you would say, but the table does exist!!

I've tried troubleshooting this, but the following code in my model
does show my records in that table:

--




Any thoughts??

thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---