Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8395667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:21:28+00:00 2026-06-09T20:21:28+00:00

We just upgraded some of our apps (from 1.3) to cakephp 2.2 and refactored

  • 0

We just upgraded some of our apps (from 1.3) to cakephp 2.2 and refactored the code. our basic server setup looks like

  • htdocs/subdomain.domain/cakeapp1/…
  • htdocs/subdomain.domain/cakeapp2/…

sometimes we receive errors, which are due to the problem, that cake internally decides to call code from within another app folder. so, we call a route from cakeapp1 and all of a sudden, in the middle of the stack trace, cake calls files from cakeapp2.

so, although no code in cakeapp1 references the “client” table for example, we receive following error:

Missing Database Table
Table clients for model Client was not found in datasource default.

Stack Trace
/home/www/subdomain.domain/cakeapp2/lib/Cake/Model/Model.php line 3180 → Model->setSource(string)
/home/www/subdomain.domain/cakeapp2/lib/Cake/Model/Model.php line 2631 → Model->getDataSource()
/home/www/subdomain.domain/cakeapp2/app/Model/AppModel.php line 22 → Model->find(string, array)
/home/www/subdomain.domain/cakeapp2/app/Controller/AppController.php line 237 → AppModel->find(string, array)
/home/www/subdomain.domain/cakeapp2/app/Controller/AppController.php line 41 → AppController->__initializeAppSettings()
[internal function] → AppController->beforeFilter(CakeEvent)
/home/www/subdomain.domain/cakeapp2/lib/Cake/Event/CakeEventManager.php line 246 → call_user_func(array, CakeEvent)
/home/www/subdomain.domain/cakeapp2/lib/Cake/Controller/Controller.php line 670 → CakeEventManager->dispatch(CakeEvent)
/home/www/subdomain.domain/cakeapp2/lib/Cake/Routing/Dispatcher.php line 183 → Controller->startupProcess()
/home/www/subdomain.domain/cakeapp2/lib/Cake/Routing/Dispatcher.php line 161 → Dispatcher->_invoke(UsersController, CakeRequest, CakeResponse)
APP/webroot/index.php line 92 → Dispatcher->dispatch(CakeRequest, CakeResponse)

Another error is, that a plugin (debugkit) is not found. debugkit is embeded in cakeapp1, but not used in cakeapp2, so it’s obvious, that an error is raised in this app. the error itself is saved to cakeapp2/tmp/log/error.log – and NOT to cakeapp1, where the original code should be executed.

has anyone else experienced same problems? the huge problem is, that the error occurs doesn’t occur on every page view. but it’s reproduceable on different browsers/machines. after calling another url, and re-calling the errored url again, everything’s fine again.

was there any change in cakephp2 concerning the usage of cakephp in a subfolder hosting-scenario?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:21:29+00:00Added an answer on June 9, 2026 at 8:21 pm

    You have APC enabled thus causing Cake to use APC as cache engine by default. Currently you haven’t changed the $prefix used for cache configs in your app/Config/core.php causing same settings to be used by both apps. Change them to unique values and your issue will be solved.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just upgraded our Hudson from 2.2.0 to 2.2.1 to fix a known bug
We just recently upgraded from VS2008 to VS2010. Our project compiles fine; but when
We just upgraded our code to .Net 4.5 and are using VS2012 now, but
We just upgraded our compiler to gcc 4.6 and now we get some of
I just upgraded one of our web apps to ASP.NET 4.0. It is using
i just upgraded to wordpress 3.3 and built a really basic template for some
We just upgraded our SQL Server 2005 to SQL server 2008 R2 and noticed
I just upgraded from SnowLeapord to Lion and now cannot create virtualenvs. I understand
I just upgraded Xcode from 4.2 to 4.3.3. I then launches iOS Simulator (with
I just upgraded my browser to Safari 4 and find that our website is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.