Log message #4180086

# At Username Text
# Mar 18th 2019, 15:54 slackebot2 havent found a solution yet. Problem 2: I get 2 notices for missing/initialized variabels in file "\Cake\Http\Response" at line 2059 and line 2064. It seems that the 2 variables "etagMatches" and "timeMatches" are not set in the main scope and thus i get an error at compact('etagMatches', 'timeMatches'). I fixed this (locally, in cake core.. ) initializing both variables to "false" at the top of the method "checkNotModified". Could this be an
# Mar 18th 2019, 15:54 m Hey guys. Hope all are well. I've just upgraded my local server to PHP7.3.3 and have composer updated to latest version for CakePHP (3.7.5). I noticed 2 problems (error logs), most sites/code works fine. Problem 1: I get a lot of errors on "preg_match()" in the class "\Cake\Database\SqlDialectTrait" (line 75). That preg_match contains "_\s" in the regex and reading stackoverflow, it seems PHP changed something that does not allow it anymore. I
# Mar 18th 2019, 13:37 patox44 I found solution. I redirect vhost to /rest/webroot and wrote this htaccess in webroot
# Mar 18th 2019, 13:14 val https://github.com/cakephp/cakephp/blob/2.x/lib/Cake/TestSuite/CakeTestCase.php#L78
# Mar 18th 2019, 13:13 val Hi, can anyone help to figure out what is wrong in `CakeTestCase::run`? https://github.com/cakephp/cakephp/pull/13058#issuecomment-473903258
# Mar 18th 2019, 12:29 alexdd55 anyone who can tell how i can run tests on `validationDefault`?
# Mar 18th 2019, 12:28 alexdd55 hi fellows
# Mar 18th 2019, 11:46 kkitchen @patox44 -- I'm not sure. I'm kind of a surface-dweller when it comes to Apache rules... we're over my head at this point. :thinking_face: Hopefully our discussion will trigger ideas from someone else, though.
# Mar 18th 2019, 10:52 patox44 when I copied htaccess from wordpress I see these pages, but it redirect me to main project when I write something like {url}/rest/api. How should I rewrite routing? I mean everything after index
# Mar 18th 2019, 10:45 kkitchen k. Well, I'm just being a rubber ducky at this point, because I've not done specifically what you're doing. :slightly_smiling_face: I will say, though, it reminds me of how WordPress handles multisite subdirectory installations... maybe something on their .htaccess page could be helpful: https://codex.wordpress.org/htaccess
# Mar 18th 2019, 10:43 patox44 yeah. I have 3 folders in project and I join by alias admin and cakephp, but I can't join cake
# Mar 18th 2019, 10:41 kkitchen Gotcha. Is "public" and "admin" also CakePHP?
# Mar 18th 2019, 10:40 patox44 after it I got "The requested URL /var/www/project/rest/webroot/ was not found on this server."
# Mar 18th 2019, 10:38 patox44 It's one domain. Main is on {url}/, admin is on {url}/admin, rest is on {url}/rest
# Mar 18th 2019, 10:36 kkitchen Also, @patox44, are you using different subdomains for each of these sites or is one domain trying to serve them all?
# Mar 18th 2019, 10:33 kkitchen @patox44 What happens if you run just the basic comes-with .htaccess?
# Mar 18th 2019, 10:24 patox44 @kkitchen yes. Here is configuration. front and admin works fine. When I try join rest I can run only homepage. Routing not works
# Mar 18th 2019, 10:20 kkitchen @patox44 Are you using an Apache virtual host for this site?
# Mar 18th 2019, 10:12 patox44 it's my htaccess in webroot folder
# Mar 18th 2019, 09:49 patox44 P.S. I can see only homepage
# Mar 18th 2019, 09:43 patox44 hello. How can I install cakePHP in subdirectory? When I try do it I got error `The requested URL /var/www/project/rest/webroot/index.php was not found on this server.`
# Mar 18th 2019, 09:05 steinkel @ssalvatori if you need to override plugin configuration, add your custom configuration and load it in Application::pluginBootstrap method, after bootstrapping the plugin. Keep in mind the plugin configuration is NOT loaded when you call addPlugin, but later
# Mar 17th 2019, 21:34 qxd sorry noob
# Mar 17th 2019, 21:33 qxd msg NickServ identify passworda
# Mar 17th 2019, 21:33 qxd msg NickServ identify password
# Mar 17th 2019, 11:48 birdy247 so its not a huge overhead
# Mar 17th 2019, 11:48 birdy247 typically there will only be upto 5 other records
# Mar 17th 2019, 11:46 edgaras.jan yes, but it retrieves all records, but uses only the last one
# Mar 17th 2019, 11:44 birdy247 all tests are passing with that
# Mar 17th 2019, 11:44 birdy247 my original aproach works
# Mar 17th 2019, 11:44 birdy247 @edgaras.jan to be honest
# Mar 17th 2019, 11:18 birdy247 no luck :(
# Mar 17th 2019, 11:16 edgaras.jan comment out for now
# Mar 17th 2019, 11:16 edgaras.jan yes
# Mar 17th 2019, 11:15 birdy247 so get rid of the order?
# Mar 17th 2019, 11:15 edgaras.jan `having(['MAX(CurrentPrices.effective_from) = CurrentPrices.effective_from'])`
# Mar 17th 2019, 11:14 birdy247 presumably I need to select the having field
# Mar 17th 2019, 11:14 birdy247 https://book.cakephp.org/3.0/en/orm/query-builder.html#aggregates-group-and-having
# Mar 17th 2019, 11:14 birdy247 ->group('published_date') ->having(['count >' => 3]);
# Mar 17th 2019, 11:13 birdy247 how can I write that with the query builder
# Mar 17th 2019, 11:12 birdy247 @edgaras.jan ok, will give it a go