Log message #4261397

# At Username Text
# Apr 15th 2021, 15:36 nayakvradhit You are the lifeline for me since I am doing it first time this deployment in linux
# Apr 15th 2021, 15:36 nayakvradhit ok will check that and update u thanks for ur response
# Apr 15th 2021, 15:36 cherif.bouchelaghem Everything is in one plugin Later today I’ll make a small demo application in my GitHub and I’ll invite you and let’s discuss it
# Apr 15th 2021, 15:34 isvyas Both are in same plugin? Or the plugin templates are in another plugin and assets are in other? Also it would be great if you can open up a issue in the GitHub so we can move further discussion over there.
# Apr 15th 2021, 15:34 cherif.bouchelaghem It is an admin plugin that I want to be separated from the application, so you can imagine the plugin as a self contained app
# Apr 15th 2021, 15:33 greg138 Let's try this. If you "view source" on the page, what are the URLs it's trying to load for the CSS and JS?
# Apr 15th 2021, 15:32 greg138 There's quite a lot of detail to go through to get you to a point where you can even answer questions that we would ask. :(
# Apr 15th 2021, 15:32 cherif.bouchelaghem I want to load the plugin assets inside the plugin templates not the application
# Apr 15th 2021, 15:32 nayakvradhit I was supporting that app build by some one
# Apr 15th 2021, 15:31 isvyas Let me get you correct. Are you trying to load plugin assets into your application from plugin? That means assets are inside the plugin and you want to use it into your application?
# Apr 15th 2021, 15:31 greg138 Who built the app? It seems like they should be involved in this process.
# Apr 15th 2021, 15:31 greg138 And you don't know anything about the app or CakePHP?
# Apr 15th 2021, 15:30 nayakvradhit Yeah my requirement was to put the cakephp app into the new server
# Apr 15th 2021, 15:29 nayakvradhit It think it is loading index.hthtml fole
# Apr 15th 2021, 15:29 greg138 We're going in circles here. Is this your CakePHP app, or is it something you know nothing at all about and just got tasked with moving it to a new server?
# Apr 15th 2021, 15:29 nayakvradhit I copied it inside var/www/html folder
# Apr 15th 2021, 15:28 greg138 You have some PHP or HTML that is supposed to load those files.
# Apr 15th 2021, 15:28 nayakvradhit What code means please?
# Apr 15th 2021, 15:28 nayakvradhit In apache config just I set it to appname doc root and edited the servername and ran it
# Apr 15th 2021, 15:27 greg138 That doesn't answer either of my questions...
# Apr 15th 2021, 15:27 nayakvradhit I copied the entire cakephp folder from old server to new server
# Apr 15th 2021, 15:18 greg138 What code are you using to load those files, and where are they located in your filesystem?
# Apr 15th 2021, 15:18 greg138 The rest of it all works fine, you just don't get your CSS and JS?
# Apr 15th 2021, 15:15 cherif.bouchelaghem I’m trying to load assets form the plugin webroot directory
# Apr 15th 2021, 15:13 cherif.bouchelaghem Thank you @isvyas for the quick reply, I tried the Plugin syntax without success For the plugin directories, everything follows CakePHP conventions
# Apr 15th 2021, 15:12 nayakvradhit When I set documentroot to /var/www/html/appname and when I hit ipaddress/appname I am getting the access to the application but when I set to var/www/html/appname/app/webroot I am not getting the access when I hit ipaddress/ in the browser
# Apr 15th 2021, 15:10 nayakvradhit Old one but I uploaded into new server cent os 7
# Apr 15th 2021, 15:10 greg138 Is this a new application or an old one?
# Apr 15th 2021, 15:08 nayakvradhit Hi my problem is none of the css files and js files works sorry for the partial query and just html page is returning for me
# Apr 15th 2021, 14:56 isvyas Hey @cherif.bouchelaghem, can you please explain (directory wise or with an example) what are you trying to do here? And regarding loading the assets from plugin, it will just follow the CakePHP convention. So it would work like `$this->AssetMix->script ('PluginName.assetName');` Is this way assets are not loading?
# Apr 15th 2021, 14:55 richard what do you guys use for email testing?
# 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!