Log message #4261366

# At Username Text
# Apr 15th 2021, 14:45 greg138 @nayakvradhit, we need a lot more information from you to help. There's any number of reasons why it might be failing. You say "styles and some js files". Does that mean some files are working? What is different between the ones that work and the ones that don't? Did things work before and they've stopped now, and if so what changed between then and now?
# Apr 15th 2021, 14:19 cherif.bouchelaghem Related to the above question, how to load the builded assets in a plugin? ```<?= $this->AssetMix->script('css') ?> <?= $this->AssetMix->script('app') ?>``` This ^ will look inside the `webroot` of the app not the plugin
# Apr 15th 2021, 14:17 cherif.bouchelaghem cc @isvyas ^
# Apr 15th 2021, 14:17 cherif.bouchelaghem Hello, I’m using https://github.com/ishanvyas22/asset-mix plugin and I don’t know how to load `manifest.json` inside a plugin template, not the application, In the app it would be just: ```<link rel="manifest" href="<?= $this->Url->build('manifest.json') ?>" />```
# Apr 15th 2021, 14:13 nayakvradhit Can anyone please help me why my css and js and images are broken in cakephp app?
# Apr 15th 2021, 11:38 shahways Relevant read @admad, thanks for this. For now we will then refactor our current 2.x approach for 4.x. Thanks again for the insight!
# Apr 15th 2021, 10:43 admad @shahways https://github.com/cakephp/authentication/issues/439
# Apr 15th 2021, 09:56 nayakvradhit Can one knows why my styles and some js files gives 404 and styling is not applying to the app when I run the cakephp 2 app?
# Apr 15th 2021, 09:11 shahways Sorry, forgot to specify that the cookie would store both the key and raw secret values. The DB stored both as well, but the secret would be hashed. When attempting identification through cookie, we would search for a user in the DB with the same key and the hashed secret.
# Apr 15th 2021, 09:08 slackebot refactor our old approach. Was our old approach any safer than the offered feature in the Auth plugin? Or just unnecessary bloat without contributing to the security? Any advice or insight is welcomed!
# Apr 15th 2021, 09:08 shahways Hi all, need your 2 cents in regards of the built-in Remember me cookie feature in the Auth plugin for 4.x. In our 2.x app, we added `cookie_key` and `cookie_secret` columns to the Users table. Whenever the User would login or (forced to) logout, we would update the cookie_secret value to a new random string that would be hashed with a security salt. We are currently deciding to either use the built-in feature for 4.x or to
# Apr 14th 2021, 16:12 admad Hache_raw: `3.x` for bugfixes `3.next` for new feature
# Apr 14th 2021, 15:37 Hache_raw Thanks.
# Apr 14th 2021, 15:37 Hache_raw This is solved on CakePHP 4.x by the way, so the change is only for CakePHP 3.
# Apr 14th 2021, 15:36 Hache_raw It's related with the version we are using at work (in composer.json we have: 3.9.*).
# Apr 14th 2021, 15:36 Hache_raw Hello. I'd like to make a Pull Request but I'm not sure on which branch should I do it.
# Apr 14th 2021, 13:15 admad You can use the `skipCheckCallback()` to skip the checked based on URL / required conditions
# Apr 14th 2021, 11:23 cnizzardini Can you load CSRF in App/Application, but not in a plugin?
# Apr 14th 2021, 09:56 willem nevermind, got it!
# Apr 14th 2021, 09:49 willem Help! How can i group a query result by datepart only of created timestamp? (so grouped by 11-4-2021, 12-4-2021 etc.)
# Apr 14th 2021, 05:45 conehead @phantomwatson You can find the code here: https://github.com/cakephp/cakephp/blob/a3697dc425f87c85ab18460b1f6ba92f4baa98a5/src/ORM/Marshaller.php#L586 There it is checked if the old value equals the new value and skips setting dirty. https://github.com/cakephp/cakephp/blob/a3697dc425f87c85ab18460b1f6ba92f4baa98a5/src/ORM/Table.php#L1866
# Apr 14th 2021, 00:09 phantomwatson Answer: The entity is not marked as dirty, and nothing happens with the DB if a clean entity is `save()`ed.
# Apr 13th 2021, 23:03 slackebot code and it's not obvious to me.
# Apr 13th 2021, 23:03 phantomwatson Does anyone know off the top of their heads if • calling `patchEntity()` with data that matches what's already in the entity marks the entity as dirty, or if • calling `save()` on such a patched entity results in a database query? I'm trying to figure out if a "don't `patchEntity()` if the data isn't different" condition will actually avoid unnecessary DB queries or not. I'm looking through the `Table`/`Marshaller`
# Apr 13th 2021, 22:47 JJ15 No. That's not what I want.
# Apr 13th 2021, 22:43 JJ15 nvm I think this should do the trick https://github.com/smerrill/vagrant-rsync-back#vagrant-rsync-back
# Apr 13th 2021, 22:41 JJ15 So any files generated by cake.php are not visible locally. And I don't really want to make a 2 way binding because in the past I've lost work through accidents on the vagrant machine.
# Apr 13th 2021, 22:40 JJ15 Trying to find a way to run bin/cake.php locally. I can ssh into the box and run bin/cake.php from there but the rsync seems to be 1 way and doesn't replicate locally.
# Apr 13th 2021, 22:40 JJ15 I have a local copy of my application that is rsynced to my vagrant machine. Running bin/cake.php locally fails because the database exists on the vagrant machine not locally.
# Apr 13th 2021, 22:39 JJ15 Anybody have any experience using vagrant?
# Apr 13th 2021, 22:22 phantomwatson When time is limited, sometimes we have to be content with simply knowing what the fix is and leave the unraveling of the deeper mysteries for another day. Which is often more frustrating than cathartic. :S
# Apr 13th 2021, 21:04 kevin.pfeifer its definitely nothing globally applicable to PHP 8.0 - just checked it with my app
# Apr 13th 2021, 20:40 greg138 Compare the PHP8 ini file to the 7.4 one?
# Apr 13th 2021, 20:28 kevin.pfeifer or something changed in php 8.0 for mailing which i don’t know of
# Apr 13th 2021, 20:27 kevin.pfeifer either you have some custom php.ini in 7.4 which hasn’t been adopted/converted/copied to php 8.0
# Apr 13th 2021, 20:26 phantomwatson And if I run it explicitly under PHP 7.4, the problem goes away. Cool (and thanks for pointing that out!) but _what the hell_.
# Apr 13th 2021, 20:25 phantomwatson 7.4 and 8.0 are both used on this server. This domain was and still is on 7.4, but at some point recently the system default version of PHP was bumped to 8.0. Thaaaaat seems likely related. The command-line script is running under PHP 8.
# Apr 13th 2021, 20:22 greg138 There hasn't been an update to your version of PHP?
# Apr 13th 2021, 20:20 slackebot <5bc58feffd2948f09c8dc9051b9630db@muncieevents.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="1d649385e3049e4e717ba26f27a73f0a" Content-Transfer-Encoding: 8bit Message-Id: <E1lWPSX-00001A-Hh@server.cberdata.org> Date: Tue, 13 Apr 2021 16:16:29 -0400 ...```
# Apr 13th 2021, 20:20 phantomwatson I don't see anything malformed about that, but it's still being received like this: ```... To: graham@phantomwatson.com Subject: Upcoming Week in Muncie: Tuesday, Apr 13 X-PHP-Originating-Script: 1000:MailTransport.php From: Muncie Events <automailer@muncieevents.com> Return-Path: automailer@MuncieEvents.com Sender: Muncie Events <automailer@MuncieEvents.com> Date: Tue, 13 Apr 2021 20:16:29 +0000 Message-ID:
# Apr 13th 2021, 20:19 slackebot multipart/alternative; boundary="1d649385e3049e4e717ba26f27a73f0a" Content-Transfer-Encoding: 8bit"```