# |
Feb 1st 2018, 18:35 |
eber |
I'm using postgres and fixtures seem to be working just fine but, when I try to save a new record on tests, I get an error saying something about a duplicated id (=1)... |
# |
Feb 1st 2018, 18:34 |
eber |
tks hmic ! I was in a hurry so I removed all those things and kept going with what I could :P now I'm having another weird error ^^ |
# |
Feb 1st 2018, 18:33 |
hmic |
the generic case is "conditinally (not) allowing empty fields" |
# |
Feb 1st 2018, 18:32 |
hmic |
i think this is a design error, but you basically can't change it... |
# |
Feb 1st 2018, 18:32 |
hmic |
eber: you need to use the second param on allowEmpty() or notEmpty() validation method in this case |
# |
Feb 1st 2018, 18:30 |
eber.freitas |
maybe the serial is not being reseted after tearDown? |
# |
Feb 1st 2018, 18:30 |
eber.freitas |
which is weird... |
# |
Feb 1st 2018, 18:30 |
eber.freitas |
i'm getting complains that i have a duplicate id = 1 |
# |
Feb 1st 2018, 18:29 |
eber.freitas |
does anyone have problems with test id's using postgres? |
# |
Feb 1st 2018, 18:03 |
eber |
hey guys... i'm trying to check if a value is empty or not based on the value of another field... i've added a custom rule but and that is the only rule on the field but, for some reason, if the field is empty i get a validation error there and my custom validation doesn't run... if I say ->allowEmpty() my custom function also doesn't run... any ideas? |
# |
Feb 1st 2018, 18:01 |
joopm |
so the page has no any style just "black and white" |
# |
Feb 1st 2018, 18:01 |
joopm |
but without any css files |
# |
Feb 1st 2018, 18:00 |
joopm |
finally the page is loaded |
# |
Feb 1st 2018, 18:00 |
joopm |
okey thank you i already have a lot of improvement |
# |
Feb 1st 2018, 17:50 |
hmic |
it's a one click cakephp installer |
# |
Feb 1st 2018, 17:49 |
hmic |
btw. you might want to try the oven too: github.com/cakedc/oven |
# |
Feb 1st 2018, 17:48 |
joopm |
okey thank i give a try |
# |
Feb 1st 2018, 17:45 |
hmic |
(delete the cakeproject folder before) |
# |
Feb 1st 2018, 17:45 |
hmic |
then try again |
# |
Feb 1st 2018, 17:45 |
hmic |
on your server |
# |
Feb 1st 2018, 17:45 |
hmic |
joopm: run composer create-project cakephp/app /var/www/html/cakeproject/ |
# |
Feb 1st 2018, 17:44 |
joopm |
but both gave blank page |
# |
Feb 1st 2018, 17:44 |
joopm |
well i run the composer to make an experiement but also copied manually an earlier project |
# |
Feb 1st 2018, 17:42 |
openmail_slack |
Did you run composer? |
# |
Feb 1st 2018, 17:36 |
joopm |
i got this error |
# |
Feb 1st 2018, 17:35 |
joopm |
https://thepasteb.in/p/wjh0QRKwg1Buv |
# |
Feb 1st 2018, 17:34 |
amit |
Anyone have any experience with OpenStack/Object Store API |
# |
Feb 1st 2018, 17:23 |
hmic |
if it fails with an error message, you need to solve that error first |
# |
Feb 1st 2018, 17:22 |
hmic |
it should start a server, and show you information on how to access it |
# |
Feb 1st 2018, 17:22 |
hmic |
you can try if all the cakephp requirements are met, if you start the dev server on the console: go to your apps root dir and type "bin/cake server" |
# |
Feb 1st 2018, 17:21 |
hmic |
if you get a blank page, thats rather a server problem |
# |
Feb 1st 2018, 17:21 |
hmic |
not the app log |
# |
Feb 1st 2018, 17:21 |
hmic |
the server log |
# |
Feb 1st 2018, 17:19 |
joopm |
but cookbook writes it does not matter |
# |
Feb 1st 2018, 17:13 |
joopm |
extension is intalled rewriting i havent edited |
# |
Feb 1st 2018, 17:12 |
joopm |
but log file is empty |
# |
Feb 1st 2018, 17:12 |
joopm |
well i gave 777 permission for tmp and log |
# |
Feb 1st 2018, 17:09 |
joopm |
thank you i try what you suggest |
# |
Feb 1st 2018, 17:09 |
joopm |
hello hmic |
# |
Feb 1st 2018, 17:08 |
hmic |
like neccessary extensions, rewriting, and so on |
# |
Feb 1st 2018, 17:07 |
hmic |
make sure your server meete the prerequisites too |