Log message #4226817

# At Username Text
# Feb 13th 2020, 10:55 ndm Actuall it wont if the file exists
# Feb 13th 2020, 10:55 sebastian.krzewinski. now i know it
# Feb 13th 2020, 10:55 challgren yeah but if you have a prefix cake is going to try to process the requests to /admin/*
# Feb 13th 2020, 10:54 sebastian.krzewinski. .. webroot/admin was for files
# Feb 13th 2020, 10:53 challgren Whats your problem?
# Feb 13th 2020, 10:53 challgren Yeah and a folder called wwwroot/admin
# Feb 13th 2020, 10:52 sebastian.krzewinski. yesterday i created prefix in routes "/admin"
# Feb 13th 2020, 10:51 sebastian.krzewinski. i have a little problem
# Feb 13th 2020, 10:48 sebastian.krzewinski. Hello all
# Feb 13th 2020, 10:40 neon1024 I’d have a look in the logs
# Feb 13th 2020, 10:39 neon1024 Probably redirecting back to an action after failing validation I would imagine
# Feb 13th 2020, 10:30 noel Also it's a bit of a mixed message the full error is: ```<h2>A validation error occurred</h2> <p class="error"> <strong>Error: </strong> The requested address <strong>'/api/enquiries'</strong> was not found on this server.</p>``` ... which sounds like a routing... er... validation error?
# Feb 13th 2020, 10:28 noel With `friendsofcake/CRUD` how can I find out what the validation error is?: `Error: [Crud\Error\Exception\ValidationException] A validation error occurred `
# Feb 13th 2020, 10:18 javier.villanueva thanks !
# Feb 13th 2020, 10:18 challgren And yeah I was looking at the wrong ServerRequest docs
# Feb 13th 2020, 10:18 javier.villanueva : D
# Feb 13th 2020, 10:17 challgren IDK you called tech support and like everything in tech it always works when you get support involved!
# Feb 13th 2020, 10:16 javier.villanueva but why?
# Feb 13th 2020, 10:16 javier.villanueva mmm... now works
# Feb 13th 2020, 10:16 challgren You sure your using ServerRequest correctly?
# Feb 13th 2020, 10:15 javier.villanueva ```$referer_params = Router::parseRequest(new ServerRequest(['url' => str_replace(Router::fullbaseUrl(),'',$this->referer())]));``` :_)
# Feb 13th 2020, 10:15 challgren Im not seeing the full thing
# Feb 13th 2020, 10:03 javier.villanueva with url without base
# Feb 13th 2020, 10:03 javier.villanueva @challgren ``` Router::parseRequest(```
# Feb 13th 2020, 09:57 spriz Ah yes - it was the ApiListener not doing it's magic @challgren :)
# Feb 13th 2020, 09:56 challgren Damm
# Feb 13th 2020, 09:55 javier.villanueva if I create a ServerRequest with my url.... this params area null ,:)
# Feb 13th 2020, 09:50 challgren Maybe someone else knows a way but thats the only way I can see to do it from a string
# Feb 13th 2020, 09:49 javier.villanueva thank you
# Feb 13th 2020, 09:49 javier.villanueva yes... i will try
# Feb 13th 2020, 09:49 javier.villanueva mm...
# Feb 13th 2020, 09:49 challgren @javier.villanueva maybe you could create a new ServerRequest and then pass it to Router::reverseToArray()
# Feb 13th 2020, 09:43 javier.villanueva 3
# Feb 13th 2020, 09:43 challgren 3 or 4?
# Feb 13th 2020, 09:43 javier.villanueva I have checked Router class... but I didnt find
# Feb 13th 2020, 09:43 neon1024 Morning all :wave:
# Feb 13th 2020, 09:42 javier.villanueva but if therer are one for it...
# Feb 13th 2020, 09:42 challgren Oh I think router has a function
# Feb 13th 2020, 09:42 javier.villanueva I am creating a function for it
# Feb 13th 2020, 09:41 javier.villanueva yes!
# Feb 13th 2020, 09:41 challgren @javier.villanueva are you trying to reverse route the referer?