> I'm at my wits end with this problem, so I sincerely hope someone can
> think of a solution...
>
> First a little background: This is my first Cake app. I've been
> working on it exclusively on my local machine. As of right now
> everything looks fine there. Finally, I tried deploying it to the
> development server yesterday, with little success. First I had to
> change some apache configurations to allow Cake's .htaccess files to
> work. Then I had to change the PHP configuration to get a SOAP
> component I'm using to work properly. Finally the problem I'm having
> now, the one I can't seem to resolve, is that Cake presumably cannot
> find any of the model files; for example:
> " Database table networks for model Network was not found."
>
> So, one might think, I have my file named wrong, or my useTable
> directive is wrong, but no; remember, it works fine on my local
> machine. This only happens when I deploy on the dev server.
Read the error again. It's telling you that there's a database table missing.
> Next one might think my database configuration is wrong. Again, I
> really don't think so. If I actually go and create the default table
> that Cake would look for, it find that table, so it appears to be
> connecting to the database properly.
What default table? "networks"? That's not surprising. The error said
it was missing, so creating it should fix the problem.
> This makes me thing that for whatever reason, some environmental
> factor is preventing Cake from actually loading the models. I tried
> adding the full path to the model directory, in bootstrap.php, and
> that didn't work either. I've set every file in the cake project to
> 777 for the sake of overcoming this -- no luck.
That's a really bad idea. And be careful with what you fiddle around
with because you might end up compounding the problem. That's happened
to me more than once and it makes digging yourself out that much more
complicated. :-)
> Has anyone encountered something like this before? Is it something
> with my Apache setup? My MySQL setup? I'm really grasping at straws at
> this point.
But what errors remain? From what you wrote, it seems that the
"missing database table" error has been dealt with. What other
error(s) are you seeing to give you the impression that cake can't
load the models?
Try deleting everything in the app/tmp/cache/{models,persistent} dirs.
> Also FYI: my local system is Windows, the dev server is
> running Ubuntu.
You really ought to be developing on the same platform. While cake is
mostly (AFAIK) agnostic on this, it's just good practice 'cause you'll
get bit eventually.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment