IRC logs for #farmOS, 2021-10-21 (GMT)

2021-10-20
2021-10-22
TimeNickMessage
[01:14:57]<symbioquine[m]>Well, I did eventually get that views argument plugin working... It needs a bit of cleanup before it's ready for a real review, but here's a preview of the changes: https://github.com/symbioquine/farmOS/commit/322138564370fbfc0f767dca570...
[05:00:08]* botlfarm[m] has quit (Quit: You have been kicked for being idle)
[08:17:48]<mstenta[m]>symbioquine: Wow!!
[08:17:57]<mstenta[m]>I just skimmed briefly but it looks good!
[11:12:20]<mstenta[m]>Is GitHub down?
[11:12:43]<mstenta[m]>snow day! 😛
[12:04:01]<paul121[m]>thursday dev call starting now!
[12:04:23]<mstenta[m]>Hey I'm in there but I don't think you can hear me :-)
[12:07:54]<paul121[m]>Womp I think my internet just crashed too
[12:08:30]<mstenta[m]>:-(
[12:08:51]<paul121[m]>back in
[13:22:30]<shane_aldrich[m]>Sorry I missed the call. I had a phone appointment with my doctor. Anyway...
[13:22:30]<shane_aldrich[m]>I installed the latest dev of 2.x yesterday by using `composer create-project --dev --stability=dev farmos/project` and after going through the install, all I get is HTML pages, no GUI. Any idea why that is?
[14:03:42]<paul121[m]>no worries shane_aldrich ! happy to hear from ya again
[14:04:44]<paul121[m]>but hmmm that is interesting... it might be hard to tell, but no large errors or anything?
[14:05:13]<paul121[m]>can you verify that `gin` was installed in `web/themes/gin` ?
[14:10:58]<symbioquine[m]><paul121[m]> "thursday dev call starting now!" <- gaah...!! I spaced on this again :(
[14:11:05]<shane_aldrich[m]><paul121[m]> "can you verify that `gin` was..." <- Looks like all the files are there
[14:11:37]<shane_aldrich[m]>No large errors other than `default` directory permissions, which I corrected
[14:16:24]<shane_aldrich[m]>I just started to click on some links and found that some pages in Administration show with the GUI (Extend, Appearance, and GIN settings). But Dashboard and most others are just HTML
[14:17:23]<mstenta[m]>can you share a screenshot?
[14:17:27]<paul121[m]>hmmm. maybe the styling/templates from `farm_ui_theme` are missing?
[14:17:35]<mstenta[m]>(hi shane_aldrich ! 👋)
[14:17:53]<shane_aldrich[m]>mstenta[m]: Will do!
[14:18:42]<shane_aldrich[m]>ACTION uploaded an image: (58KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/KJlUyPAZcrG... >
[14:18:52]<shane_aldrich[m]>Dashboard/Home page
[14:19:24]<shane_aldrich[m]>ACTION uploaded an image: (100KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/YWtISKPyhOA... >
[14:20:10]<shane_aldrich[m]>ACTION uploaded an image: (109KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/XtSrAPQQAlP... >
[14:21:16]<shane_aldrich[m]>paul121[m]: How can I check that?
[14:21:41]<mstenta[m]>Are you getting any error messages in console?
[14:22:13]<shane_aldrich[m]>Do you mean from "status report"?
[14:22:22]<mstenta[m]>In your browser dev tools
[14:23:35]<shane_aldrich[m]>ACTION uploaded an image: (197KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/LQKdFGtkqmu... >
[14:28:07]<shane_aldrich[m]>ACTION uploaded an image: (96KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/PTmVPsDmEGw... >
[14:28:15]<shane_aldrich[m]>That's similar to all pages that don't have GUI. Here is another one from Assets which does have the GUI:
[14:32:49]<paul121[m]>ah, MIM type ('text/html') is not a supported stylesheet MIME type.... I think that's it
[14:32:57]<paul121[m]>s/MIM/MIME/
[14:33:05]<paul121[m]>what browser are you using?
[14:33:29]<shane_aldrich[m]>Brave. All blocking is turned off for the localhost
[14:34:45]<shane_aldrich[m]>s/Brave. All blocking is turned off for the localhost/Brave. All blocking/shields are turned off for the localhost/
[14:37:17]<shane_aldrich[m]>FYI... This is a fresh install. No other modules have been enabled.
[14:38:05]<paul121[m]>this isn't really a fix, but if you turn off CSS aggregation does it work? http://localhost/admin/config/development/performance
[14:39:09]<shane_aldrich[m]>That worked.
[14:39:24]<mstenta[m]>ah - what if you turn it back on now?
[14:39:29]<mstenta[m]>maybe cache was corrupted?
[14:39:32]<shane_aldrich[m]>But I still get the MIME type error.
[14:39:33]<mstenta[m]>did you try clearing caches before?
[14:39:42]<mstenta[m]>oh
[14:39:42]<paul121[m]>Okay. I think the aggregated files are being put in `sites/default/files` and you may have incorrect permissions set there
[14:40:18]<paul121[m]>the webserver (apache?) needs to be able to read those
[14:40:27]<shane_aldrich[m]>What hex should I `chmod` to?
[14:40:33]<paul121[m]>https://stackoverflow.com/a/53503257
[14:41:17]<paul121[m]>maybe `755` but you may need to change the owner as well
[14:41:27]<paul121[m]>(depends how the webserver is configured..)
[14:42:28]<shane_aldrich[m]>`chown` is good. Just did 755. Gonna run through some links and get back to you
[14:42:59]<paul121[m]>cool!
[14:43:56]<shane_aldrich[m]>Well... Now I can't set the CSS aggregation back on
[14:44:13]<shane_aldrich[m]>Cleared the cache there as well
[14:44:51]<paul121[m]><symbioquine[m]> "gaah...!! I spaced on this again..." <- we actually bailed on the call due to technical difficulties and lack of things to talk about!
[14:44:51]<paul121[m]>I might have some time later today or tomorrow to jump on if there's anything ya wanna chat about
[14:44:56]<mstenta[m]>yea sounds like a permissions issue
[14:46:30]<symbioquine[m]>> <@paul121:matrix.org> we actually bailed on the call due to technical difficulties and lack of things to talk about!
[14:46:30]<symbioquine[m]>>
[14:46:30]<symbioquine[m]>> I might have some time later today or tomorrow to jump on if there's anything ya wanna chat about
[14:46:30]<symbioquine[m]>Not in particular. Maybe next week we can walk through the PR for this taxonomy term entity views stuff I've been working on - if it hasn't been reviewed by then of course.
[14:46:50]<shane_aldrich[m]>I'm going to start over and make sure `files` is set to 755 before I go through the install and see what happens
[15:07:18]<shane_aldrich[m]>So weird! After reinstalling with 777 for `sites/default`, everything looks good.
[15:07:33]<shane_aldrich[m]>755 wouldn't let me install
[15:07:37]<mstenta[m]>that makes sense - 777 is wide open
[15:07:58]<mstenta[m]>so it's probably just a matter of figuring out your `www-data` user and making sure it has write access
[15:08:06]<shane_aldrich[m]>Since this is localhost only, I am not worried about "security"
[15:08:11]<mstenta[m]>are you using Docker (i know i've asked this a bunch of times sorry haha)
[15:08:26]<mstenta[m]>yea, was gonna say that... it's not really a concern if this is not public
[15:09:11]<shane_aldrich[m]>I am not. And I haven't changed my `www-data` since I initially got my stack running properly
[15:09:24]<mstenta[m]>ok
[15:09:36]<mstenta[m]>what is the user/group on that directory?
[15:09:47]<mstenta[m]>need to make sure `www-data` has write access
[15:10:05]<shane_aldrich[m]>The entire site is set to `shane:www-data`
[15:10:30]<mstenta[m]>ok, so then the group just needs write access to that directory (recursively)
[15:10:51]<mstenta[m]>`chmod -R g+w sites/default`
[15:11:13]<mstenta[m]>in practice, they should only have write access to the `files` directory under that (and the `private` files dir too)
[15:11:25]<symbioquine[m]><symbioquine[m]> "> <@paul121:matrix.org> we..." <- For reference: https://github.com/farmOS/farmOS/pull/458
[15:11:25]<mstenta[m]>Drupal will complain in the Status Report if `settings.php` is writeable, for instance
[15:12:35]<mstenta[m]>(but again, none of this really matters if it's not public)
[15:12:37]<shane_aldrich[m]>The only error in status report is "Trusted Host"
[15:14:31]<shane_aldrich[m]>Need to grab some lunch. Then I'll get back to working on my module for a bit this afternoon.
[15:17:35]<mstenta[m]>symbioquine: let me know when that PR is ready for a review! looks like you've been busy with it :-)
[15:18:04]<mstenta[m]>question: does it handle the edge case i mentioned earlier re: multiple term reference fields on an asset that reference the same taxonomy?
[15:18:22]<mstenta[m]>when i skimmed earlier it looked like it was iterating over asset types, not fields
[15:19:06]<symbioquine[m]>mstenta[m]: It should. It wouldn't generate separate tabs for the different fields though.
[15:21:04]<symbioquine[m]>mstenta[m]: I think it should be ready now for a light-weight pass to determine:
[15:21:04]<symbioquine[m]>1. If you can think of any more high-level TODOs or major issues with the strategy
[15:21:04]<symbioquine[m]>2. If you want the commits restructured before or after any additional review passes
[15:25:48]<mstenta[m]>Oh cool!!
[15:26:00]<mstenta[m]>That makes sense re multiple fields
[15:26:27]<mstenta[m]>I probably won't have a chance to look closely this week
[15:26:43]<mstenta[m]>So feel free to restructure commits however you like