Wednesday, December 29, 2010

Problems Creating Shells (Tutorial)

http://book.cakephp.org/view/1107/Creating-Shells-Tasks

Hi,
While going through the tutorial above, as I run

>cake report

Error: Missing database table 'orders' for model 'Order'

-----------------
Do we need to create one ? I created one but just to find out more
errors after running the second time

>cake report

------------
PHP Warning:SQL Error: 1054: Unknown column 'Order.shipped' in 'where
clause'</span> in C:\wamp\www\cakephp\cake\libs\model\datasources
\dbo_source.php on line 684

Warning: <b>SQL Error:</b> 1054: Unknown column 'Order.shipped' in
'where clause'</span> in C:\wamp\www\cakephp\cake\libs\model
\datasources\dbo_source.php on line 684
<pre><p style="text-align:left"><b>Query:</b> SELECT
`Order`.`order_date`, `Order`.`amount` FROM `orders` AS `Order`
WHERE `Order`.`shipped` >= '2010-11-29 16:13:53' </p></pre>PHP
Warning: Invalid argument supplied for foreach() in C:\wamp\www
\cakephp\app\vendors\shells\report.php on line 10

Warning: Invalid argument supplied for foreach() in C:\wamp\www\cakephp
\app\vendors\shells\report.php on line 10
PHP Notice: Undefined variable: total in C:\wamp\www\cakephp\app
\vendors\shells\report.php on line 19

Notice: Undefined variable: total in C:\wamp\www\cakephp\app\vendors
\shells\report.php on line 19
Total: $0.00

-------------

Is my console set up correctly ? something I left out ?

Thanks,
Maxim

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: