# |
Dec 13th 2017, 20:00 |
hmic |
this is what i already expected: it's a problem in your environment, not cake |
# |
Dec 13th 2017, 19:59 |
furqan |
I am sorry ,i have very little experiance with cake and php ,strangely enough the same version of code works fine on a different box with every setting being the same.. |
# |
Dec 13th 2017, 19:58 |
hmic |
it changes *a lot* in the mysql lib behavior if you do! |
# |
Dec 13th 2017, 19:58 |
hmic |
btw. still try 127.0.0.1 instead of localhost |
# |
Dec 13th 2017, 19:55 |
hmic |
rather not. as the caches are doing exactly that... :P |
# |
Dec 13th 2017, 19:54 |
furqan |
Thanks hmic ,but the db server is on the same box ,localhost...i will enable debug to see further ,but is there a chance it has to do something with model caches |
# |
Dec 13th 2017, 19:54 |
hmic |
even one second for one statement seems *very* long to me, maybe something else in your setup is wrong anyways and cake just amplifies the error |
# |
Dec 13th 2017, 19:53 |
hmic |
enable debug and check the sqllog - in debugkit - to see the actual query times |
# |
Dec 13th 2017, 19:52 |
hmic |
furqan, does resolving the hostname of the db server maybe take "time"? |
# |
Dec 13th 2017, 19:51 |
furqan |
I have almost exhausted all resources and options to look for whats going wrong ,havent been able to establish anything ,which landed me here |
# |
Dec 13th 2017, 19:51 |
furqan |
Actually i am using an opensource project misp ,which is built using cakephp ,now the issue is that ,in a specific piece of code ,when i am using ORM to update teh table its taking 20 seconds per 1 write,and the same using raw sql queries takes less then a second |
# |
Dec 13th 2017, 19:49 |
hmic |
!tell furqan about ask |
# |
Dec 13th 2017, 19:49 |
furqan |
Hi guys,i am stuck with an issue with cakephp ,can anyone help me here !! |
# |
Dec 13th 2017, 19:31 |
feLiruc |
hey guys, good evening... can anybody here help me with IIS? :( |
# |
Dec 13th 2017, 18:48 |
bravo-kernel |
Gl with your api, easy huh |
# |
Dec 13th 2017, 18:48 |
bravo-kernel |
My bad :,) |
# |
Dec 13th 2017, 18:48 |
leon |
I only referred to the table, sorry :( |
# |
Dec 13th 2017, 18:47 |
bravo-kernel |
Good that it’s solved, I will see if I can make a note somewhere |
# |
Dec 13th 2017, 18:47 |
bravo-kernel |
But nvm |
# |
Dec 13th 2017, 18:47 |
bravo-kernel |
I asked for that, first thing ;) |
# |
Dec 13th 2017, 18:47 |
leon |
69/5000 Thanks to your help, I took a closer look at this part. |
# |
Dec 13th 2017, 18:46 |
leon |
I did not create an entity file for the articles. |
# |
Dec 13th 2017, 18:45 |
bravo-kernel |
@leon what was the cause? |
# |
Dec 13th 2017, 18:45 |
bravo-kernel |
woot? |
# |
Dec 13th 2017, 18:45 |
leon |
@bravo-kernel it works now!! yipiie! |
# |
Dec 13th 2017, 18:45 |
bravo-kernel |
@leon I have made https://github.com/alt3/cakephp-ember-api public |
# |
Dec 13th 2017, 18:44 |
mlignjatovic |
I have a strange problem, when I call $this->Flash->something, Phpstorm wont stop indexing. When I comment it, everything is ok. |
# |
Dec 13th 2017, 18:41 |
mlignjatovic |
Hi guys, I'm new to cakephp and I really like it! |
# |
Dec 13th 2017, 18:26 |
leon |
The error still appears. |
# |
Dec 13th 2017, 18:26 |
leon |
Damn, unfortunately this is NOT the problem. I deleted all relationships in model an database. |
# |
Dec 13th 2017, 18:19 |
leon |
Ok, i will check. |
# |
Dec 13th 2017, 18:14 |
bravo-kernel |
in other words when Articles hasOne Author and `Authors` is not in the `API_RESOURCES` array |
# |
Dec 13th 2017, 18:13 |
bravo-kernel |
I remember the same error when the resource has a relationship (table) that is not in the `API_RESOURCES` array |
# |
Dec 13th 2017, 18:13 |
bravo-kernel |
@leon |
# |
Dec 13th 2017, 18:09 |
bravo-kernel |
let me see if I can reproduce |
# |
Dec 13th 2017, 18:08 |
bravo-kernel |
the neomerx error is always table related, I'm unsure why it's failing though |
# |
Dec 13th 2017, 18:07 |
bravo-kernel |
looking at my test-api right now |
# |
Dec 13th 2017, 18:07 |
bravo-kernel |
There really isn't much more to this |
# |
Dec 13th 2017, 18:07 |
leon |
Yes. :,( |
# |
Dec 13th 2017, 18:02 |
bravo-kernel |
Last check: did you include `Articles`in your API_RESOURCES array in `config/routes.php`? |
# |
Dec 13th 2017, 17:52 |
leon |
File uploaded https://cakesf.slack.com/files/U1G9WJU4Q/F8F98PP4P/yes__with_the_crud_config_it_works_.php / https://slack-files.com/T053DPNCM-F8F98PP4P-40d8c1a524 |