the bake script and create a database conf called local,
then run it again and create one called live, then start trying to
build models, it will fail with this error message:
Fatal error: ConnectionManager::getDataSource - Non-existent data
source default in C:\tmp\1.2.x.x\cake\libs\model
- Non-existent data
source default in C:\tmp\1.2.x.x\cake\libs\model
\connection_manager.php on line 109
The exact step of model building that it will fail on is right after
you answer the question about adding validation criteria for the model
fields. I'm guessing cake is hard coded to use default
::getDataSource - Non-existent
data source ppc_alerts [CORE/cake/libs/model/connection_manager.php,
line 113]
notice the datasource ppc_alerts is set. I can connect to via mysql
console just fine
any clues?
Thanks
--~--~-~--~~~---~--~~
You received this message because you
On Dec 31, 3:13 pm, Eng.Ahmed El.Hussaini
[EMAIL PROTECTED] wrote:
Conside the following:
Controller
===
class UserController extends AppController {
function index() {
$users = User::findAll();
}
}
The above code isn't how cake works. try the blog tutorial for your
\cake
\libs\model\model_php5.php on line 1145
Fatal error: ConnectionManager::getDataSource - Non-existent data
source in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs
\savvy\cake\libs\model\connection_manager.php on line 110
--~--~-~--~~~---~--~~
You
\htdocs\savvy\cake
\libs\model\model_php5.php on line 1145
Fatal error: ConnectionManager::getDataSource - Non-existent data
source in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs
\savvy\cake\libs\model\connection_manager.php on line 110
error: ConnectionManager::getDataSource - Non-existent data
source in /var/www/html/platsort_adm/cake/cake/libs/model/
connection_manager.php on line 115.
The configuration datafile is ok (we tried connecting) and all the
permissions are set also.
Any ideas? Regards from Paraguay
: ConnectionManager::getDataSource - Non-existent data
source in /var/www/html/platsort_adm/cake/cake/libs/model/
connection_manager.php on line 115.
Did you move from php4 to php5?
The error message is formated as follows:
ConnectionManager::getDataSource - Non-existent data source %s
You just need
to
a production server. In the first one, everythink works fine but when
trying to login in the second one, the following error appears:
Fatal error: ConnectionManager::getDataSource - Non-existent data
source in /var/www/html/platsort_adm/cake/cake/libs/model/
connection_manager.php
On Sep 10, 3:06 pm, nej [EMAIL PROTECTED] wrote:
We moved from PHP 5 - MySQL 5 to PHP 4 MySQL 3.
Are there PHP - MySQL version requirements for CakePHP?
It is not afaik the reason for your specific error but unless you have
MySql version 4.x joins won't work.
hth,
AD
Hello everybody.
We are moving a site made with CakePHP from one development server to
a production server. In the first one, everythink works fine but when
trying to login in the second one, the following error appears:
Fatal error: ConnectionManager::getDataSource - Non-existent data
source
As a heads up make sure you avoid reserved words in php as well as cake
On 8/12/07, Muhammad Ishaq [EMAIL PROTECTED] wrote:
Thanks a lot Geoff, It solved the problem... :) Everything works fine now...
CakePHP is really MVC taken to the extreme...
On 8/13/07, Geoff Ford [EMAIL PROTECTED]
/dispatcher.php, line 333
[main] - CORE/app/webroot/index.php, line 83
*Fatal error*: ConnectionManager::getDataSource - Non-existent data source
in */var/www/cake/cake/libs/model/connection_manager.php* on line *110*
3. Errors are also generated when I click Delete for a record (the
record
Looking at the screenshot - it appears that you are using a Model
called File. There is a core class called File so try changing the
name of your model.
Geoff
--
http://lemoncake.wordpress.com
On Aug 13, 3:51 am, Muhammad Ishaq [EMAIL PROTECTED] wrote:
Sorry, the lines that had displayed
Thanks a lot Geoff, It solved the problem... :) Everything works fine now...
CakePHP is really MVC taken to the extreme...
On 8/13/07, Geoff Ford [EMAIL PROTECTED] wrote:
Looking at the screenshot - it appears that you are using a Model
called File. There is a core class called File so try
15 matches
Mail list logo