IRC logs for #farmOS, 2022-05-18 (GMT)

2022-05-17
2022-05-19
TimeNickMessage
[21:41:17]* farmBOT has joined #farmos
[03:51:38]<AnasHaddad[m]><mstenta[m]> "Hi Anas Haddad: what kind of..." <- I have v1 on a server on Godaddy and now i installed the v2 on a local server in my farm.. I want to migrate the data from Godaddy server v1 to the new istallation
[03:56:56]<AnasHaddad[m]>mstenta: I am using v1 since two years now, and Im very happy to manage all my farm assets and activities. now as you announced the new version, and I watched your videos.. I installed the new v2 on a local server in my farm after I got internet on the farm.. I learned how to do this installation by following steps from the internet.. I am not an IT... but I grow olives .. with a modern touch.. so now I want go to V2 I need to move the
[03:56:56]<AnasHaddad[m]>data from the old one to the new one. when I read the tutorial.. it looks very complicated to me.. or I might need long time to know how to do it..
[07:21:06]<mstenta[m]>Hi Anas Haddad: yea, the migration does require a bit of command line work
[07:21:57]<mstenta[m]>If you want to start a forum topic perhaps we can work through it together step by step
[12:00:10]* GuilhermePerotta has quit (Quit: You have been kicked for being idle)
[14:54:00]<tool172[m]>the interface update is quick
[14:54:04]<tool172[m]>i like it so far
[14:54:08]<tool172[m]>good work guys
[15:11:10]<tool172[m]>is there a hard log file i can browse to fix an error or do i have to drush it all now in docker
[15:15:13]<mstenta[m]>tool172: what interface update?
[15:15:29]<tool172[m]>v2
[15:15:38]<tool172[m]>in general
[15:15:38]<mstenta[m]>oh haha
[15:15:44]<mstenta[m]>😄
[15:15:51]<tool172[m]>my other drupal takes seconds to load
[15:16:12]<mstenta[m]> /admin/reports/dblog is the watchdog log, if that helps?
[15:16:17]<mstenta[m]>(same as v1)
[15:16:28]<tool172[m]>i found that 2 min ago
[15:16:28]<tool172[m]>:)
[15:16:30]<tool172[m]>it doesn't like my private file directory apparently
[15:16:40]<mstenta[m]>ah yea, common problem it seems
[15:17:49]<mstenta[m]>(on a call at the moment sorry)
[15:17:49]<tool172[m]>your fine
[15:17:52]<tool172[m]>i'm just looking through logs now
[15:23:03]<tool172[m]>my message: The upload directory private://farm/log/2022-05 for the file field file could not be created or is not accessible. A newly uploaded file could not be saved in this directory as a consequence, and the upload was canceled.
[15:23:12]<tool172[m]>what if iwant it to be public though
[15:23:16]<tool172[m]>i never set the private directory
[15:24:49]<tool172[m]>found it
[15:27:03]<mstenta[m]>yea you just need to set up the directory and add a line to your settings.php to reference it
[15:27:12]<tool172[m]>well
[15:27:16]<tool172[m]>i did it all in public last time
[15:27:21]<tool172[m]>i justr ticket the bvox
[15:27:24]<tool172[m]>reloaded
[15:27:24]<tool172[m]>testing now
[15:27:31]<mstenta[m]>private is the default now
[15:27:45]<tool172[m]>that explains a lot
[15:27:51]<tool172[m]>let me go set it up then
[15:28:52]<tool172[m]>recommended location under sites?
[15:29:00]<tool172[m]>sites/default/private?
[15:29:14]<mstenta[m]>yea that's what i usually do
[15:29:24]<mstenta[m]>just needs to be writable by www-data
[15:31:49]<tool172[m]>is and says can't do it
[15:31:50]<MarcosCarballal[>ACTION uploaded an image: (82KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/zgVItgzqVUi... >
[15:32:09]<MarcosCarballal[>Hey all, trying to grab some taxonomy terms. Can't seem to grab the label or index properly this way
[15:47:09]<tool172[m]>I'm good mstenta forgot to reload the cache. pesky cache
[15:49:09]<mstenta[m]>Marcos Carballal: $term->label() will give you the label
[15:49:26]<mstenta[m]>(not sure what you mean by index?)
[15:49:36]<mstenta[m]>$term->id() will give you the entity ID
[15:50:39]<mstenta[m]>https://www.drupal.org/docs/drupal-apis/entity-api/working-with-the-enti...
[16:15:40]<MarcosCarballal[>Got it, thank you. I made a silly mistake trying to access the private variables directly instead of calling methdos
[17:51:15]<paul121[m]>Taxonomy terms also have a pesky convention where it is sometimes the "tid" not "id"
[17:52:46]<paul121[m]>it really bugs me. it's just slightly different in the API too!... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/2ea6295e0e...)
[17:53:29]<mstenta[m]>that is really annoying i agree
[17:55:04]<mstenta[m]>there's probably a core issue open for that.... somewhere
[17:58:01]<paul121[m]>whomever made that decision... grrr!
[17:58:39]<mstenta[m]>don't forget `uid`
[17:59:10]<paul121[m]>ohhh dang
[17:59:16]<mstenta[m]>if we used the `node` module we'd also have to deal with `nid` 🥴
[17:59:55]<mstenta[m]>https://github.com/farmOS/farmOS/blob/76a6fdf56326b4412623f106d9500119cd...
[18:01:30]<mstenta[m]>some decisions that were made 20+ years ago are hard to shake