# |
Jun 14th 2018, 10:10 |
neon1024 |
No idea, sorry. I haven’t looked into the Route caching yet. |
# |
Jun 14th 2018, 10:08 |
josbeir |
is that reconstructed from cache too ? |
# |
Jun 14th 2018, 10:08 |
josbeir |
think it has something to do with the urlfilter checker |
# |
Jun 14th 2018, 10:08 |
josbeir |
hmm, just disabled the route cache again, now it works |
# |
Jun 14th 2018, 10:06 |
josbeir |
the login link is just the first one evaluated throwing the exception |
# |
Jun 14th 2018, 10:06 |
josbeir |
yes but its happening with all routes not only the login one (interesting detail i forgot to mention) |
# |
Jun 14th 2018, 10:05 |
neon1024 |
Maybe you have an `Html->link()`call somewhere in the template which is missing param, or where a param is passed as null or similar |
# |
Jun 14th 2018, 10:05 |
josbeir |
probably some fischy code executing somewhere |
# |
Jun 14th 2018, 10:04 |
josbeir |
yup |
# |
Jun 14th 2018, 10:04 |
neon1024 |
What an odd case! |
# |
Jun 14th 2018, 10:04 |
neon1024 |
Are you using the route cache? |
# |
Jun 14th 2018, 10:04 |
josbeir |
tried disabling route caching, didnt work |
# |
Jun 14th 2018, 10:04 |
neon1024 |
Hmm, caching perhaps? |
# |
Jun 14th 2018, 10:04 |
josbeir |
tried it several times, always works |
# |
Jun 14th 2018, 10:04 |
slackebot |
{"_name":"members.login","action":"login","controller":"Members","lang":"nl","pass":[],"plugin":null} | +---------------+--------------+-------------------------------------------------------------------------------------------------------+ |
# |
Jun 14th 2018, 10:04 |
josbeir |
+---------------+--------------+-------------------------------------------------------------------------------------------------------+ | Route name | URI template | Defaults | +---------------+--------------+-------------------------------------------------------------------------------------------------------+ | members.login | /nl/login | |
# |
Jun 14th 2018, 10:03 |
neon1024 |
`$ bin/cake routes check /nl/login` |
# |
Jun 14th 2018, 10:03 |
josbeir |
lemme try |
# |
Jun 14th 2018, 10:03 |
neon1024 |
Can you reverse it in the console? |
# |
Jun 14th 2018, 10:02 |
josbeir |
:thinking_face: indeend |
# |
Jun 14th 2018, 10:02 |
josbeir |
| members.login | /:lang/login | {"action":"login","controller":"Members","plugin":null} | |
# |
Jun 14th 2018, 10:02 |
neon1024 |
:thinking_face: |
# |
Jun 14th 2018, 10:02 |
josbeir |
yes |
# |
Jun 14th 2018, 10:02 |
josbeir |
calling routes console shows the route exists |
# |
Jun 14th 2018, 10:02 |
neon1024 |
Did you try `bin/cake routes` ? |
# |
Jun 14th 2018, 10:01 |
neon1024 |
Perhaps you have a token which doesn’t match |
# |
Jun 14th 2018, 10:01 |
josbeir |
nop |
# |
Jun 14th 2018, 10:01 |
neon1024 |
Do you have a regex for your routing tokens? |
# |
Jun 14th 2018, 09:59 |
josbeir |
when i hit refresh it works, then it doesn't, at random |
# |
Jun 14th 2018, 09:58 |
josbeir |
File uploaded https://cakesf.slack.com/files/UAG1HNWKT/FB6TNNCAD/screen_shot_2018-06-14_at_11.58.09.png / https://slack-files.com/T053DPNCM-FB6TNNCAD-61c50acdd1 |
# |
Jun 14th 2018, 09:56 |
lorenzo |
show the trace anyways :P |
# |
Jun 14th 2018, 09:52 |
josbeir |
the exception trace doesn't show me anything intresting |
# |
Jun 14th 2018, 09:52 |
josbeir |
hmm just updated an app to 3.6 and getting random Cake\Routing\Exception\MissingRouteException , sometimes it works sometimes it doesn't, does this ring a bell with anyone ? |
# |
Jun 14th 2018, 09:51 |
tim |
Oh the Marshaller still retrieves those entities when using _ids so it's probably easier to just manually retrieve the entities in my controller |
# |
Jun 14th 2018, 09:48 |
tim |
Does that work in conjunction with _joinData? |
# |
Jun 14th 2018, 09:47 |
lorenzo |
there is also the `_ids` magic field when patching an entity, it will fetch the ids of those associations and calculate the ones that need saving |
# |
Jun 14th 2018, 09:46 |
tim |
Yeah It's BTM |
# |
Jun 14th 2018, 09:46 |
lorenzo |
you would have to use an update statamete for other relationships |
# |
Jun 14th 2018, 09:46 |
lorenzo |
well, in the case of a belongsToMany |
# |
Jun 14th 2018, 09:45 |
lorenzo |
@tim you can use an insert statement |
# |
Jun 14th 2018, 09:44 |
neon1024 |
Don’t forget that the TableRegistry is deprecated. |