< 242015-10-25⋎26 >

farmOS (farmos.org) is a free open source, web-based farm management system, built on Drupal. Download at drupal.org/project/farmSet by ChanServ on 2015-06-23 at 14:12
00:14*EThorn has joined
01:07*farmBOT has joined
01:08*EThorn has quit (Ping timeout: 240 seconds)
01:31*EThorn has joined
01:32*EThorn has quit (Client Quit)
02:49*mstenta has quit (Ping timeout: 250 seconds)
13:06*EThorn has joined
13:09*mstenta has joined
13:21mstentaEThorn: Hey! Sorry, been running around a bunch this weekend... saw your message about the gray lines not showing though...
13:21mstentaEThorn: I have a hypothesis...
13:21mstentaEThorn: when you created your areas, did you set the "Area Type" on them?
13:21EThornif I change line 194 of area views default to full path it is fixed
13:22mstentaOh!
13:22mstentaOk... so maybe related to the other bug you found?
13:22EThornthey all have area type....it is another path issue, but I can't seem to get url() towork
13:22mstentaOK...
13:22mstentaYea, because you have farmOS installed in a subdirectory... ok... want to file a new bug report?
13:23mstentaI'll take a quick look... gotta jump off in a minute though - getting my field plowed today for winter rye
13:23EThornthe really weird thing is if I view source it is actually looking for the path as /FarmOS/Farmos/farm/area/json so it doubles the directory
13:23EThornI will file bug
13:25mstentaline 194 of what file?
13:26mstentafarm_area.views_default.inc?
13:26mstentahmm - if so... that shouldn't be an issue... that's just exported from the Views module - which knows how to handle paths correctly... hmmmm
13:27mstentaoh i have an idea...
13:27mstentathere is some openlayers config code that actually references that path, however... to suck in the JSON... so maybe THAT'S where the issue is...
13:28mstentaLine 31 of farm_area.default_openlayers_sources.inc
13:28mstentatry making the change there instead..
13:28mstentaIf that works, then this is probably a bug in the Openlayers module
13:29mstentaI know the developer in charge of that module, and I've helped him fix a number of bugs, so I can escalate that up
13:32EThornwas looking at the line 31 thing and it does not seem to be where the path is coming from.
13:35mstentaEThorn: the path itself is defined by the Views export code you found (line 194 of farm_area.views_default.inc) - but that path is being requested when the map is built - by the code in farm_area.default_openlayers_sources.inc
13:35mstentaEThorn: did you try just going to the path itself? outside of the map?
13:35mstentaYou can do that to make sure that the View is working properly to produce the JSON
13:36EThornI think in this case it is an issue with the json file generating in the format href=\u0022\/FarmOS\/farm\/area\/high-tunnel so FarmOS is tacked on in json and in generating path
13:36mstentaBut make sure you revert line 194 if you changed it (and make sure you revert the View in the UI because it may be overridden now)
13:36EThornyea the json is there
13:36mstentaoh ok cool - and what's the path now? is it still what it was originally or did you change it?
13:37EThornwell...what I just said doesn't make sense either cause it can't even get to the json file
13:37mstentawhat can't?
13:38EThornso the path the editing map uses to look for the json file to get the geometry is generated wrong. So the problem isn't in the json, because if I tell it an exact path it finds the json and the geometry works gine
13:38EThornfine*
13:39mstentaok cool - that's what i suspected - a bug in the openlayers code
13:39mstentathat module is great - but i have definitely found a number of bugs in it ;-)
13:39EThornit has a lot going on
13:39mstentafor little edge cases like this
13:39mstentayes it does
13:40EThornI might just go back and reinstall in server root...ha
13:40mstentaso let's start an issue in the farmOS issue queue... i'll try to find the exact bug and then move it to the Openlayers queue
13:40mstentahaha - yea if you're not interested in finding these subdirectory bugs :-)
13:40mstentathat might be easier
13:41EThornit would at least be helpful to see the unbugged version to compare
13:41EThornu want bug in farmarea or farmos
13:45mstentafarm_area please :-)
13:48mstentaoh... so actually i think this is a bug in farm_area... not in openlayers core
13:49mstentai'm looking closer at it...
13:50mstentahere... i've got a fix you can try...
13:51mstentachange line 31 to:
13:51mstenta'url' => url('farm/areas/json/' . $key, array('absolute' => TRUE)),
13:54mstentaif you do that... you will have to clear your cache... and you will also want to check the Openlayers > Sources tab to see if any are "overridden"
13:55mstentaand make sure that they are reverted to default
13:55EThornso is line 31 generating the json?
13:55mstentano - but line 31 is the url that Openlayers is trying to use to access the JSON form
13:56mstentaand it's wrong, because it's assuming that the site is installed in the root directory
13:56mstentaso Openlayers can't find the JSON
13:56mstentaby making the change I pasted above, it will change the URL to be absolute, which means Openlayers will be looking for it in the correct place
13:57mstentai'll be right back... need to move some stuff outside real quick
14:08EThornLine 31 is not at work in the case of the editing/adding geometry views. as an experiment I changed path to jxson on line 31 and it happily changes json path for main area map, but is found nowhere in add/edit map. path is set by line 192 and your url() works there...so that will fix that. I'm not sure why my attempt to use url() there failed before...oh well
14:08EThornsorry line 194: $handler->display->display_options['path'] = url('farm/areas/json/' , array('absolute' => TRUE));
14:19EThornno...something else broke so neither works again. I gotta get goin, but I will get to the bottom of this
14:30*EThorn has quit (Ping timeout: 240 seconds)
18:47*EThorn has joined
19:48*EThorn has quit (Ping timeout: 240 seconds)
21:25*EThorn has joined
21:49*EThorn has quit (Ping timeout: 240 seconds)
23:37*EThorn has joined

< 242015-10-25⋏26 >