# |
Feb 2nd 2018, 23:47 |
cpierce |
`Warning (512): C:\inetpub\portal\tmp\cache\persistent/\ is not writable [CORE\src\Cache\Engine\FileEngine.php, line 437]` |
# |
Feb 2nd 2018, 21:35 |
cpierce |
:slightly_smiling_face: |
# |
Feb 2nd 2018, 21:35 |
cpierce |
->select() |
# |
Feb 2nd 2018, 20:47 |
madrid9989 |
just to add 1 extra 'virtual' field to the end |
# |
Feb 2nd 2018, 20:47 |
madrid9989 |
I rather not have to include all fields |
# |
Feb 2nd 2018, 20:47 |
madrid9989 |
like Articles.* |
# |
Feb 2nd 2018, 20:46 |
madrid9989 |
Is it possible to use a wildcard with ->select() ? |
# |
Feb 2nd 2018, 20:24 |
madrid9989 |
ok got it, thanks |
# |
Feb 2nd 2018, 20:24 |
madrid9989 |
Can anyone advise on why using contain(['Authors'=>['Articles'=>['Comments']]) works but contain(['Authors'=>['Articles'=>['fields'=>['Articles.id', 'Articles.author_id'], 'Comments') does not? |
# |
Feb 2nd 2018, 19:59 |
madrid9989 |
ok, I'll try that now |
# |
Feb 2nd 2018, 19:36 |
saeideng |
try this ``` 'Authors.Articles.Comments' => function ($q) { return $q-> // your condition } ``` |
# |
Feb 2nd 2018, 19:28 |
saeideng |
count of `[` = 4 count of `]` = 1 |
# |
Feb 2nd 2018, 19:18 |
madrid9989 |
Can anyone advise on why using contain(['Authors'=>['Articles'=>['Comments']]) works but contain(['Authors'=>['Articles'=>['fields'=>['Articles.id', 'Articles.author_id'], 'Comments') does not? |
# |
Feb 2nd 2018, 17:56 |
cpierce |
and how to troubleshoot and find why |
# |
Feb 2nd 2018, 17:56 |
cpierce |
https://www.dropbox.com/s/qxqulu33k323nlo/Screenshot%202018-02-02%2011.56.22.png?dl=0 anyone know why i'd be getting this on windows install with IIS? |
# |
Feb 2nd 2018, 17:06 |
urowe |
thanks hmic, I'll try |
# |
Feb 2nd 2018, 16:53 |
madrid9989 |
I have an associated model in my 'contain', and the ->find query does return the associated record, however when I add the 'fields'=> with all field names in the associated model, the associated records do not get included in ->find. I need to include all fields as well as 1 extra 'virtual field' like 'myfield'=>'SUM(1+1)' How do I accomplish this? |
# |
Feb 2nd 2018, 16:39 |
abed |
Talk. Think. Reflect. SLEEP. |
# |
Feb 2nd 2018, 16:38 |
abed |
all you do is paste things like a robot |
# |
Feb 2nd 2018, 16:38 |
abed |
Now go to sleep |
# |
Feb 2nd 2018, 16:38 |
abed |
ok? |
# |
Feb 2nd 2018, 16:38 |
abed |
No one cares about you |
# |
Feb 2nd 2018, 16:38 |
abed |
slackebot: shut up |
# |
Feb 2nd 2018, 16:29 |
hmic |
make sure the files are owned by the webserver user, not anything else |
# |
Feb 2nd 2018, 16:29 |
hmic |
- which is a bad setup to start with |
# |
Feb 2nd 2018, 16:29 |
hmic |
so 777 needed likely |
# |
Feb 2nd 2018, 16:28 |
hmic |
urowe: webserver running different user than your shell user is |
# |
Feb 2nd 2018, 16:26 |
zmurphy |
You need to change the perissiosms of logs not tmp |
# |
Feb 2nd 2018, 16:26 |
urowe |
And this: chmod 766 -R logs/ |
# |
Feb 2nd 2018, 16:23 |
urowe |
Even when I did this: chmod 766 -R tmp/ |
# |
Feb 2nd 2018, 16:22 |
urowe |
I also get this error Warning: file_put_contents(/var/www/html/platform/logs/error.log) [function.file-put-contents]: failed to open stream: Permission denied in |
# |
Feb 2nd 2018, 16:22 |
urowe |
Hi guys, do you have any idea why I'm getting this message: Cache engine Cake\Cache\Engine\FileEngine is not properly configured. |
# |
Feb 2nd 2018, 15:26 |
learningcake |
okay, gracia. merci. |
# |
Feb 2nd 2018, 15:10 |
hmic |
this is why you dont develop on these systems but build a vm to match you target production system as close as possible |
# |
Feb 2nd 2018, 15:10 |
hmic |
and/or your mysql config is set to be case insensitive |
# |
Feb 2nd 2018, 15:09 |
hmic |
learningcake, because the filesystem on your local system is case insensitive |
# |
Feb 2nd 2018, 15:08 |
learningcake |
thank you guys. But I wonder why it works on my localhost system but when I deploy it, started getting the problem. I push to git and clone it to the production server |
# |
Feb 2nd 2018, 14:57 |
neon1024 |
To quote American Dad “Bob is introduced in “Homeland Insecurity”, where he mentions his wife had passed away of “the big C” - when a giant letter ‘C’ from a sign had fallen on her.” |
# |
Feb 2nd 2018, 14:56 |
hmic |
you just said yourself it's called carts |
# |
Feb 2nd 2018, 14:56 |
neon1024 |
Do bear in mind that “Carts” and “carts” are not the same |
# |
Feb 2nd 2018, 14:55 |
hmic |
so this table does not exist, like the error tells you |