Problems baking with 1.3.8 but 1.3.7 works fine

2011-05-05 Thread Emad
Hi all,

I am having trouble baking using 1.3.8. Below are the steps i was
taking. There seems to be include file issue. I then tried the same
with 1.3.7 and everything worked as expected.

Thanks,

Emad


--

vp2c01b-dhcp53:console emadnajeeb$ ./cake -app /Library/WebServer/
Documents/uap/downloads bake

Welcome to CakePHP v1.3.8 Console
---
App : /Library/WebServer/Documents/uap/downloads
Path: /Library/WebServer/Documents/uap//Library/WebServer/Documents/
uap/downloads
---
What is the full path for this app including the app directory name?
 Example:/Library/WebServer/Documents/uap//Library/WebServer/Documents/
uap/downloads/myapp
[/Library/WebServer/Documents/uap//Library/WebServer/Documents/uap/
downloads/myapp] > /Library/WebServer/Documents/uap/downloads
Bake Project
Skel Directory: /Library/WebServer/third-party/frameworks/cake/console/
templates/skel
Will be copied to: /Library/WebServer/Documents/uap/downloads
---
Look okay? (y/n/q)
[y] > y
Do you want verbose output? (y/n)
[n] >
---
Created: downloads in /Library/WebServer/Documents/uap/downloads
---

Creating file /Library/WebServer/Documents/uap/downloads/views/pages/
home.ctp
Wrote `/Library/WebServer/Documents/uap/downloads/views/pages/
home.ctp`
Welcome page created
Random hash key created for 'Security.salt'
Random seed created for 'Security.cipherSeed'
CAKE_CORE_INCLUDE_PATH set to /Library/WebServer/third-party/
frameworks in webroot/index.php
CAKE_CORE_INCLUDE_PATH set to /Library/WebServer/third-party/
frameworks in webroot/test.php
Remember to check these value after moving to production server
Your database configuration was not found. Take a moment to create
one.
---
Database Configuration:
---
Name:
[default] >
Driver: (db2/firebird/mssql/mysql/mysqli/odbc/oracle/postgres/sqlite/
sybase)
[mysql] > mysqli
Persistent Connection? (y/n)
[n] >
Database Host:
[localhost] >
Port?
[n] >
User:
[root] >
Password:
> test
Database Name:
[cake] > downloads
Table Prefix?
[n] >
Table encoding?
[n] > utf8

---
The following database configuration will be created:
---
Name: default
Driver:   mysqli
Persistent:   false
Host: localhost
User: root
Pass: 
Database: downloads
Encoding: utf8
---
Look okay? (y/n)
[y] >
Do you wish to add another database configuration?
[n] >

Creating file /Library/WebServer/Documents/uap/downloads/config/
database.php
Wrote `/Library/WebServer/Documents/uap/downloads/config/database.php`
vp2c01b-dhcp53:console emadnajeeb$ ./cake -app /Library/WebServer/
Documents/uap/downloads bake model


Welcome to CakePHP v1.3.8 Console
---
App : /Library/WebServer/Documents/uap/downloads
Path: /Library/WebServer/Documents/uap//Library/WebServer/Documents/
uap/downloads
---
PHP Warning:  include_once(/Library/WebServer/Documents/uap//Library/
WebServer/Documents/uap/downloads/config/database.php): failed to open
stream: No such file or directory in /Library/WebServer/third-party/
frameworks/cake-1.3.8/libs/model/connection_manager.php on line 23

Warning: include_once(/Library/WebServer/Documents/uap//Library/
WebServer/Documents/uap/downloads/config/database.php): failed to open
stream: No such file or directory in /Library/WebServer/third-party/
frameworks/cake-1.3.8/libs/model/connection_manager.php on line 23
PHP Warning:  include_once(): Failed opening '/Library/WebServer/
Documents/uap//Library/WebServer/Documents/uap/downloads/config/
database.php' for inclusion (include_path='.:/usr/lib/php') in /
Library/WebServer/third-party/frameworks/cake-1.3.8/libs/model/
connection_manager.php on line 23

Warning: include_once(): Failed opening '/Library/WebServer/Documents/
uap//Library/WebServer/Documents/uap/downloads/config/database.php'
for inclusion (include_path='.:/usr/lib/php') in /Library/WebServer/
third-party/frameworks/cake-1.3.8/libs/model/connection_manager.php on
line 23
---
Bake Model
Path: /Library/WebServer/Documents/uap//Library/WebServer/Documents/
uap/downloads/models/
---

How to capture warnings as part of error handler routine?

2009-04-07 Thread Emad

Hello,

I am writing error handling routine (app_error.php) as described in
http://book.cakephp.org/view/154/Error-Handling.

My question is how do i capture cake generated warnings inside
app_error.php?

e.g. if in my database config, i have a invalid login information,
cake will throw warnings like

Warning (2): mysql_connect() [function.mysql-connect]: Access denied
for user 'dummyuser'@'devtest.server.com' (using password: YES) [CORE/
cake1.2.0/cake1.2.2.8120/libs/model/datasources/dbo/dbo_mysql.php,
line 374]

but in my app_error i will get a "missingTable" error  with not
details and no way of knowing what actually happened.

Thanks,

Emad

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