Re: Could not describe table Error: An Internal Error Has Occurred.

2011-09-06 Thread Sebastian Henschel
hey Jon..

Am Saturday, den 03.09.2011, 20:38 -0700 schrieb Jon F:

> I am using cake 2.0 alpha.

i suggest you upgrade to the current version 2.0rc1:
http://bakery.cakephp.org/articles/markstory/2011/09/04/cakephp_2_0_0-rc1_hot_and_fresh

your problem could be fixed by that.

bye,
 Sebastian

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: cakephp saving not working

2011-08-25 Thread Sebastian Henschel
heya...


Am Thursday, den 25.08.2011, 16:24 +0530 schrieb abhimanyu bv:
> the primary key field is deal_id. it is not an auto-increment
> field.while saving, i am giving a value to deal_id  and there are no
> ids with the same in that table.it doesnt have any dependencies.

please provide us with the code that defines the deal_id, because:

(please keep relevant text from previous mails in your replies)

> i developed a page to save deals into database.till yesterday it was
> working fine.now its not working, an error is coming like  SQL Error:
> 1062: Duplicate entry '' for key 'PRIMARY'. and query it showng is
> Query: INSERT INTO `deals` (`no_of_coupons`, `deal_type_id`,
> `disabled`, `modified`, `created`) VALUES (0, 0, 0, '2011-08-25
> 14:34:13', '2011-08-25 14:34:13') . while in the data array i am
> passing integers to no_of_coupons, deal_type_id. how to fix this
error?

the INSERT statement doesn't seem to use a field named 'deal_id'.

bye,
 Sebastian


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: cakephp saving not working

2011-08-25 Thread Sebastian Henschel
hi Abhi...

Am Thursday, den 25.08.2011, 02:22 -0700 schrieb abhimanyu bv:

> i developed a page to save deals into database.till yesterday it was
> working fine.now its not working, an error is coming like  SQL Error:
> 1062: Duplicate entry '' for key 'PRIMARY'. and query it showng is
> Query: INSERT INTO `deals` (`no_of_coupons`, `deal_type_id`,
> `disabled`, `modified`, `created`) VALUES (0, 0, 0, '2011-08-25
> 14:34:13', '2011-08-25 14:34:13') . while in the data array i am
> passing integers to no_of_coupons, deal_type_id. how to fix this error?

what is the name of your primary key (post your db schema if necessary)?
does it have auto-increment set?

cheers,
 Sebastian


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: CakePHP beginner having trouble setting up .htaccess files with 1and1.com server config

2011-08-22 Thread Sebastian Henschel
hi!


Am Sonntag, den 21.08.2011, 15:14 -0700 schrieb Seth Barrett:
> When I add that I get error 500 page.

what is logged in the webserver's error log?

bye,
 Sebastian


>>Am Freitag, den 19.08.2011, 05:26 -0700 schrieb Seth Barrett:

>>[...]

>>> Root .htaccess -
>>> 
>>> AddType x-mapp-php5 .php
>>> 
>>> RewriteBase /homepages/32/d183679463/htdocs/cakephp/
>>> RewriteRule ^$ app/webroot/ [L]
>>> RewriteRule (.*) app/webroot/$1 [L]
>>> 

>>i think you are missing a

>>RewriteEngine on

>>in that section. i get 404s when it's not there.

>>i don't have any RewriteBase directives anywhere in my .htaccess 
>>files,
>>but that might be necessary for the 1and1 setup.


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: CakePHP beginner having trouble setting up .htaccess files with 1and1.com server config

2011-08-19 Thread Sebastian Henschel
heya Seth...

Am Freitag, den 19.08.2011, 05:26 -0700 schrieb Seth Barrett:

[...]

> Root .htaccess -
> 
> AddType x-mapp-php5 .php
> 
> RewriteBase /homepages/32/d183679463/htdocs/cakephp/
> RewriteRule ^$ app/webroot/ [L]
> RewriteRule (.*) app/webroot/$1 [L]
> 

i think you are missing a

RewriteEngine on

in that section. i get 404s when it's not there.

i don't have any RewriteBase directives anywhere in my .htaccess files,
but that might be necessary for the 1and1 setup.

hth,
 Sebastian

[...]


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Cron help

2011-08-12 Thread Sebastian Henschel
hi Prabha...

Am Freitag, den 12.08.2011, 03:19 -0700 schrieb Prabha vathi:

> http://www.ibm.com/developerworks/opensource/library/os-php-fwk5/?ca=.
> 
> I used the above link to learn, how to do cron. But I don't understand
> the below line
> /column/protected/cakephp/cake/console/cake prune
> -app /column/protected/cakephp/app/
> 
> How to change this to create cron in my shared server? I have option
> to add crons.

$ crontab -e 

and paste the following line:

@hourly /cake/console/cake prune -app
/app/

replace  accordingly and the script will be executed
every hour. if you need more info about how to control execution times:

$ man 5 crontab


hth,
 Sebastian


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Error "The requested document was not found on this server"

2011-08-11 Thread Sebastian Henschel
hey hiepsykhongdau...

Am Mittwoch, den 10.08.2011, 04:29 -0700 schrieb hiepsykhongdau:

> I just installed a CakePHP app on server of Plesk 9.0.1 for Microsoft
> window and a strange thing happened.
>  When  i tried to click any link in my site on a new browser window
> and it said "Not Found - The requested document was not found on this
> server".
> Besides, webroot  does n't work ( no CSS, JS and img).
> I tested code on free host Byethost and runs good and updated data are
> generally used to be.
> I  loged into Plesk control panel and enable  permission for "Plesk
> IIS User"  to full control but error above still appears.
> Does anybody have an idea why this is happening and how I can resolve
> it?

i won't be able to help with Plesk, but since nobody has replied to you
yet, i thought i will attach a web.config that we use for a CakePHP
instance running on a IIS server here. maybe it will help the server to
find your webroot.

hope this helps,
 Sebastian

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


web.config
Description: XML document