< 202021-10-21⋎22 >

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

< 202021-10-21⋏22 >